Where is Grub installed on a GPT disk?

Screenshot shows all the partitions I have got and I do not have MBR as far as I know. I had UEFI Windows 10 then I installed LM 17.2 Cinnamon (Ubuntu based) on the top of it. Grub is functioning normally but I cannot seem to figure out where exactly the Grub files are stored. Can you help?

4

1 Answer

Broadly speaking, there are two possibilities (although clearly only one is the case for you):

  • BIOS-mode booting from GPT -- On a BIOS-based computer or an EFI-based computer that uses its Compatibility Support Module (CSM) to emulate a BIOS, GRUB is installed split across the Master Boot Record (MBR; the first sector of the disk), the BIOS Boot Partition, and files in the Linux /boot directory. In some cases, the BIOS Boot Partition code can be placed elsewhere, but Ubuntu pretty much insists on the BIOS Boot Partition being present. Since you don't have this partition on your disk (it shows up as having the "bios_grub flag" set in GParted), it's pretty clear that your disk is not set up for BIOS-mode booting.
  • EFI-mode booting from GPT -- Under EFI, booting is handled by boot loaders stored on the EFI System Partition (ESP), which shows up in GParted as having the "boot flag" set. The ESP is normally mounted at /boot/efi in Ubuntu, and Ubuntu's GRUB goes in the ESP's EFI/ubuntu directory -- that is, /boot/efi/EFI/ubuntu. The computer knows which boot loader to launch because of NVRAM entries, which you can examine and manipulate with the efibootmgr command in Ubuntu. Type sudo efibootmgr to see the existing entries, or add -v to see extended information. You can use -c to add new entries, -B to delete entries, -o to change the boot priority, and so on. (Some of these options require additional options to do any good.) Type man efibootmgr for details. Note that EFI boot loaders are ordinary files; they have no components that are stored "raw" in the MBR or partition boot sector, unlike BIOS boot loaders. EFI-mode GRUB still relies on files in the Linux /boot directory tree, though, just like its BIOS-mode counterpart.

For more on the subject of EFI-mode booting, you can read:

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like