

Options:xiando wrote:make this harddrive go to sleep and never wake up.
Code: Select all
hdparm -Y /dev/hdback > /dev/nullCode: Select all
sdparm -C stop /dev/hdback
U*thing also resets the drive acoustic setting on KDE login, after /etc/init.d/hdparm has run.lost+found wrote:...and probably more...
I'm using XFCE4.lost+found wrote:I guess the culprit is not udev but udisks. I noticed the same ghost spin ups, until I ripped off all *kit and u* stuff (except eudev) from KDE. It interferes with hdparm (and smartd, and probably more). I never found a solution to let hdparm and udisks play nicely together though.
Well I don't see how a symlink would make a difference, but how would I set the symlink using udev rule?PaulBredbury wrote:Where /dev/hdback is a symlink set via a udev rule - must more reliable than relying on e.g. sda, sdb.Code: Select all
hdparm -Y /dev/hdback > /dev/null
It's a very old IDE drive. As said, I don't use it myself so I don't care that it is old and slow. I don't run smartd, so that's not it.lost+found wrote:Another guess... maybe the SMART feature is set, and the drive is performing tests on it's own (factory defaults?). On big drives that can take hours if not split in parts. At least the drive may spin up.lost+found wrote:...and probably more...

The drive's firmware does the testing. Smartd is optional. I remember u*thing had a file that looked like a list with drive specifications, and if it was SMART capable or not. It may turn it on by default. Still guessing though. To be sure, and just for fun, you can read the logs and settings on the drive:xiando wrote:... I don't run smartd, ...
Code: Select all
# emerge smartmontools
# smartctl -a /dev/sdb
Example: If I boot kernel 3.9 with my BlackBerry phone connected via USB, the phone is /dev/sdaxiando wrote:Well I don't see how a symlink would make a difference, but how would I set the symlink using udev rule?
Code: Select all
ACTION=="add", KERNEL=="sd*", ENV{ID_SERIAL_SHORT}=="WD-WXblahblah", SYMLINK+="hdback%n"Code: Select all
if [[ -e /dev/disk/by-id/wwn-0x5001blah ]] ; then
ln -sfn disk/by-id/wwn-0x5001blah /dev/hdroot
fi