Live data from Hacker News

I'm booting my Raspberry Pi 4 from a USB SSD

jeffgeerling.com

21–30 of 33 posts

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#21

Excellent. The biggest obstacle ive had to using Pis for practical things is that the memory cards eventually go bad. Looking forward to seeing this in the main release.

Eventually sounds like far far away In reality, they really have short lifespan, are slow, and halt the system Therefore I wouldn’t recommend the rpi anymore.

the lifespan is mostly due to writes, right? so couldn't you just boot from an SD card but save your actual data on an external drive?

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#22
post #19
post #10

Earlier quoted context omitted.

Couple more things to remember: - don't use swap - make sure you have noatime on all your filesystems - identify other folders with frequently changing data (/tmp, $HOME/tmp, etc.) and also make sure you keep them in memory - you can use NFS for many of these things if that is possible

Something I never understand: Why is this not the default? So many people struggle with the same stuff over and over again, yet, there's no mechanism in Linux distros to package default settings for a use case.

You want a stable, easy-to-use platform. Setting /var/log to something other than the main disk risks all kinds of difficult to diagnose problems. If that means burning through SD cards, so be it. It's relatively easy to mod it to write elsewhere, that's exactly the purpose of user customization.

What they ought to do is put an easy way to set that in `raspi-config`

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#23

Does anyone know if its theoretically possible to run a cluster of Pi's off of the same external ssd at the same time? I'd like for say 4 Pi's to get a speed boost of not running off microSD, but I also don't want to shell out for 4 separate hard drives. I've looked in the past and have only found links to partitioning the drive so that it could be used when moving from one pi to another. But nothing about using it c…

You need a 5th PI in front of the SSD providing a network file service.

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#24

Excellent. The biggest obstacle ive had to using Pis for practical things is that the memory cards eventually go bad. Looking forward to seeing this in the main release.

Eventually sounds like far far away In reality, they really have short lifespan, are slow, and halt the system Therefore I wouldn’t recommend the rpi anymore.

The whole point of my post is to suggest that it's now easy (soon even easier when it's not a beta feature) to run everything from a durable external SSD. You don't even need a microSD card inserted anymore.

Ideally the next Pi gets some interface that allows more integrated storage, like eMMC or NVMe, but even with USB the speed and durability justifies annoying cabling situations.

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#26

Really great article and very helpful, but where does the 8x faster for writes come from? I make it 6.2x.

Oops! My math must've been a bit broken. I'll update that part.

Thanks! I tried to leave a comment on the article itself but it said I was blacklisted (first time visitor so I think something might be going wrong there).

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#27

Excellent. The biggest obstacle ive had to using Pis for practical things is that the memory cards eventually go bad. Looking forward to seeing this in the main release.

Yes, just yesterday I debugged an issue with my raspberry pi. It would randomly reboot itself about half of the time I ran a certain workload on it.

After swapping out the SD card with a new one, it appears to be fixed. This was hard to diagnose as there was nothing in system logs / error messages about what might have went wrong.

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#28

Excellent. The biggest obstacle ive had to using Pis for practical things is that the memory cards eventually go bad. Looking forward to seeing this in the main release.

note this worked on all the previous models of the pi. It just wasn't ready for the pi 4 when it shipped.

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#29

Earlier quoted context omitted.

Eventually sounds like far far away In reality, they really have short lifespan, are slow, and halt the system Therefore I wouldn’t recommend the rpi anymore.

the lifespan is mostly due to writes, right? so couldn't you just boot from an SD card but save your actual data on an external drive?

Yes, I have several pis that boot from an sd card and then all of the file systems get mounted over NFS. The sd card only needs to be read from once every few weeks/months when it boots.

Even if it does wear out, storing all the data on NFS (or a usb drive) makes it a lot less worrying.

Re: I'm booting my Raspberry Pi 4 from a USB SSD

#30

Earlier quoted context omitted.

Oops! My math must've been a bit broken. I'll update that part.

Thanks! I tried to leave a comment on the article itself but it said I was blacklisted (first time visitor so I think something might be going wrong there).

D'oh; I'm still trying to get my spam settings fixed on the site, after a major upgrade a couple weeks ago. Sorry about that.
Post reply on HN