I have AX88U Pro router. It has a single USB port. USB 3 hub is connected to the port and 2 drives are connected to this hub: one HDD and one SSD.
My issue is that SSD seemingly "spins down" and becomes unavailable. I cannot bring it back. If I disable the spin down for the disk, everything works fine. The issue is that drive device name is not know before boot. I can get `sdb` for HDD and `sda` for SSD, another time I get `sda` for HDD and `sdc` for SSD. So I need to find a way to disable spin down by something else that identifies the disk: e.g. serial number, or its partitions(s) label or UUID. One way would be custom script on pre-mount or post-mount.
Could someone point me to a way to disable/enable spin-down feature at runtime given the device name (e.g. /dev/sda) usable in script?
My issue is that SSD seemingly "spins down" and becomes unavailable. I cannot bring it back. If I disable the spin down for the disk, everything works fine. The issue is that drive device name is not know before boot. I can get `sdb` for HDD and `sda` for SSD, another time I get `sda` for HDD and `sdc` for SSD. So I need to find a way to disable spin down by something else that identifies the disk: e.g. serial number, or its partitions(s) label or UUID. One way would be custom script on pre-mount or post-mount.
Could someone point me to a way to disable/enable spin-down feature at runtime given the device name (e.g. /dev/sda) usable in script?