| « HOWTO install NFS on Fedora | HOWTO: Startup and Connect to a Remote VirtualBox Machine » |
You will, not might, need this at some point in time. It will happen to you.
When you find that grub2 is no longer on your MBR so the system will not boot or even find grub. For example you installed Windows, dumb move, but heh! You may also have cloned the hard disk and forgot to copy the MBR.
You will need an Ubuntu LIVE cd, Desktop for your current install. Boot the system with Live cd. Once booted open a terminal.
Mount the partition that has your root directory in it, my the case above that would be /dev/sda1. mount it directly in /mnt as we will chroot it later. You also need to /dev/and /proc to their subdirectories in /mnt. If you have a separate /boot partition then mount that too, as /mnt/boot
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot
We can now create a chroot environment at /mnt and then proceed to install grub2.
After chrooting, you we will have changed user to root so not need to sudo.
Now we are ready to install/reinstall Grub2.
If you get errors with that command try running the next command too
Make sure to rebuild the menus with the new disk info
Now you can exit the chroot, umount the system and reboot your with your shiny new grub2 install ![]()