EASY! Boot Raspberry Pi from USB SSD and Restore Home Assistant after SD Card Failure!

Sdílet
Vložit
  • čas přidán 25. 08. 2024

Komentáře • 78

  • @piloo_60
    @piloo_60 Před 8 měsíci

    Thanks for this "super video". Even if i'm not english spoken, i followed the procedure step by step and it was "MAGIC" ! Just what i needed.

  • @osfersa
    @osfersa Před 2 lety +2

    Great video, simple and very detailed. mine just went bad today and got it working in a matter of 20 minutes thanks to your detailed instructions.

    • @mostlychris
      @mostlychris  Před 2 lety

      Excellent! That is what prompted me to finally make the switch--failure of the SD card.

  • @matwatson7274
    @matwatson7274 Před 2 lety +2

    Like many on here, this was perfect timing! Instructions were easy to follow, thank you. The only thing that slowed me down was formatting the ssd on Win 11 (mostly me being a doofus). When I got everything done with backup restored I was very proud of myself, but strangely the wife was not that impressed?!

    • @mostlychris
      @mostlychris  Před 2 lety

      My wife has about a 5 min patience level for tech stuff so I understand 😉
      I have a laptop that keeps bugging me to go to Win 11. Haven't done it yet. Scared.

  • @bryanparks6958
    @bryanparks6958 Před rokem

    Thank you so much for your simple and direct demonstration of how to do this.
    I just started playing with my Raspberry Pi 4 with Home Assistant running from an SD card, and have been leery of it developing problems and making the system unusable or worse. I have ordered the USB SSD and associated cable recommended to setup my system to have more storage and be more reliable. Backups are your friend! 🤓

    • @mostlychris
      @mostlychris  Před rokem

      Always back up (and check that they are working every once in awhile). Glad you are jumping to SSD over SD.

  • @doug350zTT
    @doug350zTT Před 2 lety

    Excellent video went perfect with my desk pi pro v2 and m2 SSD .. glad I have it done before the SSD died

    • @mostlychris
      @mostlychris  Před 2 lety +1

      Congrats. Yeah, SD card failures are a pain.

  • @daliusss
    @daliusss Před 2 lety

    Today my SSD have failed. I had to do this tutorial other way arround - restore backup to my SD card and update the bootloader until. my new external SSD arrives. I was little nervous on the backup restoration page as it did not show any indication of progress. Also I was not sure if I have entered my backup password correctly. Fortunatelly the restoration succeed. Thank You!

    • @mostlychris
      @mostlychris  Před 2 lety

      Wow. I've never had an SSD fail (knock on wood). Glad you were able get it working. When restoring, I waited a LOOOONG time for any activity and I was also nervous.

  • @sumtertisdale
    @sumtertisdale Před 2 lety

    I’ve switched all of my other RPi s to USB boot but I have been holding out for the big switch with HomerAssistant. This was helpful so I’ll get started next weekend!

    • @mostlychris
      @mostlychris  Před 2 lety

      Excellent!

    • @sumtertisdale
      @sumtertisdale Před 2 lety

      @@mostlychris Done! Thanks for the guide, Chris. I am not sure how long it tries to boot from SD before moving on to USB so it is best to just remove the SD card like you said and let it go straight to USB, Restore took no more than 10 minutes. I have RPi4 with 8GB RAM.

    • @mostlychris
      @mostlychris  Před 2 lety

      Nice! It should try SSD first and then go to SD as a fall-back.

  • @SonuKumar-vp8xt
    @SonuKumar-vp8xt Před 2 lety +1

    Dear Sir Please make a tutorial base on How I can share my Hardisk Or pendrive over wifi using Home assistant OS... please

    • @mostlychris
      @mostlychris  Před 2 lety

      I'll add it to the list. Thanks for the suggestion.

  • @prawn5148
    @prawn5148 Před rokem

    what happens when the USB SSD is not plugged in? I would like to have a "only boot this when it is plugged in. when not then boot from SD Card" / Edit... sry you tell it at 2:40.

  • @BrummBilt
    @BrummBilt Před 2 lety

    Great timing. I’ve been meaning to do this, but haven’t got around to refreshing my memory on how to. Very clear and succinct. Thanks!

    • @mostlychris
      @mostlychris  Před 2 lety +1

      I was holding off myself because I thought it might be harder than it really was.

  • @theadminfromhell6869
    @theadminfromhell6869 Před 2 lety

    For anyone following this guide: Using the flash from URL adds a lot of unexplainable time to the process of making the SSD/USB device, I am on a gigabit internet and was told the process would take 18-ish minutes, manually downloading the image, extracting it and adding it to Balena myself knocked it down to 4-5 minutes, this includes, downloading, extractive and the verification process at the end! (I tested the flash from URL twice with the same results)
    @mostlychris, thanks for a great video, with simple and easy-to-follow instructions.

    • @mostlychris
      @mostlychris  Před 2 lety

      Interesting find. I'll try that next time. I wonder if it is proxying somewhere. I don't like that if it is.

  • @henkdevries5042
    @henkdevries5042 Před 2 lety

    GREAT videos Chris, very helpful! Just learning and have base installed and access it from remote!! Amazing stuff!
    Got many questions if okay? But for this video: can you not login and get a snapshot back directly from your NAS? Without installing Samba?
    I hope to do this from my SD card, set the sharp shot back from there. Works?
    Getting more and more amazed every step I make in this!!!! Keep up the good work please!!

    • @mostlychris
      @mostlychris  Před 2 lety +1

      You can upload your snapshot from anywhere you have access. It doesn't have to be from a Samba share. Not sure how you'd get it directly from your NAS though but I only now of Synology as that is what I use. I use the Samba Backup for my snapshots and they are stored to a mapped NAS drive. Good news is I rarely have to do any kind of restore.

    • @henkdevries5042
      @henkdevries5042 Před 2 lety

      @@mostlychris thank you Chris, makes sense. Yes, use Synology as well.
      I am considering to add two huge SSD drives to let the PI act as NAS as well, not sure if I need separate one or use same PI ?

    • @mostlychris
      @mostlychris  Před 2 lety

      Depends on what you are serving from that NAS. HA has a Plex add-on. I haven't used it because I don't know how well it would work transcoding higher quality content. If what you are using it for is strictly storage, you might be able to get away with it. I like having a storage solution that is designed for storage and have that separate from my automation stuff, but that is personal preference.

  • @n.r.2258
    @n.r.2258 Před 2 lety +1

    Maybe as an additional note...
    For me it does not work with any USB3 adapter, not even with an ext. USB disk enclosure. Tried 4 adapters on two different Pi4B.
    But great when using USB2.

    • @mostlychris
      @mostlychris  Před 2 lety

      That's odd. Usually that is a power issue and an external powered USB hub fixes that issue. You might have an issue with your USB3 on that pi. USB2 will be slower.

    • @n.r.2258
      @n.r.2258 Před 2 lety

      @@mostlychris
      I exclude power problem , because the Pi original power supply makes the same problem, as a DC backup power (80 Amp.).
      But as long as it works with USB2, it's ok.
      (fortunately I do not notice how much slower HA is on USB2 because I have no comparison to USB3 😂)

    • @mostlychris
      @mostlychris  Před 2 lety

      @@n.r.2258 I guess as long as it works for your needs then everything is good. One thing I probably overlooked in your comment is the adapter. Maybe the type of adapter you have plays a part--however, it's working so I wouldn't fix what isn't broken 😀

    • @n.r.2258
      @n.r.2258 Před 2 lety

      @@mostlychris 👍

  • @davidhill8151
    @davidhill8151 Před 2 lety

    Thanks for the tutorial! Towards the final step, when you choose your backup file and click "Restore", there is no type of progress bar that shows. How do you know when the Restore has completed? I'm tempted to refresh, but I don't want to mess up the restore process. Thanks again!

    • @mostlychris
      @mostlychris  Před 2 lety

      I just waited. Give it 15-20 min and then refresh. You can also check your router to see if the device is up and go to that IP in a new window.

  • @techrant6853
    @techrant6853 Před rokem

    My raspberry pi starts but randomly freezes out. And stops working. Anybody else have this proble? I tryed 3 usb sata cables/cases. The voltage is stable 5.1V. I use Y cables with external usb power supplys.

  • @edwardlytton1548
    @edwardlytton1548 Před 2 lety

    Great Video, but i have a Problem with the Bootloader, only a green screen. SSD config looks well

    • @mostlychris
      @mostlychris  Před 2 lety +1

      Make sure you have enough power to the SSD and make sure you are using a known working SSD adapter. If you haven't already, try a powered USB hub to plug the SSD into.

  • @jmpcrx
    @jmpcrx Před rokem

    Try doing that on a 3b+. Not poss.

    • @mostlychris
      @mostlychris  Před rokem

      Think I mentioned that. I know I've talked about it somewhere. The different pi versions don't allow the same options.

  • @DougLight
    @DougLight Před 2 lety

    Thanks for all your step-by-step instructions! Question: In the video, and after doing my Balena flash of the hassos to the SSD, the SD card has a 32 MB partition and the rest of the SSD is un-allocated, even if I have formatted the SSD with a larger partition. Does the rest of the 200+ GB on the SSD remain unable to Home Assistant to grow into?

    • @mostlychris
      @mostlychris  Před 2 lety

      Mine is using the full amount. If you hover over the "Used Space" graph under configuration->supervisor->system does it show the full size?

    • @DougLight
      @DougLight Před 2 lety

      @@mostlychris Yes, thanks. My misunderstanding. I was looking at the SSD configuration after flashing but before booting. Apparently one of the setup steps Home Assistant goes through to prepare a new install is to format the un-allocated space into the HA partition. Still working on getting my pi 3 configuration/backup fully over to the pi 4 but making progress. We appreciate your many useful ideas and clear explanations!

    • @mostlychris
      @mostlychris  Před 2 lety

      Awesome. Good luck on the migration.

  • @waelzayed
    @waelzayed Před 2 lety

    I’ve migrated my HA to SSD and I’m experiencing a frequent connectivity loss on My Z-wave and zigbee devices. I think I’ll flash it back microSD

    • @mostlychris
      @mostlychris  Před 2 lety

      Do you have logs that tell you why? Shouldn't make any difference UNLESS you have a USB issue. I would first try putting the drive on a powered USB hub. That'll probably fix it. If not, the drive or USB adapter is causing interference. In that case, get a USB extension cable and move the zwave or zigbee device away from the Pi a little way.

  • @mksmurff
    @mksmurff Před 2 lety

    Great video however this initially hasn't worked for me with a bunch of errors on ssd startup. Reading through the community forum, it appears my usb to ssd may not be compatible. It seems like not all adaptors work. And it seems difficult to get a list from anywhere

    • @mostlychris
      @mostlychris  Před 2 lety +1

      There is a link to the known working hardware in the video description. You are correct in that it is probably a compatibility issue.

    • @mksmurff
      @mksmurff Před 2 lety +1

      @@mostlychris Yep thanks. Already ordered and delivered thanks

  • @MaxGoddur
    @MaxGoddur Před 2 lety

    The first time I followed your video it was easy as pie to setup. Well that drive (SSD Samsung) failed after running just fine for months.
    Picked up a 120GB Kingston drive and for the life of me can not get the steps to work now.
    The first thing I noticed while attempting to format on Windows 10 was the FAT format ability was missing from the selection possibilities only NTFS and exFAT were available.
    Going to start over but would appreciate any help or suggestions.

    • @mostlychris
      @mostlychris  Před 2 lety

      Is this a power issue maybe? Are you running it on a powered USB hub? Could also be an issue with the adapter you are using.

    • @MaxGoddur
      @MaxGoddur Před 2 lety

      @@mostlychris turns out the SSD case I used during my successful install was the cause this time around. Found out after buying a new SSD case.

    • @mostlychris
      @mostlychris  Před 2 lety

      Sweet. Figured it was something like that. I assume the case is the adapter.

    • @MaxGoddur
      @MaxGoddur Před 2 lety +1

      @@mostlychris correct.

  • @Warmandk
    @Warmandk Před 2 lety

    With the current version of Raspberry Pi Imager v. 1.7.2 I'm able to install an OS directly to a USB drive (SSD or otherwise). I'm also able to install Home assistants directly from the menu. My point being, is there any reason not to just install any OS and/or Home assistant directly from Raspberry Pi Imager?

    • @mostlychris
      @mostlychris  Před 2 lety

      The imager is a nice tool. I don't see an disadvantage to doing what you said. HA will still go through the initial setup process as outlined in the video. Getting the OS onto the drive can be done many ways and the imager seems like an easier one.

  • @fawad.rashid
    @fawad.rashid Před 2 lety

    Are there any additional steps if you have setup MariaDB instead of filesystem based db that HA by default uses ?

    • @mostlychris
      @mostlychris  Před 2 lety

      I don't think so. It still boots of the SSD and all stuff runs off the SSD. MariaDB is still stored on the filesystem.

  • @waelzayed
    @waelzayed Před 2 lety

    Did you keep SSD disk after the restore? If yes, the RP has two USB 3 ports, usually one is used for Z-Wave/Zigbee controller and the other for TPU. Which one do you think must be moved to USB 2 port?

    • @mostlychris
      @mostlychris  Před 2 lety

      I am still running the SSD. Not sure I understand the rest of your question.

    • @BrummBilt
      @BrummBilt Před 2 lety +1

      My Z stick is on a usb 2 no problems

    • @doug350zTT
      @doug350zTT Před 2 lety +1

      I put my zwave stick on usb3 and my zigbee dongle on usb 2 came back up no reconfigure needed

  • @robertdalga128
    @robertdalga128 Před 2 lety

    Chris, could u use a USB drive (i.e. thumb, jump, flash drive) instead or r they not as reliable?

    • @mostlychris
      @mostlychris  Před 2 lety

      I don't know that you can boot off of it. I am running a 1TB drive on my HA Blue so that I can record 24x7 on some of my cameras that are tied into Frigate NVR.

    • @bill_automated1226
      @bill_automated1226 Před 2 lety +1

      I am not sure if you can use a thumb drive, but I would encourage you not to do that. The quality of the flash memory in a thumb drive is typically even lower than what's used in an SD card.

    • @mostlychris
      @mostlychris  Před 2 lety

      @@bill_automated1226 Agreed.

  • @mike95826
    @mike95826 Před 2 lety

    Does this boot from USB method work with the Raspberry Pi 3B+ ? The most current confirmed info I have is about 2 years old.

    • @mostlychris
      @mostlychris  Před 2 lety

      It can, but there is a different process for getting the pi 3b+ into USB boot mode.

  • @yousaf.saleem
    @yousaf.saleem Před 2 lety

    with new network install bootloader installed, can't we do away with PC/MAC method?

    • @mostlychris
      @mostlychris  Před 2 lety

      Details?

    • @yousaf.saleem
      @yousaf.saleem Před 2 lety

      czcams.com/video/oqyMfGOEGwE/video.html and czcams.com/video/shChBhapdTo/video.html

  • @CagrTOPCU
    @CagrTOPCU Před 2 lety

    My octopi sd card failed about 3 hours ago. Such a coincidence.

    • @mostlychris
      @mostlychris  Před 2 lety

      Ugh. Boot into that SSD and restore from backup.

  • @ppi57
    @ppi57 Před 2 lety

    Can I use a Samsung T5/7 SSD (its usb-c)

    • @yousaf.saleem
      @yousaf.saleem Před 2 lety

      why you want to use that?

    • @mostlychris
      @mostlychris  Před 2 lety

      Check out the list of devices in the link in the description. It talks about what does and does not work.

    • @yousaf.saleem
      @yousaf.saleem Před 2 lety

      @@mostlychris it is a expensive drive although it can be used but why someone could use it?

    • @mostlychris
      @mostlychris  Před 2 lety

      Dunno. I probably have stuff that is overkill for what I am using it for, but because I had it lying around.

  • @JarppaGuru
    @JarppaGuru Před rokem

    0:20 never had sd card fail. dont abuse them xD.
    if you use sd card on raspberry pi its just DEMO gimmick system not any.... you got it lol

    • @mostlychris
      @mostlychris  Před rokem

      I don't have them fail often, but when they do it's at the most inconvenient time.