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

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 ?

Hi Francis, Thanks for you great assistance. I have learned a lot from it as newbie. I thinks I will do the fresh start option, What do you advise, Debian 10 or 11 with HAS ? Best regards, Arie

Debian 10 is still supported for 4 months, after that you will have to upgrade. So maybe best to start with Debian 11 ?