Our backup script mounts an USB hard drive, copies some files, then unmounts. So, since the drive is only in use during this period, I thought it would be good to power down the drive once the backup is complete. Is there a command to do this? If yes, would I need to manually power it back up again when I need to use it next time?
2 Answers
I've never seen a USB hard drive that manages power anywhere other than a power switch or the cord itself.
If it were a NAS it may be possible to send commands to the underlying OS to shut it down (or suspend) and possibly send it WakeOnLan commands.
-
2
-
I'm not sure what you're asking @nbolton? Are you asking if I've tried them, or if I know how to bend those apps to do what you're trying to do, or something else?– gWaldoOct 28, 2010 at 12:26
-
-
I've successfully set the spin down time of a wd usb drive with hdparm and now it stops when I'm not using it.– Jure1873Sep 20, 2011 at 16:44
sg_start --stop /dev/sdc
but unfortunately the damn thing just starts it's self back up again!hal-disable-polling --device /dev/sdc
orudisks --inhibit-polling /dev/sdc
may help.