GRUB Legacy: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
Line 246: Line 246:
Go to "grub-core" folder.
Go to "grub-core" folder.


Execute: ./grub-mkimage -d . -o grub.efi -p /efi/grub minicmd part_gpt part_msdos part_apple fat ext2 hfsplus hfs ntfs reiserfs xfs iso9660 udf ls search loopback linux multiboot multiboot2 chain reboot halt appleldr help configfile hexdump loadbios memrw fixvideo crc sh video gfxterm font png
Execute: ../grub-mkimage -d . -o bootx64.efi -p /efi/boot minicmd part_gpt part_msdos part_apple fat ext2 hfsplus hfs ntfs reiserfs xfs iso9660 udf ls search loopback linux multiboot multiboot2 chain reboot halt appleldr help configfile hexdump loadbios memrw fixvideo crc sh video gfxterm font png


where "-p /efi/grub" tells where root is located just after boot. Grub.cfg will be loaded from this path on booting device.
where "-p /efi/boot" tells where "grub.cfg" is after booting and it will be loaded from this path on booting device.


That will build "grub.efi" in the subfolder and this can now be copied to a USB-disk, harddisk etc.
That will build "bootx64.efi" in the subfolder and this can now be copied to a USB-disk, harddisk etc.

From UEFI specification the EFI bios will try to load & boot from /efi/boot/bootx64.efi on a FAT formated drive. This is for x86_64 plattform.


===Installing===
===Installing===