[Bug 799312] Re: /etc/hdparm.conf works only for /dev/sdX and not for their symlinks
Ewano
799312 at bugs.launchpad.net
Thu Mar 29 18:12:48 UTC 2012
This bug is *still* in precise pangolin - and the fix worked a charm. In
chasing this one down it looks like it's been around *AND FIXED* since
April 2008 but the fix has never been carried forward.
Other bugs list very similar fixes:
222458
227705
What is the process by which a fix such as this can be moved into the
official code base?
For others following:
This fix allows me to set a USB hard drive to spindown using
hdparm.conf, with out needing to know what /dev/sdX it will end up
coming under. I used a combination of the Disk Utility and ls -1
/dev/disk/by-id/* to find the devices manufacturer unique id
Then added:
/dev/disk/by-id/<your specific disk identifier here> {
spindown = 241
}
to my hdparm.conf and it works fine under ubuntu 12.04 beta with this
patch - no matter what order I plug in usb storage.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to hdparm in Ubuntu.
https://bugs.launchpad.net/bugs/799312
Title:
/etc/hdparm.conf works only for /dev/sdX and not for their symlinks
Status in “hdparm” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: hdparm
Setting hard drive parameters in /etc/hdparm.conf finally seems to work since Ubuntu 10.10, if (and only if) you specify the drives like /dev/sda, /dev/sdb, .... . Since the /dev tree is build dynamically by udev, you can't be sure, that the parameters specified this way are applied to the correct hd. However it is would be safe to use the correspondent symlinks in /dev/disk/by-uuid or /dev/disk/by-id to define your hd.
A partial fix was given in #222458. But since then the hdparm script files have changed and it worked only with symlinks to the drive itself and not with symlinks to its partitions (like in /dev/disk/by-uuid).
I attach a patch based on #222458, which should fix the above described problems for 10.10 and 11.04.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/799312/+subscriptions
More information about the foundations-bugs
mailing list