Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 :)

share|improve this question
up vote 1 down vote accepted

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

share|improve this answer
Супер, пасиба! :) – kolypto 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. – kolypto Jul 27 '09 at 17:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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