I am trying to install grub2 from a live CD of lubuntu 16.04, I am following this tutorial, after I mounted the /dev/sda1
in the mnt folder using this commands
sudo mount /dev/sda1 /mnt
sudo mount /dev/sda1 /mnt/boot
sudo mount --bind /dev /mnt/dev
Then changing the root directory :
sudo chroot /mnt
But when try installing grub using sudo grub-install /dev/sda
I get this error :
sudo: unable to resolve host ubuntu
grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
I tried turning off the uefi mode from bios but I think that my bios version doesn't even support it because it is from 2005