Home Assistant Debian 10 supervised on Pi 4 SD card to small --> how to transfer to bigger SD or SSD

What started as a small test has grown to a complete automated Home and my SD resources are running low. I thought that I could clone (AOMEI Clone) the image to a bigger SD card (8G -->32G).
Cloning was successful. I noticed that during the clone the extra memory was “unallocated”.
After booting up with the 32G SD card HAS still reports in the Home Assistant Supervisor 8G of disk space. What should I do to let HAS know that there is a new bigger SD device?
Or if this is easier to migrate to a SSD to be more future proof.

You should be able to use Raspi-config and expand the file system.

I am not able to use raspi-config as its seems not to be installed.

  1. Create a Snapshot through the Supervisor section, copy to external location via Samba / whatever
  2. Install Debian on new SD /SSD
  3. Restore backup
Add this line to /etc/apt/sources.list:

deb http://archive.raspberrypi.org/debian/ jessie main

Run these commands:

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7FA3303E
apt-get update
apt-get install raspi-config

Hi Francis,

I get this error:

Skipping acquire of configured file ‘main/binary-arm64/Packages’ as repository ‘http://archive.raspberrypi.org/debian jessie InRelease’ doesn’t support architecture ‘arm64’

Try this

change  /etc/apt/sources.list to

deb http://archive.raspberrypi.org/debian/ buster main

Run these commands:

wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key -O - | sudo apt-key add -
apt-get update
apt-get install raspi-config

Hi Dave,

I was already afraid for this. This means that I have to start ALL (not only the HA) from a clean setup?

After the wget operation I get the following error: “-bash: wget: command not found
gpg: no valid OpenPGP data found.”

Unless Francis’ method works.

I’m thinking you will need to do it my way. Should be pretty quick though. I’ve done it before (and I know very little about Linux!).

then just in 2 steps
wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key
sudo apt-key add raspberrypi.gpg.key

I am a HW designer with 4 months of Linux DIYS experience so lets see .

After: wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key I get: “-bash: wget: command not found”.

2 possibilities :

either wget needs root, so
sudo wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key

or wget is not installed, then

sudo apt-get install wget

wget was not installed. PGP key was successfully installed however after running apt-get update I still get: "Skipping acquire of configured file ‘main/binary-arm64/Packages’ as repository ‘http://archive.raspberrypi.org/debian jessie InRelease’ doesn’t support architecture ‘arm64’ "

it still is trying to use jessie

delete in  /etc/apt/sources.list 
deb http://archive.raspberrypi.org/debian/ jessie main
and add
deb http://archive.raspberrypi.org/debian/ buster main

Run these commands:


apt-get update
apt-get install raspi-config

Now I get:

The following packages have unmet dependencies:
linux-image-arm64 : Depends: linux-image-5.9.0-0.bpo.5-arm64 (= 5.9.15-1~bpo10+1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

It is getting more spooky. Perhaps better to start with a clean install of debian?

Prob be installed by now :wink:

Maybe. Resolving broken dependencies might be to much for you

But (see this post), maybe you better try Debian 11

:rofl: You are very right ! But I am one of those stupid people who likes to understand things.
The lesson I have learned is: “don’t try to understand Linux as newbie”. What is your advise related to Debian 10 → 11 ?