From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XWAYU-0002Cx-Kb for mharc-grub-devel@gnu.org; Mon, 22 Sep 2014 16:49:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWAYL-00027P-9P for grub-devel@gnu.org; Mon, 22 Sep 2014 16:49:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWAYD-0003CR-PI for grub-devel@gnu.org; Mon, 22 Sep 2014 16:49:45 -0400 Received: from mout.gmx.net ([212.227.15.18]:62389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWAYD-0003Bq-Fi for grub-devel@gnu.org; Mon, 22 Sep 2014 16:49:37 -0400 Received: from [192.168.1.13] ([31.34.87.55]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LdZAI-1Xx0r614N8-00im8b for ; Mon, 22 Sep 2014 22:49:26 +0200 Message-ID: <54208B55.7060100@gmx.fr> Date: Mon, 22 Sep 2014 22:49:25 +0200 From: Arbiel Perlacremaz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Having the configuration file embedded into core.img look for the grub partition by its label Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:fvw9M4LUChTs0l82PiiJQ5f0H/3qB6onDFbZOjBO2nHS1cpPe2x zf8hxlBvxx5M1NkMDSwU9IrwPPEXevB34Ni8MmGDm8N+DIMXWLaTnkU4diqysEX9OJUeNy/ 0VbSJI5TgRKpDGcjVarj7GxLQxmKumuH/YiguRQKAPt+qiz9qByxs24fUOilKg5zZF16XP7 +a+UcpHmK+cI5KCUY9xdw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 20:49:53 -0000 Hi A way I'm using to avoid any Window's reinstallation to overwrite GRUB in a multiboot environment is to install the later on the MBR of a USB key. That way, when booting with no key pluged, the PC boots into Windows and when booting with the key pluged, the PC boots according to the choice of the user in the grub menu's. I do locate the grub.cfg file in a partition of the internal hard drive. In such a situation, grub-install embeddes a config file which reads something like search.fs_uuid 367C9BBD7C9B75F9 root hd0,msdos1 set prefix=($root)'/' This is great. However, any undesired modification by any piece of software of the partition's uuid will prevent GRUB to find it and lead to a boot failure. As the Windows partition is less prone to such modifications as Linux partitions, I do locate the grub.cfg file in that Windows partition. However it would be more straightforward to locate the file into a Linux partition, and to have grub search this partition by its label. How could this be done ? If this can't presently be done, can it be included in a future grub release ? Regards Arbiel