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?
41 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
/bootdirectory. 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/efiin Ubuntu, and Ubuntu's GRUB goes in the ESP'sEFI/ubuntudirectory -- 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 theefibootmgrcommand in Ubuntu. Typesudo efibootmgrto see the existing entries, or add-vto see extended information. You can use-cto add new entries,-Bto delete entries,-oto change the boot priority, and so on. (Some of these options require additional options to do any good.) Typeman efibootmgrfor 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/bootdirectory tree, though, just like its BIOS-mode counterpart.
For more on the subject of EFI-mode booting, you can read:
- Adam Williamson's blog entry about the principles underlying EFI-mode booting
- The Ubuntu community wiki on setting up an EFI-mode boot
- My own Web page about EFI boot loaders for Linux