[RESOLVED] auto turn off hard drive

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: [RESOLVED] auto turn off hard drive

Postby Fma965 » Mon Mar 04, 2013 8:10 pm

$this->bbcode_second_pass_quote('ricktsd', 's')orry to bring up an old thread...

my hdd successfully spins down after idle time, but it seems to be inaccessible after spinning back up. i can hear it spinning, but whenever i try to access that mount, it just times out.

any ideas?


Bump:

Ok so i have latest archlinux and kernel (not the 3.8 one)

I have my OS/Rootfs on a usb pen
SATA HDD mounted to /media (EXT3)

when i call hdparm -y (i think it's y? sorry forgot... it's the one which spin'sdown isntantly)
hdparm -y /dev/sda
the hdd spinsdown and straight back up.

Can you please suggest a fix. my rootfs isn't even on this drive so i see no reason for it to be constantly active.
Fma965
 
Posts: 53
Joined: Sun Mar 03, 2013 5:18 pm

Re: [RESOLVED] auto turn off hard drive

Postby nooblLinux » Tue Mar 05, 2013 5:58 pm

$this->bbcode_second_pass_quote('moonman', 'T')his is what I have in my cron (run "crontab -e")
$this->bbcode_second_pass_code('', '*/15 * * * * ID=DriveIdle /usr/bin/sdparm -C stop `mount | grep <partition label> | cut -c1-9`')

<partition label> is the name of one of the partitions on the hard drive, does not matter which one if there are many. It basically extracts the path (/dev/sdx) from the mount command because every time you boot the path can change to sda sdb sdc depending on how many hdds you have plugged in.


so if i have 3 hard drives sdb1, sdc1, sdd1 I have to enter 3 commands in crontab like: $this->bbcode_second_pass_code('', '
*/15 * * * * ID=DriveIdle /usr/bin/sdparm -C stop `mount | grep sdb1 | cut -c1-9`
*/15 * * * * ID=DriveIdle /usr/bin/sdparm -C stop `mount | grep sdc1 | cut -c1-9`
*/15 * * * * ID=DriveIdle /usr/bin/sdparm -C stop `mount | grep sdd1 | cut -c1-9`
')
nooblLinux
 
Posts: 16
Joined: Mon Feb 25, 2013 2:11 am

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests

cron