I have the RPI4 QUAD SATA HAT, currently with 4 disks connected. Is there a fixed order in which the SATA ports 1-4 are mapped to /dev/sda-/dev/sdb?
I would have expected port 1 to sda, port 2 to sdb etc but that apparently isn’t the case. Maybe it depends on how fast the individual drives start up? Currently I have:
<edit, I had the ports wrong>
SATA port 1 -> /dev/sdc
SATA port 3 -> /dev/sda
SATA port 2 -> /dev/sdd
SATA port 4 -> /dev/sdb
With if i’m not mistaken SATA port 3 and 4 being on one WD USB to SATA converter and SATA port 1 and 2 being on the other WD USB to SATA converter?
The reason I’m asking is that I want to boot from USB with the RPI’s beta firmware a particular USB disk. I’ll swap the one I want to boot from to SATA port 2 I guess.
linux is the one naming them in the order they are detected
I’m just curios, isn’t the new firmware supposed to boot from any usb device, meaning it will search which one contains the files and boot from that, irelevant of the naming given by linux sda/sdb …
you could always specify in fstab the boot and rootfs by PARTUUID, just do a blkid and see the ID of the partitions you want and modify fstab
Yes it’s already defined by PARTUUID, but the beta USB boot firmware doesn’t boot off the Hat. I’ve tried it with just a single disk, in each of the 4 ports and the result is the same:
you cannot boot from the hat, as the drivers need to be loaded and initialized. That happens at the end of the normal boot period, so the hat cant even be seen until Raspbian is already booted.
Yeah, I kind figured that as well. But i thought/hoped that the drivers/initialisation would just be for the OLED and fan, not for the USB to SATA converters.