Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JsdYH-0006Oo-95 for mharc-grub-devel@gnu.org; Sun, 04 May 2008 08:42:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JsdYE-0006MC-66 for grub-devel@gnu.org; Sun, 04 May 2008 08:42:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JsdYC-0006Ko-Ci for grub-devel@gnu.org; Sun, 04 May 2008 08:42:45 -0400 Received: from [199.232.76.173] (port=35354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsdYC-0006Kf-52 for grub-devel@gnu.org; Sun, 04 May 2008 08:42:44 -0400 Received: from [92.240.234.41] (helo=norkia.kexik.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JsdYB-0005v9-NS for grub-devel@gnu.org; Sun, 04 May 2008 08:42:44 -0400 Received: from [172.31.2.158] (hell.lan [89.102.4.189]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lkundrak@v3.sk) by norkia.kexik.net (Postfix) with ESMTP id 6C04470CD7 for ; Sun, 4 May 2008 14:42:40 +0200 (CEST) From: Lubomir Rintel To: The development of GRUB 2 In-Reply-To: References: Content-Type: text/plain Date: Sun, 04 May 2008 14:42:00 +0200 Message-Id: <1209904920.2773.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: Question about menu.lst 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: Sun, 04 May 2008 12:42:46 -0000 On Sun, 2008-05-04 at 14:10 +0200, giggz wrote: > Hi, > > Sorry If it isn't the right place to post...I don't find a grub users > list... > > I have several kernel on my laptop. Most of them are compiled by myself. > But to compare the performance I have an official debian kernel (486). > The problem is that official debian kernels are compiled with ide (so > hd* device) and my personal jkernel with PATA support (so sd* device). > So the root= option is not the same. > > I would like to define a regle to set root=/dev/hda1 for all the *-486 > kernels through the # kopt_*_486=root=/dev/hda1 ro option. But I want > to keep the general regle : # kopt=root=/dev/sda1 ro > Is there a way to do that ? Actually, you might want to use UUID or LABEL of the file system instead of device file name. You can get or set UUID or label with tune2fs like this: # tune2fs -l /dev/sda1 (get information) # tune2fs -L root-fs /dev/sda1 (set label) And then set a kernel root parameter as follows: root=LABEL=my-root-fs Hope that helps. -- Lubomir Rintel (Was: Kundrak)