aguslr / multibootusb

A collection of GRUB files and scripts that will allow you to create a pendrive capable of booting different ISO files
https://mbusb.aguslr.com
GNU General Public License v3.0
578 stars 156 forks source link

Error I386 #206

Closed danelsan closed 6 years ago

danelsan commented 6 years ago

I run

makeUSB.sh

but with this error:

Install GRUB for BIOS

$grub_cmd --force --target=i386-pc \ --boot-directory="${data_mnt}/${data_subdir}" --recheck "$usb_dev" \ || cleanUp 10 /usr/sbin/grub-install: errore: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.

Thanks

danelsan commented 6 years ago

Sorry, i founded the reply

installed this tools

sudo apt install grub-pc

sferra commented 6 years ago

This issue still occurs with Ubuntu 18.04.1 Installing grub-pc is not an option as it conflicts with the default grub installation (specifically with grub-efi-amd64). After installing grub-pc-bin as a workaround the script executed but I'm not sure how this affects the existing grub installation.

aguslr commented 6 years ago

@sferra, installing the -bin packages doesn't affect the installation as the only provide the different targets. If we want to use --target=x86_64-efi we will need the package grub-efi-amd64-bin, and for --target=i386-pc we need grub-pc-bin.

Now, if we used BIOS/Legacy boot during the installation of the OS, grub-pc and therefore grub-pc-bin will be installed. If we used EFI boot, then grub-efi-amd64 and grub-efi-amd64-bin will be installed instead.

sferra commented 6 years ago

Thanks for the insight. It would be very nice to have those hints when the script fails as the solution is buried in a growing heap of resolved issues, with an obscure title.

aguslr commented 5 years ago

With eb5ac7e018729035b78778efc40fba86a754152a I've added a note to the documentation. Hopefully that'll do.