Fixing Grub
-
2. Booting Live OS
First, Boot from a Live Ubuntu OS
On a PC or Virtual Machine you may need to Enter BIOS and Set the ROM/Drive as the First, loading Device. -
3. Chrooting Ubuntu
Now to Chroot Ubuntu OS
First, switch to the Admin Prompt:Copysudo su
Now make the Target Directory with:
Copymkdir /mnt/chrootdir
Then Mount the main Partition:
Copymount /dev/sda1 /mnt/chrootdir
And the required Directories:
Copyfor dir in proc dev sys etc bin sbin var usr lib lib64 tmp; do mkdir /mnt/chrootdir/$dir && mount --bind /$dir /mnt/chrootdir/$dir done
Last, to Chroot simply play:
Copychroot /mnt/chrootdir
-
4. Fixing GRUB
Now to Reinstall GRUB on Ubuntu
Run:Copygrub-install /dev/sda
And again:
Copyupdate-grub2
Next to Exit Chroot Env:
Copyexit
Finally, Reboot into your Restored System
Copyreboot now
Thanks to askubuntu.com #254491.
Contents