You can’t boot Windows ISO installer directly, need some manual modifications.ġ) Create directory /windows and extract Windows iso into it.Ģ) On Windows, open a command prompt as administrators, run below command first:īcdedit /store \windows\boot\bcdīcdedit /store \efi\microsoft\boot\bcd Linux (loop)/casper/vmlinuz iso-scan/filename=$isofile boot=casper quiet splash -Ĭreate directory /winxp and extract Windows XP iso into it. Get memdisk from syslinux to load bootable iso or floppy image:Ĭreate directory /ubuntu and save all downloaded iso in it.Įdit grub.cfg as below, refer to grub.cfg in the ISO for more examples. Prepare a grub.cfg and put into /boot/grub Once done, you’ll have “EFI” directory to store EFI binaries for boot, and “boot” directory to store grub. Sudo grub-install –target=i386-efi –efi-directory= –boot-directory=/boot –removable /dev/sd Sudo grub-install –target=x86_64-efi –efi-directory= –boot-directory=/boot –removable /dev/sdX Sudo grub-install –target=i386-pc –boot-directory=/boot –removable /dev/sdX If necessary, create additional partitions. Use fdisk to create FAT32 partition and mark as bootable. Since legacy mode doens’t recognize GPT diskĢ. You could use exFAT or NTFS as the data partition.ġ. If you have large files above 4G, consider seperating the boot partition with data partition.
#Install grub2 from windows install#
To use grub2 as the universal USB drive bootloader, you have to install grub bios/uefi on FAT32 partition. Thus, only FAT32/EFI System Partition stores EFI binary could be booted. According to UEFI spec, it requirest an “EFI System Partition” which “happens” to be compatible with FAT32 and says to assign it a GPT partition type of C12A7328-F81F-11D2-BA4B-00A0C93EC93B and an MBR partition ID of 0圎F. In order to boot both BIOS and UEFI machine, the USB should be partitioned compatible to both boot loader. This article introduce the pure manual way to customize your own installer ISO. There already some user friendly tools to customize all installer, like WinUSB. However due to the implementation of Windows’ bootloader, it requires some manual modification to Windows ISO files.
#Install grub2 from windows driver#
GRUB2 is very powerful to act as the universal bootloader on a USB driver to install OS from.