I have some USB drives attached to my Ubuntu machine, I was looking for some commands to:
- Power-Off a drive after umounting it.
- 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)?
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.
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.
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.