You are not logged in.

#1 2012-06-07 17:03:54

tomas.havlas
Member
Registered: 2012-06-07
Posts: 7

external hdd does not spindown

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

#2 2012-06-07 18:39:57

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: external hdd does not spindown

Offline

#3 2012-06-07 22:06:45

tomas.havlas
Member
Registered: 2012-06-07
Posts: 7

Re: external hdd does not spindown

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

#4 2012-06-07 22:45:16

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: external hdd does not spindown

tomas.havlas wrote:

KERNEL=="sd[a-z],

Should have closing quotes, before the comma.

Offline

#5 2012-06-08 14:05:37

tomas.havlas
Member
Registered: 2012-06-07
Posts: 7

Re: external hdd does not spindown

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

#6 2012-07-24 22:30:00

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: external hdd does not spindown

Same issue here.


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

Board footer

Powered by FluxBB