PDA

Bekijk de volledige versie : HDPARM Disk spin down



Egres
22-09-2006, 14:19
Hello!

i'm trying to set sleep mode for a USB -HDD mounted with Oleg's firmware

[admin@ASUS root]$ hdparm -S 120 /dev/discs/disc0/part1

/dev/discs/disc0/part1:
setting standby to 120 (10 minutes)
HDIO_DRIVE_CMD(setidle1) failed: Invalid argument

anybody has an idea what am i doing wrong??????????:confused: ?????

as2
23-09-2006, 19:11
Hdparm -k1 -K1 -S120 /dev/hdX works fine with Seagate Barracuda ATA4.
Power supply on the drive must be allways on !!!

Regards

as2
23-09-2006, 19:22
I forgot:

Hdparm works only with IDE not USB.
Use host with Linux installation (FC4 in my case);
switch on USB drive PWR Supply;
disconnect IDE cable from USB disk;
connect USB disk to host with IDE cable;
switch on the host;
boot to linux and type fdisk -l in terminal to find the drive (/dev/hdx)
use above hdparm command;
disconnect ide cable from host with power supply on, and connect it to USB controller;
connect it to 500GP and wait for 10 minutes - if motor stops then all is OK;

In my case Seagate works fine, but drive looses all written parameters (hdparm) if power supply is interrupted.

Gerry Boland
29-09-2006, 23:06
Do you have to do this every time you switch off the HD power supply???
I've been looking for this exact solution, I find my HD gets pretty hot spinning all day.
-Gerry

pash
30-09-2006, 13:37
Maybe have a look at the Jumpers of your Harddisk.

Some support RPM2.

fero_hora
04-10-2006, 20:50
any update how to spin down usb disc ?
thanks

as2
24-01-2007, 00:32
In my case I must repeat procedure every time when power supply to HDD is disconnected.

WlanMan
25-01-2007, 00:30
Hi

The answer is simple and disappointing: ITS IMPOSSIBLE.

Usb to ide converters are not capable of transfering the controll commands needed to use hdparm. In fact they do the most communication with the hd by themself, presenting the computer not much more then a read-data write-data and get-capacity command.

It is sometimes possible to enable an auto-spindown after xx minutes inactivity mode in the harddrive, by use of tools from the harddisk producer.

If you had read the hdparm website or searched the forum a bit you could have read this ;).

Greets
Wlanman

britnet
25-01-2007, 09:19
Hi

The answer is simple and disappointing: ITS IMPOSSIBLE.



Sorry WlanMan, but you are not right.

See this thread to get more information. LINK (http://wl500g.info/showthread.php?t=7836)
Xander will write a tutorial especially for beginners.

WlanMan
28-01-2007, 22:28
Hi

Ok, if this realy works, great :D. All places dealing with usb disks on embedet devices (like nslu2) state its not possible.
Did the spinup work also, without a kernel patch?

To my knowlede the usb storage stuff is linked in with the scsi subsystem in 2.4 kernels, but supporting only what the usb specification allows.
If you indeed CAN send spindown commands to the drive, i wonder why smartmon wouldnt be possible. They should use the same atapi-like mechanism...

Greets
Wlanman

DawMatt
29-01-2007, 22:48
Hi,

@britnet, that link no longer seems to work. The tutorial thread seems to have disappeared. Anyone have any idea where to find the info now?

Thanks,
Matt

britnet
30-01-2007, 09:19
Hi,

@britnet, that link no longer seems to work. The tutorial thread seems to have disappeared. Anyone have any idea where to find the info now?

Thanks,
Matt

For me it works.

Just try it again.

Oleg
30-01-2007, 10:01
For me it works.

Just try it again.

:D You've deleted it. I've recovered it now.

cybercp
27-12-2008, 19:01
[admin@ASUS root]$ hdparm -S 120 /dev/discs/disc0/part1

/dev/discs/disc0/part1:
setting standby to 120 (10 minutes)
HDIO_DRIVE_CMD(setidle1) failed: Invalid argument


I got the same error, is it only works for USB to IDE not USB to SATA ?

PeterRies
27-01-2009, 10:35
Hi cybercp!

I got the same error with my internal WLHDD IDE Drive, after it worked for several month. I found out that the currently (12.2008) installed hdparm Version (V 9.xxx) was not working for me anymore. Problems occured after a "ipkg update && ipkg upgrade"

I downloaded an older version of hdparm (Version 6.xxx somewhat from nslu -> search via google!) and installed this instead. I don't know whoch version stopped working. But 6.xxx does it.

Install with the ipkg --force_downgrade(???) Parameter - please have a look at the options of ipkg as I'm at work right now and can't have a look.

After this my wlhdd sets spin down correctly. I'm using the same commandline as you.

Hope it works for you - absolute silence is great.

/Peter

cybercp
29-01-2009, 07:23
thx Peter,

HAPARM just release v9.10 on 28-Jan-2009, will test it tonight and update you too.
http://sourceforge.net/project/showfiles.php?group_id=136732&package_id=150265

cybercp
30-01-2009, 15:34
Hi Peter,

I've tried the hdparm_6.1-1_mipsel, hdparm_6.9-1_mipsel and the latest one 9.8 all reported the same error message "HDIO_DRIVE_CMD(setidle1) failed: Invalid argument". So that I guess the hdparm only works for the USB to IDE not USB to SATA : (