From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JsdgY-0002qn-N8 for mharc-grub-devel@gnu.org; Sun, 04 May 2008 08:51:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JsdgY-0002pJ-11 for grub-devel@gnu.org; Sun, 04 May 2008 08:51:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JsdgV-0002kq-OV for grub-devel@gnu.org; Sun, 04 May 2008 08:51:21 -0400 Received: from [199.232.76.173] (port=37405 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsdgV-0002kR-Hc for grub-devel@gnu.org; Sun, 04 May 2008 08:51:19 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JsdgV-0007b5-6z for grub-devel@gnu.org; Sun, 04 May 2008 08:51:19 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JsdgN-0004hO-NY for grub-devel@gnu.org; Sun, 04 May 2008 12:51:11 +0000 Received: from cam44-1-82-67-121-239.fbx.proxad.net ([82.67.121.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 May 2008 12:51:11 +0000 Received: from giggzounet by cam44-1-82-67-121-239.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 May 2008 12:51:11 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: giggz Date: Sun, 04 May 2008 14:49:35 +0200 Message-ID: References: <1209904920.2773.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cam44-1-82-67-121-239.fbx.proxad.net User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080420) In-Reply-To: <1209904920.2773.4.camel@localhost.localdomain> Sender: news X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:51:22 -0000 Lubomir Rintel a écrit : > 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 > Hi, thx for your quick answer. my /etc/fstab sill use it. But I have read that in order to use uuid in the grub menu.lst I must have an initrd...and in my self-compiled kernels I don't build any initrd... Cheers > Hope that helps. >