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"
read
fi
# 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 ...
}
Christian
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel