[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "not a valid root device" error in UEFI chainloader command
From: |
Keshav P R |
Subject: |
Re: "not a valid root device" error in UEFI chainloader command |
Date: |
Wed, 18 Jan 2012 18:32:36 +0530 |
2012/1/18 Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden>:
> On 18.01.2012 03:54, Keshav P R wrote:
>>
>> Hi,
>> I tried to manually chainload UEFI shell from grub2 terminal in
>> x86_64 firmware. I get
>>
>>> insmod part_gpt
>>> insmod fat
>>> chainloader (hd0,gpt1)/shellx64.efi
>>
>> error: not a valid root device
>
> Setting "root" isn't just for convenience inside GRUB, with some loader
> (multiboot, chainloader, bsd) it's actually passed to the payload as its
> root. If you forget to set it, it obviously won't work
>>
>> If I use
>>
>>> set pager=1
>>> set debug=all
>>> chainloader (hd0,gpt1)/shellx64.efi
>>
>> [long rows of text - but no visible error]
>>>
>>> boot
>>
>> [shell launched]
>>
>> However a menuentry like
>>
>> menuentry "UEFI Shell" {
>> search --fs-uuid --no-floppy --set=root ${_uefi_sys_fs_uuid}
>> chainloader (${root})/shellx64.efi
>> }
>>
>> works. I can reproduce this error everytime I try to manually
>> chainload from grub2 terminal, but does not occur even once when
>> loaded via menuentry. Thanks in advance.
>>
>> Regards.
>>
>> Keshav
>>
>> _______________________________________________
>> Grub-devel mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
So what you are saying is I have to set the root variable before
calling chainloader?
- Keshav