From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LYLH8-0003Ps-9D for mharc-grub-devel@gnu.org; Sat, 14 Feb 2009 09:13:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LYLH5-0003PB-Fs for grub-devel@gnu.org; Sat, 14 Feb 2009 09:13:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LYLH3-0003Ov-Hq for grub-devel@gnu.org; Sat, 14 Feb 2009 09:13:42 -0500 Received: from [199.232.76.173] (port=43471 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYLH3-0003Os-Eh for grub-devel@gnu.org; Sat, 14 Feb 2009 09:13:41 -0500 Received: from mailout07.t-online.de ([194.25.134.83]:40940) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LYLH3-0000bz-74 for grub-devel@gnu.org; Sat, 14 Feb 2009 09:13:41 -0500 Received: from fwd00.aul.t-online.de by mailout07.sul.t-online.de with smtp id 1LYLH0-0007i0-00; Sat, 14 Feb 2009 15:13:38 +0100 Received: from [10.3.2.2] (GD7YPGZOohrEm6VbZbZepirK4Vp0hk7PFSRTyLXzEWstOI174IWd2KDGyQx1n3mQOm@[217.235.254.55]) by fwd00.aul.t-online.de with esmtp id 1LYLGu-0TWYZk0; Sat, 14 Feb 2009 15:13:32 +0100 Message-ID: <4996D18B.2060505@t-online.de> Date: Sat, 14 Feb 2009 15:13:31 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11 MIME-Version: 1.0 To: The development of GRUB 2 References: <497B9D35.5010703@t-online.de> <20090207213813.GF6343@thorin> <498E0F4F.6000503@t-online.de> <20090207225921.GX6343@thorin> <498E1560.7060106@t-online.de> <20090208003247.GA17277@thorin> <4994A0FF.5060808@t-online.de> In-Reply-To: <4994A0FF.5060808@t-online.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: GD7YPGZOohrEm6VbZbZepirK4Vp0hk7PFSRTyLXzEWstOI174IWd2KDGyQx1n3mQOm X-TOI-MSGID: 14ff5c7e-5c96-47e3-939e-1473ddf3893e X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] hdparm.mod - get/set ATA disk parameters X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 14:13:43 -0000 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