help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disk/device enumeration within grub


From: Andrei Borzenkov
Subject: Re: disk/device enumeration within grub
Date: Fri, 16 Oct 2015 20:45:27 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Moving to help-grub which is better match for such question.

16.10.2015 16:58, Stuart Weaver пишет:
Hi all,

My current setup is a device that has eMMC and occasionally a USB both with 
GRUB installed on them via Yocto. All are EFI on an x64 system.


1.       When the USB is disconnected the device boots into the eMMC

2.       When the USB is connected and chosen via the BIOS, the device boots 
into the USB

3.       When the USB is connected and eMMC is chosen via the BIOS, GRUB is 
loaded from the eMMC (checked by deleting the bootx64.efi file on USB) but 
chooses the USB grub.cfg file and hence boots into USB

4.       When USB boot is disabled in BIOS it will load GRUB from eMMC (checked 
by deleting the bootx64.efi file on USB) but chooses the USB grub.cfg file and 
hence boots into USB

When I go to the grub commandline I can see that:


1.       When USB is disconnected, eMMC appears as (hd0)

2.       When USB is connected, USB appears as (hd0) and eMMC appears as (hd1)

I've tried trawling the internet and documentation but can't seem to find 
anything detailing how grub enumerates devices. Obviously I would like grub to 
look for the grub.cfg file from the device it booted from but can't seem to 
find a solution at the moment!

Could someone detail/point to the process of how grub does the enumeration (is 
the information passed through from the BIOS?)

GRUB gets list of devices from EFI firmware and names them consecutively in order firmware presents them.

and whether USB booting can be blocked for the grub that is on the eMMC?



Please tell your grub version and show exact commands used to install GRUB on USB and eMMC.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]