4

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

3 Answers 3

2

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.

1

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.

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .