Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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

1 Answer 1

Well,

hdparm -Y /dev/...

actually worked for me.

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

share|improve this answer

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.