I have a Windows 10 driver that is GPT and boots in EUFI.I installed Ubuntu 16 to some freespace at the end of the drive. I don't really need Ubuntu, but I need the GRUB (version 2) bootloader and the grub.cfg generated by Linux. I will be using GRUB and grub.cfg to boot windows and some other custom Linux.I deleted everything on my new Ubuntu partition (at /), except for /boot. The bootloader is still working fine (except the Ubuntu menu entry, which is fine, I don't need it).However, I need to most these boot files to a different partition (current /dev/sda6, needs to go to /dev/sda5). If I simply move the files to the new partition, GRUB breaks. GRUB4DOS will attempt to find a menu.lst file on any partition, but GRUB seems to have a specific partition embedded into the MBR or in the 1MB-2MB area after the MBR.So my question is, how do I change what partition that GRUB is loaded from?Also, I will need to prep fresh systems with this boot loader. If I create another drive with the same exact partition table (grub.cfg at /dev/sda5) but without the MBR, how do I install GRUB into a fresh system? I have tried installing from the LiveCD, but it want's to use a different architecture (32bit) EUFI than what I need.
Installing GRUB to a Windows 10 drive
windows;grub2;grub;uefi;mbr