I may have encountered a similar problem and might have some clues about
a solution.

I'm using 9.04 server 2.6.28-11-server with an external usb disk which I
use for backups and like to spin down when not in use. I have been using
sdparm -C stop /dev/sdb with all partitions unmounted, which works OK
with Suse 10.0 & 10.3 but not with Ubuntu. I think I'm encountering the
same problem as reported above, the disk sounds like it's about to spin
down and then immediately starts up again.

I think the problem is due to the configuration of udev - although my 
understanding of this is pretty sketchy... The file:
/lib/udev/rules.d/60-persistent-storage.rules
appears to process change events and, in the case of a usb device, tries to 
obtain the usb_id. I think it is this which is waking the disk up again. This 
is probably also the case for other devices except that scsi_id is called 
instead.
Comparing the udev config between Suse 10.3 and Ubuntu 9.04 I noticed that the 
Suse config is not processing change events - it contains the line:
ACTION!="add", GOTO="persistent_storage_end"
whereas the Ubuntu config contains this line:
ACTION!="add|change", GOTO="persistent_storage_end"

I've overridden the default Ubuntu config by copying
/lib/udev/rules.d/60-persistent-storage.rules to /etc/udev/rules.d/60
-persistent-storage.rules and changing the ACTION! line to the Suse
configuration. I can now spin down the disk successfully, however, this
is a bit of a hack as I don't really know what I'm doing ;-) If anyone
who knows rather more about udev is reading this then please correct my
mistakes or explain the implications of this change!

-- 
hard disk will not spin down with kernel 2.6.29-11
https://bugs.launchpad.net/bugs/359513
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to