Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KOFyY-0001BF-Sm for mharc-grub-devel@gnu.org; Wed, 30 Jul 2008 14:00:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOFyX-0001B6-KO for grub-devel@gnu.org; Wed, 30 Jul 2008 14:00:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOFyW-0001Ai-PX for grub-devel@gnu.org; Wed, 30 Jul 2008 14:00:37 -0400 Received: from [199.232.76.173] (port=55880 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOFyW-0001Ae-Je for grub-devel@gnu.org; Wed, 30 Jul 2008 14:00:36 -0400 Received: from py-out-1112.google.com ([64.233.166.178]:15779) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOFyW-0000hq-5C for grub-devel@gnu.org; Wed, 30 Jul 2008 14:00:36 -0400 Received: by py-out-1112.google.com with SMTP id p76so90723pyb.1 for ; Wed, 30 Jul 2008 11:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ccStp89f/atukwW+V8Cn0yK6lEQMl7LoofMXPL1UFRQ=; b=m1yH0sQfNhVDKIrZIXpCkKPJCqE/JrcRWKMpUpgoQ3Gu93GQYkDb8msjyEE/iVJ/pp /20RsDMQiKOeH1q2320hgAuwdZhrk+4TZdSXc5/gx+zFMZxeBZyPEVPu98Fhh6cGT1Oa tGoGz5PoezqyhLbnTu/8xXUYpw8M9Ea+gYxUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EnzYHZ4PRoZ97mhfVcRyt8y3sI6TlZSdD9EbsZsJY9ens1Q4DfAxOyXCgJHQ6KeaAY x1aq9LkcCOnTnangCJdwmO4o/HBmbCpV7CdipXHNIW9WP2H10a0yu65uiSeN+n8IGy8t 3tMCBDf0L2e12xPEi2bLG6TnrmiJOhsJqxGsA= Received: by 10.141.83.15 with SMTP id k15mr4636653rvl.74.1217440834653; Wed, 30 Jul 2008 11:00:34 -0700 (PDT) Received: by 10.140.139.2 with HTTP; Wed, 30 Jul 2008 11:00:34 -0700 (PDT) Message-ID: Date: Wed, 30 Jul 2008 20:00:34 +0200 From: "=?UTF-8?Q?Javier_Mart=C3=ADn?=" To: "The development of GRUB 2" In-Reply-To: <1217446618.13410.22.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1217442556.13410.7.camel@localhost> <1217435737.27405.9.camel@dv> <1217446618.13410.22.camel@localhost> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Is it possble to use /dev/disk/by-id/ in grub.conf? 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: Wed, 30 Jul 2008 18:00:37 -0000 2008/7/30 Aniruddha : > On Wed, 2008-07-30 at 12:35 -0400, Pavel Roskin wrote: >> I believe disk IDs are not supported yet. If you describe your problem >> in more details, it may motivate somebody to add disk ID support. Or >> perhaps you are missing a simple solution possible with the current >> code. > > Thanks for your quick response. The problem is that udev keeps changing my harddrive names > at each boot. Normally my root partition resides on /dev/sdc2. However with each reboot > this name changes (the last three boots it changed from /dev/sdb2 to /dev/sdf2 to /dev/sdc2). > > I solved this partially by changing the /dev/sdc2 entry in fstab with a /dev/disk/by-id/my_device_id > entry. Unfortunately grub has still /dev/sdc2 configured as root partition. This means I have to guess every > boot which partition-name the root partition resides. I do this by entering devices names (after > the error message that grub couldn't find my root partition). I start with /dev/sda2 trying each letter > (sdb2, sdc2, sdd2) until I find the root partition. If your problem is what device name to pass to the kernel command line, you can use a line like: linux /vmlinuz root=UUID=diskuuidhere and the same with LABEL= if your initrd supports them (like Ubuntu's default initrd or Gentoo's `genkernel' initrd). If, on the other hand, your problem is what device to use in GRUB, I think there is a `search' command you can investigate. > > In order to solve this problem I would like to set the /dev/disk/by-id/ parameter in my grub.conf. > I hope that explains the problem clearly. Thanks in advance! > > Regards, > > Aniruddha > > > > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >