source: https://forum.openmediavault.org/index.php?thread/29145-device-identification-in-case-of-same-sn/ put script in /usr/local/bin/ eg usbsataserial.sh ------------------- #!/bin/sh SN=$(hdparm -I $1 | grep 'Serial\ Number' | awk -F ':' '{print $2}' | tr -d [:blank:]) echo "ID_SERIAL_SHORT=${SN}" echo "ID_SERIAL=${ID_VENDOR}_${ID_MODEL}_${SN}-${ID_INSTANCE}" ------------------- /usr/lib/udev/rules.d/99-usb-sata.rules ACTION=="add", SUBSYSTEM=="block", ATTRS{idVendor}=="0080", ATTRS{idProduct}=="a001", IMPORT{program}="/usr/local/bin/usbsataserial.sh $devnode", SYMLINK="disk/by-path/$env{ID_PATH}", SYMLINK+="disk/by-id/usb-$env{ID_SERIAL}"