Hi, I’m trying to set it up as a NAS with a single SATA ssd (whith debian 9 or ubuntu 18.04, 4.9.119-BPI-W2-Kernel), but it seems impossible to mount the sata disk by UUID or LABEL by putting the usual line on /etc/fstab (or with systemd-mount too)
UUID="4b81920f-b3a6-4f6f-90c0-d9ce87e81270" /mnt/ssd1 ext4 defaults,noatime,nodiratime 0 0
The system hangs forever at boot waiting for the device.
This is the output of blkid
pi@bpi-iot-ros-ai:~$ sudo blkid
/dev/mmcblk1: PTTYPE="dos"
/dev/sataa1: LABEL="DATI" UUID="4b81920f-b3a6-4f6f-90c0-d9ce87e81270" TYPE="ext4" PARTUUID="8f663f8e-01"
/dev/mmcblk0: PTUUID="9201e809" PTTYPE="dos"
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="BPI-BOOT" UUID="D81E-6C83" TYPE="vfat" PARTUUID="9201e809-01"
/dev/mmcblk0p2: LABEL="BPI-ROOT" UUID="166d2b20-4897-4f06-8343-78638cc36091" TYPE="ext4" PARTUUID="9201e809-02"
And this is the content of /dev/disk/by-uuid/
pi@bpi-iot-ros-ai:~$ ls -la /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 80 Dec 1 23:55 .
drwxr-xr-x 7 root root 140 Dec 1 23:55 ..
lrwxrwxrwx 1 root root 15 Dec 1 23:55 166d2b20-4897-4f06-8343-78638cc36091 -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Dec 1 23:55 D81E-6C83 -> ../../mmcblk0p1
As you can see, my SATA disk is missing from /dev/disk/by-uuid/ and from /dev/disk/by-id and /dev/disk/by-label too.
As a workaround I can put /dev/sataa1 on fstab. It works, but under some cases, when I insert a USB multi card reader, the real block device changes to /dev/satab1 and the fstab mount fails.
Why does it hangs at boot? Is the missing /dev/disk/by-uuid entry blocking the boot? If yes, why there is no /dev/disk/by-uuid entry ? A bug on the sata driver?
Thank you