[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hdparm.mod - get/set ATA disk parameters

From: Christian Franke
Subject: Re: [PATCH] hdparm.mod - get/set ATA disk parameters
Date: Sat, 14 Feb 2009 15:13:31 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080702 SeaMonkey/1.1.11

Christian Franke wrote:
New patch below. Function grub_ata_pass_through() now moved to new module ata_pthru.mod.

Committed. Now also includes a SMART status check.

grub.cfg example (assumes ata.mod is used):

insmod ata_pthru
insmod hdparm

# Make sure disks cannot be locked by an ATA password
hdparm --quiet --security-freeze (ata4)
hdparm --quiet --security-freeze (ata6)

menuentry "Boot" {

 # Check health
 if hdparm --quiet --health (ata4) ; then echo -n ; else
   echo "Warning: SMART status check failed"

 # Set boot disk to "fast", disable spin down
 hdparm --quiet --aam=254 --standby-timeout=0 (ata4)

 # Set other disk to "quiet", spin down after 5min inactivity
 hdparm --quiet --aam=128 --standby-timeout=60 (ata6)

 # Boot ...

menuentry "Memory Test" {

 # Spin down both disks after 10min
 hdparm --quiet --standby-timeout=120 (ata4)
 hdparm --quiet --standby-timeout=120 (ata6)

 # Load memtest ...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]