What's new

Disable disk spin down by some id: serial number, partition label or UUID

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ksa

New Around Here
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?
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top