On 16/11/2022 23:06, Matthias Braun wrote:

I was wondering if I could simplify the commands used for installing GRUB on a 
removable drive.

As shown in the following link, I chroot into a mounted partition to run 
grub-install and grub-mkconfig on it:


chroot not required.

1. Boot into any linux OS with grub installed.
2. Check that the packages are installed (should be)
            libisoburn
            efibootmgr
            dosfstools

some OS name libisoburn packages differently; if unsure, install 'xorriso' package that contains it.


3a. for a plain grub prompt usb
    grub-mkrescue -o anyname.iso
    burn anyname.iso to the usb

3b. to include a current working grub.cfg in the usb
        mkdir -p ~/burn/boot/grub
        sudo grub-mkconfig -o ~/burn/boot/grub/grub.cfg
        sudo grub-mkrescue -o anyname.iso burn
        burn anyname.iso to the usb



Reply via email to