From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KOFbk-0002Wh-9f for mharc-grub-devel@gnu.org; Wed, 30 Jul 2008 13:37:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOFbh-0002Vd-JK for grub-devel@gnu.org; Wed, 30 Jul 2008 13:37:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOFbg-0002VR-U8 for grub-devel@gnu.org; Wed, 30 Jul 2008 13:37:01 -0400 Received: from [199.232.76.173] (port=35816 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOFbg-0002VO-OJ for grub-devel@gnu.org; Wed, 30 Jul 2008 13:37:00 -0400 Received: from smtp-4.orange.nl ([193.252.22.249]:42290) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOFbg-00054E-D8 for grub-devel@gnu.org; Wed, 30 Jul 2008 13:37:00 -0400 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf6302.online.nl (SMTP Server) with ESMTP id 5C7867000086 for ; Wed, 30 Jul 2008 19:36:59 +0200 (CEST) Received: from [192.168.2.173] (s5590cf7b.adsl.wanadoo.nl [85.144.207.123]) by mwinf6302.online.nl (SMTP Server) with ESMTP id 2191F7000085 for ; Wed, 30 Jul 2008 19:36:59 +0200 (CEST) X-ME-UUID: 20080730173659137.2191F7000085@mwinf6302.online.nl From: Aniruddha To: grub-devel@gnu.org In-Reply-To: <1217435737.27405.9.camel@dv> References: <1217442556.13410.7.camel@localhost> <1217435737.27405.9.camel@dv> Content-Type: text/plain Date: Wed, 30 Jul 2008 21:36:58 +0200 Message-Id: <1217446618.13410.22.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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 17:37:02 -0000 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. 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