-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The Saturday 2008-01-05 at 22:24 +0100, jdd wrote:

I have an USB drive (hard drive), but it is always spinning. Is it possible to make it stop when unused?

Ouch!

That would be nice to have, but... we can't. The culprit this time is hardware: the usb boxes have a limited chipset that do not include the necessary functions for this to work. Ie, you can not order the hard-drive to spin down. See:

nimrodel:~ # hdparm /dev/sda

/dev/sda:
 HDIO_GET_32BIT failed: Invalid argument
 HDIO_GET_UNMASKINTR failed: Invalid argument
 HDIO_GET_DMA failed: Invalid argument
 HDIO_GET_KEEPSETTINGS failed: Invalid argument
 readonly      =  0 (off)
 readahead     = 256 (on)
 geometry      = 7297/255/63, sectors = 117231408, start = 0

nimrodel:~ # hdparm -i /dev/sda

/dev/sda:
 HDIO_GET_IDENTITY failed: Invalid argument

nimrodel:~ # hdparm -y /dev/sda

/dev/sda:
 issuing standby command
 HDIO_DRIVE_CMD(standby) failed: Invalid argument

nimrodel:~ # hdparm -S 100 /dev/sda

/dev/sda:
 setting standby to 100 (8 minutes + 20 seconds)
 HDIO_DRIVE_CMD(setidle1) failed: Invalid argument


nimrodel:~ # smartctl -a /dev/sda
smartctl version 5.37 [i686-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: ST360020 A                Version: 0000
Serial number: E30XN9M7
Device type: disk
Local Time is: Sat Jan  5 23:42:20 2008 CET
Device does not support SMART

Error Counter logging not supported
Device does not support Self Test logging



(That drive was previously an internal drive, and all those commands worked).



The only idea I have is to connect it "inside", program the settings, and tell it to remember the settings (hdparm -K), but I don't know if they survive power-off, or only a reset.

The real solution is somebody finding an usb box having a chipset wit complete feature set.


- -- Cheers,
       Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHgAjEtTMYHG2NR9URAoDLAJ9/l/BUqa2B7rrUxNvb4PN5RTNtkQCffpp2
vATkIPaIWJzfUTvCQesGDMA=
=eQQy
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to