User avatar
Onira
Posts: 228
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

How to turn off a USB disk via hdparm?

Mon Dec 24, 2012 6:24 pm

can I turn off a HDD connected via USB using hdparm or any other tool?
its sometimes bit loud at night
Cogito ergo sum

Mobius
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA

Re: How to turn off a USB disk via hdparm?

Mon Dec 24, 2012 7:45 pm

Can't you just unplug it from the USB at night?

User avatar
Onira
Posts: 228
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: How to turn off a USB disk via hdparm?

Mon Dec 24, 2012 8:25 pm

it's not a solution
Cogito ergo sum

efflandt
Posts: 359
Joined: Mon Dec 03, 2012 2:47 am
Location: Elgin, IL USA

Re: How to turn off a USB disk via hdparm?

Tue Dec 25, 2012 12:53 am

Did you read man hdparm in a terminal? You probably want little -y. Not sure if it would wake up on USB if you use capital -Y.

User avatar
Onira
Posts: 228
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: How to turn off a USB disk via hdparm?

Tue Dec 25, 2012 8:13 am

so

Code: Select all

$ hdparm -y
?
do I have to use sudo?

I want to do it via ssh.
Cogito ergo sum

User avatar
jheaton5
Posts: 23
Joined: Mon Dec 24, 2012 3:33 pm

Re: How to turn off a USB disk via hdparm?

Wed Dec 26, 2012 12:16 am

You need to specify the device your are putting to sleep. The command is

Code: Select all

hdprm -y /dev/sdx

efflandt
Posts: 359
Joined: Mon Dec 03, 2012 2:47 am
Location: Elgin, IL USA

Re: How to turn off a USB disk via hdparm?

Wed Dec 26, 2012 5:21 am

Actually: sudo hdparm -y /dev/sda
assuming 1st USB drive

User avatar
Onira
Posts: 228
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: How to turn off a USB disk via hdparm?

Wed Dec 26, 2012 10:24 am

yes, only 1 USB drive is connected (the other USB port is taken by wifi adapter ;) )
so

Code: Select all

$ sudo hdparm -y /dev/sda
thank You very much :)
Cogito ergo sum

Return to “Beginners”

Who is online

Users browsing this forum: Anne_Carlill and 43 guests