You are not logged in.

#1 2013-12-07 09:07:56

Emoryy
Member
From: Hungary
Registered: 2013-10-25
Posts: 22

External 2,5" HDD standby & shutdown problem

The problem is that Arch doesn't seem to be able to power down the hard drive correctly at shutdown. The HDD gives a relatively loud clicking noise in the exact moment of my computer powering down. It's exactly like if the USB cord was just pulled out. I fear that this isn't the best for the health of the drive.
(Also when the drive is in standby, Arch wakes it up seemingly to just switch it off with the clicking noise.)
To avoid the clicking noise I wait until the drive goes into standby mode, and I disconnect it manually, before shutting the computer down.

I have a Toshiba Store Basic 2TB 2,5" external HDD.
Here is what hdparm info prints out: http://pastie.org/private/h81xbgcwunh4r8xeqasea

Also the drive goes into standby after about just 2 minutes, which is too short for me. (When a file browser dialog is opened up, it waits until the drive wakes up. The duration of spinning up isn't exceptionally long, but it's still an annoyance in cases when I don't even want to open files from this drive.)

I tried to set the advanced power management level with hdparm (which is set to 254 by default), but it gives me this output:

sudo hdparm -S 252 /dev/sdc
/dev/sdc:
 setting standby to 252 (21 minutes)
SG_IO: bad/missing sense data, sb[]:  f0 00 01 00 50 40 fc 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

And it remains on 254.
Trying to put into standby or sleep with hdparm -y or -Y option gives similar output. Is this maybe the reason why Arch can't switch it off correctly at shutdown too?


toshiba satellite a300-1no, core2duo t5800@2ghz, 3gb ddr2, 120gb ocz vertex 3, 250gb wd scorpio blue, ati radeon hd3470

Offline

#2 2013-12-07 10:57:09

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: External 2,5" HDD standby & shutdown problem

The USB bridge between the SATA hard drive and the PC (i.e. the hard drive box) doesn't allow sending ATA commands over USB (and hdparm sends ATA commands to the drive). Your best  option is to remove the hard drive from the box and connect it directly via SATA to the computer and then issue the hdparm command to set the standby time. That way you can be sure it will set the command properly. Do not do this if the drive is under warranty, and do it on your own (minimal) risk. wink


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#3 2013-12-07 11:58:59

Emoryy
Member
From: Hungary
Registered: 2013-10-25
Posts: 22

Re: External 2,5" HDD standby & shutdown problem

bjornoslav wrote:

The USB bridge between the SATA hard drive and the PC (i.e. the hard drive box) doesn't allow sending ATA commands over USB (and hdparm sends ATA commands to the drive). Your best  option is to remove the hard drive from the box and connect it directly via SATA to the computer and then issue the hdparm command to set the standby time. That way you can be sure it will set the command properly. Do not do this if the drive is under warranty, and do it on your own (minimal) risk. wink

This is the HDD: http://www.toshiba.eu/hard-drives/porta … re-basics/
It's quite new, I got it a few weeks ago, but even if it wouldn't be under warranty, I'd prefer to keep it in it's current form.
I didn't mention, but I have a laptop, so connecting directly through SATA isn't an option. Maybe thorugh eSATA.
But again, I would like to solve this with keeping warranty, and without spending extra on an eSATA enclosure.

So I hope there is an another solution. It must be, I mean under a certain other OS I didn't have this problem.


toshiba satellite a300-1no, core2duo t5800@2ghz, 3gb ddr2, 120gb ocz vertex 3, 250gb wd scorpio blue, ati radeon hd3470

Offline

#4 2013-12-07 15:10:23

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: External 2,5" HDD standby & shutdown problem

Emoryy wrote:

The problem is that Arch doesn't seem to be able to power down the hard drive correctly at shutdown. The HDD gives a relatively loud clicking noise in the exact moment of my computer powering down. It's exactly like if the USB cord was just pulled out. I fear that this isn't the best for the health of the drive.
(Also when the drive is in standby, Arch wakes it up seemingly to just switch it off with the clicking noise.)

I've noticed the same behaviour on my netbook with the hard drive turning on before shutdown (and with many other PC's as well), but that wasn't a problem at all for them. Have in mind that laptop hard drives are made to be turned on and off often and to withstand sudden vibrations while working, but besides this it's not recommended to turn a hard drive on and off repeatedly in short intervals, it wastes the mechanics inside more.

This can be solved by turning off any power saving options in the operating system (it depends on what you're using, powerdown-git or laptop-mode-tools etc.) for USB and SATA drives when on battery and charging/on AC.

Emoryy wrote:

Also the drive goes into standby after about just 2 minutes, which is too short for me. (When a file browser dialog is opened up, it waits until the drive wakes up. The duration of spinning up isn't exceptionally long, but it's still an annoyance in cases when I don't even want to open files from this drive.)

If you use powerdown-git, it will set its own aggressive power saving on the hard drives when the powerdown service is disabled, reverting any change you did with hdparm. Find its scripts and comment out everything concerning hdparm and try if that helps.


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

Board footer

Powered by FluxBB