Hi there,
I’ve got a Raspberry Pi 4 with an SSD plugged into one USB 3 port, from which I boot, and a four-port USB 3 hub plugged into the other port, from which various external hard drives are plugged into.
FreeBSD enumerates the USB ports in a seemingly random way. For example, at the moment there are 3 drives connected to the hub. Port 1 of the hub is da2, port 2 is da1, and port 3 is da3. The SSD in the other physical port of the Pi is da0. This is consistent every time I boot.
However, if I plug one more device into the hub, and reboot, it becomes da0, and FreeBSD drops into single user mode.
Is there any way in way in /etc/fstab to mount drives using their labels or some sort of unique ID? If not, can anyone suggest an alternative so I can guarantee that a certain drive is assigned a certain device name?
Thanks in advance.
EDIT: This is actually worse than I thought; rebooting with my current configuration sometimes causes the drives to be enumerated differently. Could this be caused because U-Boot sometimes finds certain drives asleep when it tries to initialise them, and then initialises them in the order they wake up? Perhaps there is a U-Boot setting that could be changed, but it would be better to be able to mount a certain drive in a certain place based on a unique identifier rather than a device ID in case the hardware configuration changes in future.
I’ve got a Raspberry Pi 4 with an SSD plugged into one USB 3 port, from which I boot, and a four-port USB 3 hub plugged into the other port, from which various external hard drives are plugged into.
FreeBSD enumerates the USB ports in a seemingly random way. For example, at the moment there are 3 drives connected to the hub. Port 1 of the hub is da2, port 2 is da1, and port 3 is da3. The SSD in the other physical port of the Pi is da0. This is consistent every time I boot.
However, if I plug one more device into the hub, and reboot, it becomes da0, and FreeBSD drops into single user mode.
Is there any way in way in /etc/fstab to mount drives using their labels or some sort of unique ID? If not, can anyone suggest an alternative so I can guarantee that a certain drive is assigned a certain device name?
Thanks in advance.
EDIT: This is actually worse than I thought; rebooting with my current configuration sometimes causes the drives to be enumerated differently. Could this be caused because U-Boot sometimes finds certain drives asleep when it tries to initialise them, and then initialises them in the order they wake up? Perhaps there is a U-Boot setting that could be changed, but it would be better to be able to mount a certain drive in a certain place based on a unique identifier rather than a device ID in case the hardware configuration changes in future.