HDD Standby
From WL-HDD Wiki
| WL-HDD Contents |
|---|
| What is the WL-HDD |
| Features |
| Pro's/con's |
| Reviews |
| Hacking |
| Inserting the HDD |
| Hacking Guides |
| Basic setup guides |
| Packages guides |
| Requests |
| Troubleshooting |
| This Wiki |
| Credits |
| Editing help |
| Contact Me |
Prerequisites
To complete this guide, the following is assumed:
| You are running Oleg's firmware (1.9.2.7-6b or later) |
| You have harddisk partitions up and running with an extended filesystem mounted to /opt |
| You have installed the Ipkg package system. |
| You have configured your partitions to automount. |
| You are using an IDE Hard Disk inside the WL-HDD enclosure (for USB Hard Disk connected to a 'WL500G' you can use scsi-stop, see this thread.) |
This package will allow you to place your harddrive in a standby-mode.
Install the Package
First we need to install the hdparm IPKG package.
ipkg install hdparm
the result should look like this ...
#Installing hdparm (6.1-1) to root... #Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/hdparm_6.1-1_mipsel.ipk #Configuring hdparm #Successfully terminated.
If you have the standard partition setup on the WL-HDD (from following the wiki) then you should enter the following into the shell:
hdparm -S 120 /dev/discs/disc0/part1 hdparm -S 120 /dev/discs/disc0/part2
This will send your primary and swap partitions to sleep.
If you have any other partitions (3, 4 etc), it is necessary to enter the following replacing # with the partition number.
hdparm -S 120 /dev/discs/disc0/part#
and the result should look like this ...
#/dev/discs/disc0/part1: #setting standby to 120 (10 minutes)
If you do not want to loose these settings after reboot ...
nano /usr/local/sbin/post-boot < enter >
and insert at the bottom ...
sleep 60 # Set Standby of internal HDD to 10 minutes /opt/sbin/hdparm -S 120 /dev/discs/disc0/part1 /opt/sbin/hdparm -S 120 /dev/discs/disc0/part2 /opt/sbin/hdparm -S 120 /dev/discs/disc0/part# (only if you have other partitions)
into to your post-boot script and finally save it to the flash ...
flashfs save flashfs commit flashfs enable reboot
Thanks to the contributor of this guide (I did not write this one). I have set it up on my WL-HDD and it works brilliantly.
Jono 19:12, 4 March 2006 (GMT)
