Is this a failure of GRUB2 or a package failure?

$ echo 'configfile ${cmdpath}/grub.cfg' > /tmp/grub.cfg
$ grub-mkstandalone -d /usr/lib/grub/x86_64-efi/ --compress=lzo  --modules="part_gpt part_msdos" -O x86_64-efi -o BOOTX64.EFI "boot/grub/grub.cfg=/tmp/grub.cfg"
grub-mkstandalone: warning: can't compress `/usr/lib/grub/x86_64-efi/acpi.mod' to `/tmp/grub.KlvmeR/boot/grub/x86_64-efi/acpi.mod'.
grub-mkstandalone: error: cannot copy `/usr/lib/grub/x86_64-efi/acpi.mod' to `/tmp/grub.KlvmeR/boot/grub/x86_64-efi/acpi.mod': File exists.

Usually you choose other compression algorithms will not have this fault, only when you choose lzo compression algorithm to compress grub.efi will have these errors, using lzo compression grub is not available?
I also tested it once in the virtual machine and the result is the same.

What command are you running to generate these errors?

If you're trying to make a standalone grub
Take a look at this.
With this method, I no longer need to use grub-mkstandalone anymore.
But then with so many OS's (including Manjaro) using grub as their boot mechanism for their install media, there is no such need as well. This is as good as any grub-mkrescue cd.

Finally there's this way that not only be installed to a computer system but to a portable usb to be used anywhere and that has more facilities than a standalone grub.

Hope one of these can help.


I modified the content of the code snippet to make it more readable.

I will try it when I have time.

1 Like

I installed GRUB2 on the USB stick using the sudo grub-install --target=x86_64-efi --removable command. Great, GRUB2 is working fine.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by