- Code: Select all
chroot /target /bin/bash grub-install --recheck --no-floppy --force $grub_partition
On reboot (chainloading from the harddisk entry in the live-iso), I get a grub-rescue prompt with the message, "error: file '/grub/i386-pc/normal.mod' not found."
From here:
https://www.gnu.org/software/grub/manua ... scue-shell
I had to modify the commands slightly to get it to work, by changing 'set prefix' from '(hd0,1)/grub' to '/boot/grub'.
- Code: Select all
# Inspect the current prefix (and other preset variables):
set
# Find out which devices are available:
ls
# Set to the correct value, which might be something like this:
set prefix=/boot/grub
set root=(hd0,1)
insmod normal
normal
And then the grub boot menu came up, and I could boot normally.
From the same page linked above, this may be the problem. I don't have time to test it right now:
At least on BIOS systems, if you tell grub-install to install GRUB to a partition but GRUB has already been installed in the master boot record, then the GRUB installation in the partition will be ignored.