Super User is a question and answer site for computer enthusiasts and power users. 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'm trying to find out a way to power off a device (hard drive) via sysfs or anything else.

The only thing I have found was to turn off the power supply to the USB device, but that's not what I'm looking for.

share|improve this question
You can spin-down ("put to sleep" according to help page) a HDD with hdparm -Y /dev/...; remember to umount it before. Is it that you are looking for? – mpy Jun 7 '13 at 11:50


hdparm -Y /dev/...

actually worked for me.

Although I was looking for something like echo smth > /sys/...

share|improve this answer

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.