You are not logged in.
Hi guys,
I have an external hdd connected via USB and when I shutdown arch, the harddrive continues working: it emits voices indicating activity and the led is on as well. Is there a way to power it down/suspend on shutdown?
Thanks,
B
Offline
I've used the Gnome Disk Utility to do this, but with mixed results. it won't turn it off at shutdown, but it will spin it down, and power it off. You can then unplug it. However, in my experience, if you wait to long it will power back on and spin up.
Offline
Thanks
I wanted to stay away from this tool as it pulls lots of dependencies and as you said the results are mixed. Maybe there's another way? A script run at shutdown perhaps?
Offline
You might want to try 'udisks-ctl power-off -b /dev/sdX' and see if it works.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Let me guess, your external HD is connected to a USB 3 port ? I'm asking this because my USB 3 ports never shutdown and I've come across a few issues because of that.
Offline
You might want to try 'udisks-ctl power-off -b /dev/sdX' and see if it works.
I will try that. Thanks!
Let me guess, your external HD is connected to a USB 3 port ? I'm asking this because my USB 3 ports never shutdown and I've come across a few issues because of that..
Correct
It's connected to a USB 3 port.
B
Offline
Correct
It's connected to a USB 3 port.
And what happens when you shutdown your computer while it is plugged in a USB 2 port ?
Offline
Correct
It's connected to a USB 3 port.
And what happens when you shutdown your computer while it is plugged in a USB 2 port ?
I just tested and the drive powers down normally...
So it's a USB 3 thing... I wonder if there's a fix.
B
Offline
There is one "trick" you can try. Before disconnecting the disk or powering down the machine, unmount the disk, sync (not absolutely needed I suppose but better safe than sorry), then as root (or using sudo) do 'hdparm -y /dev/sdX'.
This should at least make the disk park its heads and stop spinning, so it is safer to remove than if the heads are not parked and the disk is spinning.
After the hdparm command you could also try udisks-ctl and see if the enclosure powers off (as in led turns off) but don't have high hopes for this second step.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
KingOfFreeMen wrote:Correct
It's connected to a USB 3 port.
And what happens when you shutdown your computer while it is plugged in a USB 2 port ?
I just tested and the drive powers down normally...
So it's a USB 3 thing... I wonder if there's a fix.
B
Told you
I had the same problem a few days ago with my keyboard. The leds just wouldn't shutdown. I didn't really find a fix, I plug it in USB 2 now. But for your hard drive I realise it's a problem.
Offline