Closed de-ramon closed 6 years ago
You will probably need to rebuild grub.efi
and make sure part_gpt
is compiled into core.img instead of as a module. Maybe you need others too.
https://github.com/schierlm/usb-modboot/blob/master/build-grub#L37
Hi Michael, thank you so much :)
It work's and it's cool :)
Here my mini HowTo:
Boot UEFI system with linux (here: grml64-full_2017.05.iso, because only Win10 is installed)
mkdir /boot/efi
mount /dev/sda1 /boot/efi
cd /root # no need to save build-files on hd! Live-System /root is ok
git clone https://github.com/schierlm/usb-modboot.git
cd /root/usb-modboot
vim build-grub +37 # edit line 37 as mentioned above to include part-gpt
old and new line 37:
...
# ./grub-mkimage -d ./grub-core -O x86_64-efi -o ../../../dist/usb-modboot/efi/boot/grub.efi -p '' -c ../confscript_efi fat part_msdos loopback
./grub-mkimage -d ./grub-core -O x86_64-efi -o ../../../dist/usb-modboot/efi/boot/grub.efi -p '' -c ../confscript_efi fat part_msdos part_gpt loopback
...
Build new grub.efi
apt update
apt install build-essential unzip gettext libfreetype6-dev dosfstools autoconf automake bison flex xfonts-unifont python ca-certificates git
./build-grub
./build-main
mkdir /boot/efi/usb-modboot # holds usb-modboot-files as normal
mkdir /boot/efi/EFI/usb-modboot # just holds efi-loader
cp /root/usb-modboot/dist/usb-modboot/efi/boot/grub.efi /boot/efi/EFI/usb-modboot/grub-gpt_x64.efi
cp /root/usb-modboot/dist/usb-modboot/usb-modboot/* /boot/efi/usb-modboot
cd /boot/efi/usb-modboot
wget http://download.grml.org/grml64-full_2017.05.iso
wget http://download.grml.org/grml64-full_2017.05.iso.sha1
sha1sum -c grml64-full_2017.05.iso.sha1
If rEFInd is installed, just reboot:
cu, ramon
Hi,
in order to boot grml or other live-systems supported by usb-modboot directly from harddisk based UEFI-installations I tried to install usb-modboot into the ESP.
Win10 Installation
The 10 GB ESP hold usb-modboot:
I copied the stuff normaly resideing in usb-modboot-device/efi into /boot/efi/EFI/usb-modboot (sda1/EFI/usb-modboot).
Using rEFInd I can boot the EFI-Stuff shipped with the usb-modboot-modules, e.g. memtest.efi successfully.
Even the EFI/usb-modboot/loader.efi starts, but if I select "Continue to boot menu" nothing happens..
Invoking EFI/usb-modboot/grub.efi shows:
Any hints? I uses VirtualBox for the tests. In order to get rEFInd running, you have to "patch" a little bit: https://bbs.archlinux.org/viewtopic.php?pid=1231228#p1231228
cu, ramon