Live data from Hacker News

Raspberry Pi OS now has SATA support built-in

jeffgeerling.com

21–30 of 33 posts

Re: Raspberry Pi OS now has SATA support built-in

#21
post #20

Does anyone know if booting off a USB stick instead of SD card will prevent my RPi 4 from crashing every ~1-3 days?

Mine runs fine for months on end. Things I did which might have helped: mount /tmp in a ramdisk and have an enclosure with good passive cooling

Re: Raspberry Pi OS now has SATA support built-in

#22
post #19

Earlier quoted context omitted.

Many applications won't allow the RAID to be set up over USB devices (e.g. Open Media Vault, IIRC), because software RAID over USB is prone to flakiness.

? pretty sure Open Media Vault on Raspberry Pi could setup a RAID with 2 USB hard drives, have been using it for almost 3 years.

USB Attached SCSI is the answer: https://en.wikipedia.org/wiki/USB_Attached_SCSI

Re: Raspberry Pi OS now has SATA support built-in

#23

The one thing that kept me away from the raspberry pi was that the sd card tends to fail after some time (hours to weeks). Now I just wait until the board gets built with a single sata slot.

Ebon has said specifically (in answer to my question in a Q&A) that the standard Pi will never have built in SATA. Your best option is one of the other manufacturers Pi type SBC clones.

Re: Raspberry Pi OS now has SATA support built-in

#26
post #19

Earlier quoted context omitted.

? pretty sure Open Media Vault on Raspberry Pi could setup a RAID with 2 USB hard drives, have been using it for almost 3 years.

USB Attached SCSI is the answer: https://en.wikipedia.org/wiki/USB_Attached_SCSI

>The Linux kernel has supported UAS since 8 June 2014 when the version 3.15 was released.However, some distributions of Linux such as Ubuntu (from v11.xx onwards) have suffered from issues with the implementation of the UAS protocol.

I assumed UASP is standard now, Every USB 3.0 or > storage devices, enclosures I've bought over past 5 years have supported it but it seems some Linux distros are still having trouble.

Searching for uas under ArchLinux ARM on Raspberry Pi 3 which is booted using a SSD drive with UASP enclosure returned nothing.

Re: Raspberry Pi OS now has SATA support built-in

#27

The one thing that kept me away from the raspberry pi was that the sd card tends to fail after some time (hours to weeks). Now I just wait until the board gets built with a single sata slot.

I've used various RPi's (and clones) for years now, and I've never had a SD card fail.

One RPi has been running my Home Assistant for 3 years 24/7, with a very noisy ZWave network that has debug logging on.

I had one where I _thought_ there was something weird going on with the SD card, but it turned out to be a crappy USB cable that lead to excessive voltage drop under load. Swapped the cable and it's been running my PiHole for over 2 years now on a standard Armbian+Docker install, zero issues.

Maybe I've just been lucky?

Re: Raspberry Pi OS now has SATA support built-in

#28

The one thing that kept me away from the raspberry pi was that the sd card tends to fail after some time (hours to weeks). Now I just wait until the board gets built with a single sata slot.

I've used various RPi's (and clones) for years now, and I've never had a SD card fail. One RPi has been running my Home Assistant for 3 years 24/7, with a very noisy ZWave network that has debug logging on. I had one where I _thought_ there was something weird going on with the SD card, but it turned out to be a crappy USB cable that lead to excessive voltage drop under load. Swapped the cable and it's been running m…

It usually dies during an ungraceful shutdown. Had at least 3 go over the years until I switched to USB to SATA SSD boot. Not a problem since.

Re: Raspberry Pi OS now has SATA support built-in

#30

The one thing that kept me away from the raspberry pi was that the sd card tends to fail after some time (hours to weeks). Now I just wait until the board gets built with a single sata slot.

I've had a similar frustration. For what it's worth, sending most logs to RAM drastically reduces the write-thrashing on the SD card, and greatly prolongs the life of a 24/7 Pi: https://github.com/azlux/log2ram

Depending on the use case, RAM disks are also pretty easy to set up for any temporary/volatile storage used by shell scripts and the like.

Post reply on HN