How to add the HDParm add-On to the BrazilFW.

Several tutorials

How to add the HDParm add-On to the BrazilFW.

Mensagempor BrazilFW » Seg Dez 24, 2007 7:47 pm

Versão em Português Not Available
Version en Espanõl


Translated by Felipe Fontes
Original text:
kb.php?mode=article&k=25

What HDParm does?
-HDParm is a tool that shut down your hard-disk(HD) 1(one) minute after the boot.
-BrazilFW just read/write in the disk during the boot or the backup.
-If you install your BrazilFW in the HD, you don't need to leave your disk running all the time.
-It makes the BrazilFW more silent.
-It makes the BrazilFW spend less energy.

What do I need?
-A BrazilFW installed in a IDE HD.
-The HDParm package (download).

How can I install?
Download the HDParm package (hdparm.tgz) and copy it to your BrazilFW floppy.

If you want, it has some configurations:

Tip 1:
Usage: hdparm [options] [device] ..

Options:
-a get/set fs readahead
-A set drive read-lookahead flag (0/1)
-b get/set bus state (0 == off, 1 == on, 2 == tristate)
-B set Advanced Power Management setting (1-255)
-c get/set IDE 32-bit IO setting
-C check IDE power mode status
-d get/set using_dma flag
-D enable/disable drive defect-mgmt
-E set cd-rom drive speed
-f flush buffer cache for device on exit
-g display drive geometry
-h display terse usage information
-i display drive identification
-I detailed/current information directly from drive
-Istdin similar to -I, but wants /proc/ide/*/hd?/identify as input
-k get/set keep_settings_over_reset flag (0/1)
-K set drive keep_features_over_reset flag (0/1)
-L set drive doorlock (0/1) (removable harddisks only)
-M get/set acoustic management (0-254, 128: quiet, 254: fast) (EXPERIMENTAL)
-m get/set multiple sector count
-n get/set ignore-write-errors flag (0/1)
-p set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P set drive prefetch count
-q change next setting quietly
-Q get/set DMA tagged-queuing depth (if supported)
-r get/set readonly flag (DANGEROUS to set)
-R register an IDE interface (DANGEROUS)
-S set standby (spindown) timeout
-t perform device read timings
-T perform cache read timings
-u get/set unmaskirq flag (0/1)
-U un-register an IDE interface (DANGEROUS)
-v defaults; same as -mcudkrag for IDE drives
-V display program version and exit immediately
-w perform device reset (DANGEROUS)
-W set drive write-caching flag (0/1) (DANGEROUS)
-x tristate device for hotswap (0/1) (DANGEROUS)
-X set IDE xfer mode (DANGEROUS)
-y put IDE drive in standby mode
-Y put IDE drive to sleep
-Z disable Seagate auto-powersaving mode
-z re-read partition table


Tip 2:
Changing the shut down timer.

In the webadmin go to the "configuration files" and then in "edit any file" and insert this comannd line:
Código: Selecionar todos
/etc/rc.d/pkgs/rc.hdparm


It will open this:

Código: Selecionar todos
#!/bin/sh

Código: Selecionar todos
#

Código: Selecionar todos
# rc.hdpram - Sets harddisk sleeping, 1 minute timeout

Código: Selecionar todos
#

Código: Selecionar todos

Código: Selecionar todos
echo "Setting disk sleeping timeout ..."

Código: Selecionar todos

Código: Selecionar todos
/sbin/hdparm -u 1 /dev/hda

Código: Selecionar todos
/sbin/hdparm -S 12 /dev/hda

Código: Selecionar todos


You may change the number after the “-S”, following this table:

0 = off
1 a 240 = multiples of 5 seconds; intervals from 5 s to 20 min.
241 a 251 = units of 30 minuts, 11 in total. intervals from 30 min to 5h 30min
252 = 21 min
253 = value set by manufacturer
255 = 21 min + 15 s.
BrazilFW
 

Voltar para Several tutorials

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 0 visitantes