[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub2 windows 7 chainloader root=UUID
From: |
Werner Scheinast |
Subject: |
Re: grub2 windows 7 chainloader root=UUID |
Date: |
Mon, 3 Sep 2012 15:19:18 +0200 (CEST) |
User-agent: |
Alpine 2.00 (BSF 1167 2008-08-23) |
Yesterday Greg White wrote:
> Is it possible to boot Windows 7 using a UUID instead of hard coding set
> root=(hd0,1)?
> Something like:
> menuentry "Windows 7" {
> set root=UUID=4396-78D9
> chainloader (${root})/EFI/Boot/bootx64.efi
> }
When you assign a valua to the root variable, it can only be a direct
partition specification. To specify a partition indirectly via UUID or
a given label, use the search command like
search --no-floppy --set --fs-uuid 4f7f6c976c7ecb44
search --no-floppy --set --label somenicename
The documentation of this command is rather scarce and unclear, see
http://www.gnu.org/software/grub/manual/grub.html#search
The only thing it apparently does is, with a given "--set" option, to
assign a value to the variable root, if it finds a partition with the
specified UUID or label. (You can specify a variable other than root.)
No idea what this command does without the "--set" option. Probably
nothing.
Perhaps somebody could explain it in more detail - not only here in the
list, but also in the official documentation.
Regards,
Werner