Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 some USB drives attached to my Ubuntu machine, I was looking for some commands to:

  1. Power-Off a drive after umounting it.
  2. Power-On and Re-Mount.

Does it make sense to power-off and on a USB hard disk on a daily basis (Power-On, Mount, Backup, Umount, Power-Off)?

share|improve this question
up vote 2 down vote accepted

umount /dev/sdX1 && eject /dev/sdX

This spins downs some of my external usb drives. I guess this depends on the controller.
No need for a spin-up command, just mount the device and it comes back to life.

share|improve this answer

I think this is not possible with USB drives because there are no commands provided for this in the communication protocol. It could work with eSATA drives.

You could use a multiple socket outlet to power the USB drive. There are socket outlets which can be controlled via RS232, USB or Ethernet.

share|improve this answer

I don't believe this is possible unfortuantly. You can however purchase drives that automatically power off once the computer powers off. This is an additional implimentation into the drive chassis however, not part of the USB implimentation.

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.