Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
1  
Супер, пасиба! :) –  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

 
discard

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.