Quad Sata Kit and OpenMediaVault 5 (Raspberry Pi 4)

I found that the suggested fix, where the subsystem was stated as usb did not work for me.

KERNEL==“sd*”, ATTRS{idVendor}==“152d”, ATTRS{idProduct}==“2338”, SUBSYSTEMS==“usb”, PROGRAM="/root/serial.sh %k", ENV{ID_SERIAL}=“USB-%c”, ENV{ID_SERIAL_SHORT}="%c"

(With the right vendor and product ids of your drives.)

Since it appeared (using “sudo udevadm monitor”) that the device was actually being processed as a scsi rule, rather than the usb rule. After creating the “/root/serial.sh” as suggested in the fix (and chmod +x on it), the udev rule:

Sata-Hat drive fix

KERNEL==“sd*”, ATTRS{idVendor}==“1058”, ATTRS{idProduct}==“0a10”, SUBSYSTEMS==“scsi”, PROGRAM="/root/serial.sh %k", ENV{ID_SERIAL}=“USB-%c”, ENV{ID_SERIAL_SHORT}="%c"

Found the drives and got their correct serial number so I got all four drives.