I think a lot of people have tried to install a dual system, the Windows system is always re-installed in the MBR rewrite, after reloading windows can not find the Ubuntu boot.
There are many tutorials on the internet, but I think some of the internet is a little vague. I write in the form of a combination of graphics and text, hoping to some novice some help.
Recovery boot is also very simple, find an Ubuntu installation disk, start from the installation disk, try Ubuntu, open the terminal.
1. Run the command:sudo fdisk-l (here is not the number 1, is the letter L), find the root directory of Ubuntu.
Maybe you're not showing me the same as I am this is the picture under the real Ubuntu system, and I'm here to mount the situation like this
/ |
/dev/sda11 |
/boot |
/dev/sda8 |
/tmp |
/dev/sda10 |
Swap |
/devsda9 |
2. Run the command:
sudo mkdir/media/tmpdirCreate a temporary folder, and then enter the command:
sudo mount/dev/sda11/media/tmpdirMount the system.
3. Next is the most important step, enter the command: sudo grub-install--root-directory=/media/tmpdir/dev/sda (note that this is SDA, do not write sda11 later), if the display no errorreport, it means that the basic success.
4. Next, reboot the system. The guidance is now as usual.
but don't go into WindowsFirst, go to Ubuntu, enter the command in the terminal:sudo update-grub2 update grub After the successful completion, this time can be restarted into any system.
Reference: Click to open link
Overwrite Ubuntu boot recovery after reloading windows