Migrate to Raspberry Pi 5 with M.2 SSD

Hello,

I have a raspberry pi 4 with SD card for the past 5 years or so. It uses HA OS in a traditional way. It crashes a lot so I decided to buy a new raspberry pi 5 with M.2 HAT+ and SSD M.2 2242. The SSD has Raspberry OS pre installed.
I am a noob in terms of Linux and command line but I am willing to learn.

Is there a way to migrate easily Home Assistant? Or is it better to start from a fresh install and redo all my configuration step by step?

Is there specific steps I need to follow to make the M.2 HAT+ and the 2242 work properly?

Thank you so much to this awesome community making it possible for people like me to do amazing things!

Haos backup is portable between platforms. So basically backup current restore to new hardware.

Run a full backup of current - save the file off box, accessible to the new one

Install new HAOS on new box (go ahead

Turn off old box
Change IP address in router to give new box old box ip if applicable
Restore backup to new box
Turn off
Transfer peripherals (sticks etc)
Restart

Get good at this - it’s also your disaster recovery (excluding the parts where you transfer hardware) if you haven’t been running with a backup, great time to start.

3 Likes

Awesome, thank you @NathanCu, and is there anything to know to achieve initial HA OS installation on RPi 5 SSD using M.2 HAT+ ?

Spot on. regular backups especially after a change and you can import them to new hardware via Onboarding.

2 Likes

I have tried to migrate to a RPi 5 twice now. I get to the onboarding page, where I chose to restore a full backup, but the restore never finishes. Reloading the restore page brings up a not found. The RPi is visible in my router as “homeassistant”, but I can’t access it on that url. Rebooting seems to have no effect either.

What could be wrong?