I have a USB Hard Drive

In Windows, i used to click the "Safely remove" icon, and the hdd stopped spinning and was unmounted.

Now, in Linux, unmounting doesn't poweroff the device, and it proceeds spinning when i remove it's cable. Is there a way to poweroff the HDD?

Additionally, I'd like to teach the KDE's "Device notifier" plasmoid to do this :)

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

Try something like sudo sdparm --command=stop /dev/sd[x]

link|improve this answer
1  
Супер, пасиба! :) – o_O Tync Jul 22 '09 at 22:29
В репутацию можно было и пнуть – Sergey Jul 23 '09 at 8:11
<b>sudo hdparm -Y /dev/sd[x]</b> also makes the device enter sleep mode. – o_O Tync Jul 27 '09 at 17:30
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.