Home Assistant Raspberry Pi 4 SSD Installation and Migration
Vložit
- čas přidán 6. 07. 2024
- Installing Home Assistant on a Raspberry Pi 4 with an SSD has never been easier! In this video I will show you how to migrate your Home Assistant installation from a Raspberry Pi 4 with an SD card to a brand new install on an SSD, this video is for people who want to do a brand new install of Home Assistant, and those who also want to migrate their old installation too!
If you'd like to support me and future projects:
Patreon:
/ everythingsmarthome
Raspberry Pi Imager:
bit.ly/2S2nUA3
Pi 4:
Raspberry Pi 4: amzn.to/2Dviwyh
Raspberry Pi 4 Bundle: bit.ly/31TpS6Z
Power Supply: amzn.to/34CKjb6
2.5 Inch SSDs (all good choices):
Option 1: amzn.to/3yVRnMO
Option 2: amzn.to/3vL7UkI
Option 3: amzn.to/3uCbImU
Option 4: amzn.to/2Rccole
Option 5: amzn.to/2SIUdUz
m.2 SSDs (all good choices):
Option 1: amzn.to/3p7yfGZ
Option 2: amzn.to/3uCKxZ1
Option 3: amzn.to/3fDOus7
Option 4: amzn.to/3wSyLeN
Option 5: amzn.to/3fC4M4F
SATA to USB Adapters (if you chose a 2.5 inch drive):
Option 1: amzn.to/3vGOjSr
Option 2: amzn.to/3c8Entk
M.2 to USB Adapters (if you chose an m.2 drive):
Option 1: amzn.to/3uEKn3x
Option 2: amzn.to/3yUOBqK
Pi 4 Enclosure with room for SSD and adapters:
m.2 version: amzn.to/2TB8iUJ
2.5 inch SATA version (so cool!!!!): amzn.to/34xGWkm
Buy Me a Coffee:
www.buymeacoffee.com/EverySma...
Written Article:
everythingsmarthome.co.uk
EVERYWHERE YOU CAN FIND ME:
Everything Smart Home Community Discord:
/ discord
Twitter: / everysmarthome (@EverySmartHome)
Instagram: / everythingsmarthome
Facebook: / everythingsmarthomeoff...
#homeassistant #smarthome
________________________
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
0:00 - Intro?
0:56 - Hardware recommendations
4:12 - Taking a backup for migration users
5:26 - Installing Home Assistant to the SSD
6:14 - Changing the Bootloader to boot USB
7:45 - Booting the Pi from SSD
8:00 - WiFi Setup
8:30 - Logging into Home Assistant UI for Setup
9:44 - Restoring your backup - Věda a technologie
Who is looking forward to more speed and reliability!? NO MORE BRICKED SD CARDS! 🙏
I've been following your channel for a while now and have taken the plunge to start with smarthome setups. Thanks for the great channel! However i'm following this guide - for a fresh new install on an SSD, and Raspberry Pi Imager is not showing my m2 sata storage as an option to image to. It's plugged directly into an m2 ssd slot in my pc. What am I doing wrong??
Wow. Let's step away from Home Assistant for a second. This is perhaps THE MOST SUCCINCT, CLEAREST tutorial/walkthrough of a setup process that I have ever seen. You hit on ALL the major and minor issues (what kind of SSD, brands, form factors, adapters, necessary items like spare SD card, https), quickly and directly, without getting bogged down, you step through everything without skipping a beat or requiring guessing/intuiting, and you expertly drop people in and out at different steps and forks (new installation, ethernet/wifi steps, etc.).
I thought this video was masterfully done. I don't even have an SSD purchased for my Pi yet, but I now know exactly what I need to do and I may not even have to watch this video again as I perform the update.
Superb job, Lewis!
Very kind, thanks very much I really appreciate it and I'm glad it was useful
Thank you for your very clear and easy to follow instructions. I was able to switch over to SSD in under 20 minutes.
Nice 🙏
Thank you for great videos, you helped me a lot on different topic for Home Assistant. I just did the swap for a SSD and it went flawlessly. Cheers
Little behind on this one, but followed your tutorial and it went seamlessly. Thank you. Very informative and very simple to follow. Thank you.
Excellent tutorial. I just migrated from an sd to an M.2. Everything went flawlessy. Thanks so much!
Nice one, well done!
What a great tutorial! Thank you so much. My install went flawlessly.
Thanks Douglas, appreciate it! Glad it worked!
You are the BEST! Your videos are nicely edited and you include great details. You have helped me accomplish so much. Thank you!
Thanks my friend, really appreciate your kind words and glad they have been useful!
Thanks so much for this video. I've just migrated to an SSD I had lying around. All worked just as you showed here. Thanks again.
Excellent, glad it worked! Thanks for the comment
Great video, SSD instalation will commence as soon as my adapter arrives!
Excellent, let me know how it goes 🙌
Thanks for making me considerably more comfortable in migrating from my SD card to the M.2 SATA drive I'm finally going to install in my ArgonOne case Lewis 👍🏻
Nice one Rob, let us know how it goes!
@@EverythingSmartHome if it goes badly I'll be heading your direction for help 🤣
An excellent video, my previous SSD install could not be connected though WiFI which I need to do as it is for controlling a polytunnel in my field. Your instructions on how to connect to WiFi were perfect and solved the problem for me. There are quite a few CZcamsrs creating content on Homeassistant but I am very impressed with your content and clarity of delivery. I am now a subscriber. THANKS!
Excellent Dave, thanks for the support and glad the videos were useful!
You rock! Followed this using suggested components and step-by step. Everything worked smoothly - thanks.
Amazing, glad it worked!
Thanx!
In 1 hour I've manage to go from an old Pi3b to a brand new Pi4 with an old Intel SSD from my latest snapshot.
A lot snappier
Thats awesome! 🙌
Thanks for the video! Worked flawlessly even without a monitor tied to the pi4. The backup and restore parts need updating but I managed through. Coffee coming.
Thanks for the help. I was a little worried about doing this, but it all worked like you said.
Great guide on moving to a SSD. I have been having issues. The snapshots is now called backups but other than that very easy to follow.
Thanks!
Really great video! Amazing recommendations.
I got the Argos case you recommended and the Kingston SSD. Did the installation and migration, and everything has worked like a charm!
THANK YOU!
🙌🙌
what did you do about the fan control?
Revisiting this tutorial, and it is so good! Thank you so much! Love from Norway!
Excellent as always. This is something I wanted to do for a while. This video gave me the incentive to finally do it. I ordered the hardware and will be on SSD soon. Thank.
Nice, let us know how it goes! 🙌
@@EverythingSmartHome so far no joy! The image went perfectly and system booted ok but I have no add on repository so I can’t load ssh. My snapshot is too large so I can’t restore through the GUI. I’m back to the SD to make a smaller snapshot to try again. .
Got it! I restored from my previous full backup and then the partials. Now up and running on SSD!
Nice one glad you got it figured out! 🥳
Man Thank You the case and ssd and instructions all worked perfectly
Thanks for this, Lewis - extremely helpful. The only additional info / advice I'd offer is that the final stage, restoring from backup and rebooting, can take 10-15 minutes.
I was sitting here chewing my nails, watching the blinkinglighten, with no Plan B but just waiting for that time turned out to be the answer!
Really pleased to complete this task and your instructions and links were super-helpful - thanks!
Glad it was useful and you managed to get through that difficult period - bet the suspense was killing you!!
😁
Thanks Lewis. Just started HA and (following your advice (and links)) have just installed my Pi into an Argon one unit with 120gb kingston ssd.
One thing you dont say is the word "patience" after installing your backup. I'm got so worried after my installed first reported that supervisor needed me to manually update (for me anyway) before my backup would actually work... and it seemed to take an eternity.
BUT utlimately its working and is in a sexy case (not the orginal red/white one) and seems to be a bit faster (but that might be the "patience" I was lacking earlier), Thanks!
Incredible timing, popped up in my feed just as I was taking a break from unboxing my SSD and adapter i ordered a week ago for my rPi upgrade! Really informative yet simple and short. I should have no issues changing from normal PiOS with Docker HA to Home Assistant OS now :P
Wow that is amazing timing haha! How did it go?!
@@EverythingSmartHome I’ve sadly run into a interesting snag, my Surface keeps crashing trying to format the SD card! I vaguely remember having issues formatting it in the past, and I think it might just take a couple more tries. But otherwise things seem to be going smooth!
@@EverythingSmartHome Sadly it is not going too well. after fixing the SD card issue, I found out thet my Pi does not see my SSD as a bootable media. It tries to boot via the USB, but says there is no bootable partition. I am a but stumped as to what or why this is.
Did you use Pi imager to flash the SSD? Perhaps your usb to data cable isn't compatible?
@@EverythingSmartHome I did use the Pi images yes, and the drive does show up in Windows. I did test with an old USB stick just to very that it works, in it did boot just fine. So the issue must be either the disk itself or the adapter. I am leaning more towards the adapter, as I have not been able to use the eject function to disconnect it in windows
Thanks! Successful migration from Pi 3 to Pi 4 and to SSD!
Awesome!
Thank you for your lecture.
You makes my rasberry pi to boot using SSD
Thanks for watching!
Great walk through, thank you, i'd got the hardware so the guide was really useful.
Amazing, glad it was useful!
Great job man, excellent, congratulations!
Thanks buddy!
Thumbs up for the Argon One M.2 case. I’ve been running HA in that case with a Samsung SSD for about 6 months. Works great.
That's excellent! Thanks for sharing your experience!
Thank you for a nice and well planned video :)
Thanks for watching!
Thank you! This was a great walk through.
Glad it was useful 🙏
I’ve been waiting for this video
Hope it's useful!
@@EverythingSmartHome when opening my HA app it just displays white.. does that mean my SD card went out?
Excellent video. Saved my day. Thanks
Glad it was useful!
Amazing tutorial! I have followed it carefully and I think I managed to migrate to my Samsung Evo M.2 SSD, which has been sitting around for a long time, doing nothing (I am still in the process of restoring backup while writing this, hopefully it will work). So far so good, Boot changed to USB, SSD booted successfully, new HA set up in seconds and now restoring previously created backup…. Loading….
I've been sat here for 11 months just waiting to see if the restore was successful. Your drive is sooo slow ...
Watched to the end for the algorithm ;)
The "Raspberry Pi Imager" is awesome. It didn't exist back when I was last using Pi's.
Yep it's a fairly new addition!
Hi you,
Thank you so much for clear, precise and structure tutorials. I watched many of them, but for clarity, I’m always returning to you. I’ll stop cheating and stay here :-)
I did many installations oh HA but there is one thing I can’t understand, they are multimedia output such as Spotify, for instance. I just can’t make it to work and I can’t recall if you made one on it, I think it would helpful (for me) :-)
Have a great day
Thank you, I'd been wanting to do this for a while and this was a breeze. I went with a cheap entry-level NVME drive and an Orico M2PV-C3 enclosure. I picked the Patriot P310 drive because it was a brand and importantly because of its low advertised power consumption (2.38W full, 0.38W idle) so I do not need a USB hub. No issues booting and updating home assistant. Will report if I run into issues.
Great video!
My man Lucas 🙏
This is actually a really good wake though to setup home assistant
Imagije having a SSD just laying around... 😆
Great video though, just what I was looking for!
Hahaha just found it 🤷♂️ thank you, appreciate it!
Great Video!
Thanks Jack!
Good video, thank you!
Thank you, appreciate it!
thanks for this, followed the directions and worked well! seems more zippy too!
Thanks for this super tutorial
Thanks for watching!
Awesome vid. Thank you
Thanks Glenn, appreciate you!
Thank you. It was vey enjoyable.
Cheers David!
Super video. Thanks so much.
Thanks for watching!
thanks man! Great tutorial. I faced an issue with Raspberry Pi Imager: I got always an error while writing image, so I tried with balenaetcher - failed again - and I came back to Raspberry Pi Imager and I finally got it working! :-) hope this can help
All went pretty well except HA wasn't able to load the .tar backup file. So I quickly install Samba and drop the file in the backup folder. It did work! Thanks again for the video!
Nice one, thanks!
Thank you! that was easy, hard part ahead I guess :D
Thanks Peter!
I like the Deskpi pro. Everything is accessible outside the case and the heatsink is great especially if you overclock it.
Thanks for the suggestion!
Came back for a refresher. Ironically this was done originally to avoid bricked SD's.. well the latest Home Assistant OS update killed my SSD lol! So here we are.
thank you!!!
Great tutorial! I've just purchased a HP EliteDesk 800 G3 Mini SFF and hoping to migrate HA to this. I'm starting to find the Pi 4 SSD setup, which I've now had for over a year, lags sometimes and is becoming slow at times, especially when loading energy sensors. Looking at using Frigate and some other add-ons so I'm hoping the additional CPU power and additional RAM will make a difference!
Awesome, good luck!
Would love to see a Magic Mirror Installation and setup video😄
One day one day 😅
@@EverythingSmartHome Waiting ✌🏼😁
thank you brother :)
Glad it was useful!
Thanks for the info
Cheers Robert!
Hi! Another great video. One suggestion, talk about how to purge old datas from the database
Thanks Manoel!
Thank you!
Thanks!
I installed it on SSD, but it wouldn't start without a microSD card. Most of the time, when I restarted, the system would not boot. I finally got it done, thank you very much.🙏
Excellent guide, but I did have a problem with following the install. I keep getting the error 'Timed out waiting for device /dev/disk/by-label/hassos-boot', and the same for hassos-data. I have disconnected the drive from the USB3 port and moved it to USB2 and it boots fine. Any ideas what would prevent it booting specifically from the USB3 port?
Another great video! What about a tutorial on trim installation (sd for boot and hassos + ssd for everything else)?
Thanks Matteo! Will have a look thanks!
Please make a node red tutorial! Thank you, you are the best!
Thanks my friend, appreciate it!
Another great video, I've learned a ton from you. Regarding SSD, I may have missed it in the video but you may want to specifically mention to use 64-bit HA. I tried unsuccessfully with multiple SSDs, cables, etc and couldn't get mine to boot from the SSD until I changed to 64-bit HA. Oddly, I *could* boot fine with Raspberry Pi OS if I flashed the SSD with that instead of HA.
Thanks Gary, glad you enjoy the videos! Hmm, I haven't had that issue with 64 bit myself so could be something else? But regardless the Pi Imager should take care of that for you!
Perhaps the Pi4 8GB?
@@thomastaberima3971 problem identified. It was my eero mesh router. Bypassed it and went directly to my ISP router and everything worked perfectly
Thanx for this clear video! My installation went flawless with this absolutely perfect set of instructions. Nowadays I have a Raspberry Pi 5 laying around waiting to take the work-load of the fine Pi 4. The only question from me is how do I go about and solve this task ?... Migrate Hass OS from a Pi 4 SSD to the Pi 5 (using the same SSD that is)
In my case works from external HDD, but not from SSD :=)
I have one SSD, put in external case with USB3, write image, all ok, but boot process reports many errors and wornings, mostly "wating for sync with some process". Then I placed this SSD into another USB case, and similar errors during boot.
Lastly I put HDD drive into same external case, and it works from first try :=)
Using old HDD is probably bad idea for performance, SD card might be better option?
For those who may encouter problems while booting on the SSD without the card: I've been lucky enough to purchase 2 different USB to SATA cable. I've been trying for half an hour to get the rasb booting. So I tried the other cable. It worked instantly.
Thanks for the awesome videos. I can't help but batch watch them :-) Question if I may: I have been running HA for a year on my Synology NAS with InfluxDB and Grafana via Docker images. Seemingly though every time a HA update comes out the whole pack of cards comes tumbling down. As such I've gone for a RPi4 4GB to host HA as I feel its a more supported platform than Synology. My Question now is... Do I run InfluxDB and Grafana on the Pi or on my Synology or a mix? I'm angling toward Influx DB on the NAS but I'm be interested to know your thoughts. Assuming of course that I follow this very video and the PI is running from a SSD what are your recommendations? ;-) Thanks in Advance.
I did try a few SSD to USB 3.0 adapters and I got only errors. I bought Argon ONE M.2 and works from first time. Thank you for your support.
Awesome! Glad I could help
Hey can you do a video to setup the Argon One M.2 Fan control in Home Assistant please?
If after migration to the SSD and restoring the backup, you find that all the Add-ons are grayed out, go to Settings/System/Hardware and peroform a system reboot. That fixed it for me.
It appears that the fan isn't on for the Argon one after migration. How can we verify? Thank you!
The video is two years old now. I guess the process is mostly the same. But I'm new to Home Assistant and don't see the supervisor in my current installation. Is this the same as under Settings > Backups?
Great video. Quick question, by adding home assistant this way, does that mean the Pi is solely for Home Assistant? As in Raspberry Pi OS will not be installed? I am looking at setting up Home Assistant and a Plex server off my Pi and am wondering if I install home assistant this way I will not be able to do both. Thank you!
I ordered the Argon case and an m.2 SSD, but forgot the usb cable. I’m now trying to figure out if I could use the Pi with something like Raspbian to write HA to the SSD.
Question about 2.5” to usb adaptors- the first in your link, is it the USB 3.0 or 3.1 option that you recommend? There’s a lot of comments about issues with some of the startech leads with RPi… I’ll be trying this project at the weekend…
Thank you for a great video. I successfully restored a backup to a SSD. Should it be a lot quicker than a SD card? ( I am running RspPI 4 8GB).
Hi, I am trying to migrate from sd card to ssd argon case rpi4. So afrer pressing restore button I lost connection and after 4h HA is still not available. Is that normal? Backup file 1.2GB.
What are your thoughts about the ssd power consumption? The rpi can only provide up to 1.2amp through usb, which might not be enough for peak usage
So if I’m using that one case that has a built-in SSD, I just do a USB to USB cord and plug it directly into the computer that way to load home assistant to SSD?
Looking to start fresh, ordered new 8gb ram pi 4 and the argon case. Going to get a 128gb m.2 NVMe SSD for it and it's to be used as a home assistant hub. I can to this all fresh right? Without installing from the SD first?
Setting up DHCP reservations for your Raspberry PI (And other things) will make it keep the same IP and you don't have to setup the IP addresses every time you re-flash.
Hi there, I have a question, maybe two. I have set up my Pi to boot from SSD. Is the Home Assistant file in your tutorial a new full OS for the Pi? My SSD on the Pi is not recognized in my PC or Mac when plugged in there, but works fine in Pi. Can I transfer the new Home Assistant files to the SSD by SD card in the Pi and boot from there?
Thanks!!
Thanks Marcos!
@@EverythingSmartHome Hey Lewis! I got mine working here with a SSD, but only trough the 2.0 usb port. Any ideia why this might be happening? I believe it might be the Sata to USB adapter. While using the 3.0 port I can only see a black screen, no logs...
My power supply can output enough power and my adapter is labeled to support usb 3.0.
Quick question, ive been watching this video on numerous occasions on how to install home assistant on my Pi, ive managed to get it working once and that was couple of months ago, since then ive never managed to get it working again. Ive looked for my Pi's IP address in my hub settings and i cant see which one it is as it doesnt say. My ISP is Sky. What am i doing wrong please.
do you need to do anything to configure the fan on the Argon one or does it works straight out of the box?
again, thanks for your channel :)
can you maybe explain how to add a internal hdd (proxmox).... i am running out of space :/ today my HA reached limit and does weird stuff... but i cant find a tuturial how to add a second hdd... i would prefer use the os on my ssd and use a hdd fpr data (frigate and influxdb) is this possible?
help me a lot, just a minor headache... my usb sata adaptor finally works on legacy usb port on PI, so doesnt work with 3.0 usb port, extrange... but is working thanks
Is it possible to install pi-hole on top of this? I've got this installed and working fine but am unable to install pihole from Terminal. Would it be better to install proxmox and run each in their own virtual machine? Or even use Docker? New to linux so not sure the best way forward.
I changed the HA installation to SSD (Samsung T5 portable SSD). After copying the image HA starts and runs for 3 top 4 days without any issues. Then it fails. Even a reboot isn't working anymore. The file system itself is readable on a raspi. Did you saw such an behaviour or do you have an hint what could happened?
hi I recently moved my HA instance to SSD drive and cannot retrieve the supervisor logs any more (Failed to get supervisor logs, 502: Bad Gateway) any Ideas?
If I do a migration like this, will the backup/snapshot also restore the config for my Z-wave and Zigbee sticks from the HomeAssistant OS? I want to make sure I don't lose those as they were a bit of a pain to configure the first time.
I don't want to leave it, but how do I move the data disk back to the SD Card? Can it be done? Or do I need to build out a new HA instance on a new card and restore the backup?
Does the Raspberry Pi Imager install the 32bit or the 64bit version of HA ?
I have install it all, and i works, but i have one problem, how can make the rpi auto start, after it loss power? Now I need to manually go down and start it manually
do i need to update the eeprom and firmware of my rpi4? what i just want is to have the boot order, booting it first on usb-ssd first.TIA
hey I bought my Pi4 from Pimoroni and it came with a FAN SHIM. How can I setup automatic temp on and off with the fan if I have followed this video?
would you partition/change over provisioning for a 120Gb ssd for only HA use
Maybe stupid question: can I connect only the USB/m.2 Adapter of the ONE case to another PC and this way use it as an m.2/USB. adapter?