MHI
Posts: 17
Joined: Tue Jun 12, 2012 6:54 am

disable usb hard disk

Fri Aug 10, 2012 2:27 pm

Hello Forum,

I'm using Arch Linux and trying to disable my connected usb hard drive if it's not used, so that the hdd don't runs (and don't make noise) :)
I tried to modprobe -r usb_storage, but it terminates with a FATAL: Module usb_storage is builtin error message.
I also don't know if disabling USB also disables the network interface.

Any suggestions.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: disable usb hard disk

Fri Aug 10, 2012 3:29 pm

You cannot disable the USB port it still provides 5volts whether the PI is awake or in shutdown mode.
The only other option I can think of is cutting the red USB wire and install switch in between (the +5v rail).

Richartd S.

MHI
Posts: 17
Joined: Tue Jun 12, 2012 6:54 am

Re: disable usb hard disk

Fri Aug 10, 2012 3:36 pm

Thanks a lot Richartd!
Doesn't matters - maybe there are harddisks availible with built in powersave, turning off after a while of idle'ing

Cheers and have a nice weekend!

User avatar
jojopi
Posts: 3233
Joined: Tue Oct 11, 2011 8:38 pm

Re: disable usb hard disk

Fri Aug 10, 2012 4:14 pm

The command to spin down a hard disk (that is not in use, as root) is "hdparm -y /dev/sda". Not all USB-ATA bridge chipsets are able to pass this message to the drive, however.

MHI
Posts: 17
Joined: Tue Jun 12, 2012 6:54 am

Re: disable usb hard disk

Sat Aug 11, 2012 1:12 pm

This doesn't work. But thanks for the answer!
I'll try to install the gameport api (gpio) and turn on an off the device by a contactor.


Cheers!

Return to “Arch”