You are not logged in.
Pages: 1
Hello,
I have problem with my external hdd, when I connect it to computer it keeps spinning, even when there is no activity on it, no read/write, I have tried let it for an about hour, but it still keeps spinning. Is there some way how to make it spin down when disk is idle for 5 or 10 mins?
Thanks
Offline
Yeah, laptop mode tools.
Offline
Hello,
thanks for pointing in direction, I don't need whole laptop-mode-tools. But I found out that when I set apm level to 1, then disk spins down when idle, just like I want it, but I need to set this everytime I plug it (its external drive), so I thought of making udev rule, but I still haven't succeed. Here is my rule
ACTION=="add", SUBSYSTEM=="block", KERNEL=="sd[a-z], ENV{ID_SERIAL_SHORT}=="5758363145433153XXXXXXXX", RUN+="/sbin/hdparm -B 1 /dev/disk/by-id/usb-WD_My_Passport_0748_5758363145433153XXXXXXXX-0:0"
anytime I plug my disk this should identify it and change apm level to 1, running command in console works, so I just need to make udev run it when I plug that drive. Is there something I'm doing wrong? I put this line in new file /etc/udev/rules.d/00-custom-hdd.rules, and I had run udevadm control --reload-rules, but still it doesn't work.
Any idea?
Thanks
Offline
KERNEL=="sd[a-z],
Should have closing quotes, before the comma.
Offline
Hello,
I'm not sure but I think that all my "custom" rules in /etc/udev/rules.d are ignored I have trying a lot of possible combinations, that should work, I have tried to run script that writes some string into some file, everytime when new device is announced, but nothig, everything seems to be ignored any idea, what should I do?
Thanks
Offline
Pages: 1