All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] hdparm.mod - get/set ATA disk parameters
Date: Sat, 14 Feb 2009 15:13:31 +0100	[thread overview]
Message-ID: <4996D18B.2060505@t-online.de> (raw)
In-Reply-To: <4994A0FF.5060808@t-online.de>

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




  reply	other threads:[~2009-02-14 14:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 22:59 [PATCH] hdparm.mod - get/set ATA disk parameters Christian Franke
2009-02-07 21:38 ` Robert Millan
2009-02-07 22:46   ` Christian Franke
2009-02-07 22:59     ` Robert Millan
2009-02-07 23:12       ` Christian Franke
2009-02-08  0:32         ` Robert Millan
2009-02-09 19:42           ` Christian Franke
2009-02-12 22:21           ` Christian Franke
2009-02-14 14:13             ` Christian Franke [this message]
2009-02-21 13:05               ` Robert Millan
2009-02-21 18:00                 ` Christian Franke
2009-02-21 19:51                   ` Robert Millan
2009-02-21 20:38                     ` Christian Franke
2009-02-21 20:46                       ` Robert Millan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4996D18B.2060505@t-online.de \
    --to=christian.franke@t-online.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.