Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

spin-down external USB hard drive

87 views
Skip to first unread message

r...@powerup.com.au

unread,
Aug 19, 2005, 12:00:07 AM8/19/05
to
I have a external USB hard drive that is mounted under /dev/sda. I
would like to be able to spindown the drive when it's on use. I have
upgraded hdparm to version 6.1 in the hope that it might work but get
the following errors. Is it possible to spin-down an external drive?

# hdparm -Y /dev/sda
/dev/sda:
issuing sleep command
HDIO_DRIVE_CMD(sleep) failed: Invalid argument

# hdparm -S 10 /dev/sda
/dev/sda:
setting standby to 10 (50 seconds)
HDIO_DRIVE_CMD(setidle1) failed: Invalid argument

# hdparm -B 10 /dev/sda
/dev/sda:
setting Advanced Power Management level to 0x0A (10)
HDIO_DRIVE_CMD failed: Invalid argument

Grant Coady

unread,
Aug 19, 2005, 12:35:30 AM8/19/05
to
On 18 Aug 2005 21:00:07 -0700, r...@powerup.com.au wrote:

>I have a external USB hard drive that is mounted under /dev/sda. I
>would like to be able to spindown the drive when it's on use. I have
>upgraded hdparm to version 6.1 in the hope that it might work but get
>the following errors. Is it possible to spin-down an external drive?

look for sdparm, perhaps. hdparm don't do much on SCSI :)

I hit same issue some months back and found no answer, there may be
something now.

Grant.

r...@powerup.com.au

unread,
Aug 19, 2005, 1:52:56 AM8/19/05
to
I have tried sdparm but with the seagate drive I have it does not work
or give any errors. Guessing that's because it's not a real SCSI drive
it won't recognise all SCSI commands.

# sdpram --command=stop /dev/sda
/dev/sda: ST94011A

hdparm has added support for SATA that mount on /dev/sda like USB
external drives. I was hoping that the changes would also work for USB
drives but don't for me.

Roger

Mogens V.

unread,
Aug 20, 2005, 1:52:55 PM8/20/05
to
Grant Coady wrote:
> On 18 Aug 2005 21:00:07 -0700, r...@powerup.com.au wrote:
>
>
>>I have a external USB hard drive that is mounted under /dev/sda. I
>>would like to be able to spindown the drive when it's on use. I have
>>upgraded hdparm to version 6.1 in the hope that it might work but get
>>the following errors. Is it possible to spin-down an external drive?
>
>
> look for sdparm, perhaps. hdparm don't do much on SCSI :)

Nope. We probably won't be able to do this on external USB/Firewire
drives. The interfaces don't handle things like SCSI START STOP et el
commands.

I had a lengthy discussion and tests with Douglas Gilbert, author of
sdparm, about this. We concluded that we can't seem to find interfaces
that implements the missing features.
The functionality -has- been added to sdparm, and it works with cdrom.


If anyone having external USB/Firewire boxes would care to try out
sdparm and report (hopeful) success, I'd really appreciate it!
Please CC me, and include info about the box/interface.


sdparm: http://www.torque.net/sg/sdparm.html

--
Kind regards,
/Mogens V.


"I've often driven past a house where (apparently) a fellow geek lives.
They own a Mini, which sports a large (British-style) front license
plate bearing the legend: GZIP -9 SUV."
-- unknown

Grant

unread,
Aug 20, 2005, 11:41:33 PM8/20/05
to
On Sat, 20 Aug 2005 19:52:55 +0200, "Mogens V." <mo...@danbbs.dk> wrote:

>Grant Coady wrote:
>> look for sdparm, perhaps. hdparm don't do much on SCSI :)
>
>Nope. We probably won't be able to do this on external USB/Firewire
>drives. The interfaces don't handle things like SCSI START STOP et el
>commands.
>
>I had a lengthy discussion and tests with Douglas Gilbert, author of
>sdparm, about this. We concluded that we can't seem to find interfaces
>that implements the missing features.
>The functionality -has- been added to sdparm, and it works with cdrom.

I'd prefer sdparm implemented hdparm command set where applicable
then extended it as required for SCSI.

>
>
>If anyone having external USB/Firewire boxes would care to try out
>sdparm and report (hopeful) success, I'd really appreciate it!
>Please CC me, and include info about the box/interface.

# sdparm -ivvvv /dev/sda
inquiry cdb: 12 00 00 00 24 00
duration=4 ms
/dev/sda: TOSHIBA MK6014MAP 0811
inquiry cdb: 12 01 83 00 fc 00
duration=2 ms
inquiry: resid=216
malformed VPD response, VPD pages probably not supported


Genesys GL-811 USB 2.0 bridge, with linux-2.6.12.5 on:
http://bugsplatter.mine.nu/test/boxen/peetoo/


sdparm 0.94 correctly identifies the hard drive inside the USB enclosure,
the hard drive is powered from USB via two connectors (and a hardware
hack to add some supply bypassing caps).

Is this a limit of the USB driver, or the USB bridge chip? If it is the
driver then nobody seems to be working on it, I last looked into this area
about March this year. Not that I know much of USB, it seems okay for
mice and less so for much else :o)

Cheers,
Grant.

0 new messages