After installing other systems in Ubuntu, grub of ubuntu will be damaged, leading to non-Linux system startup failure, prompting that the partition of the system does not exist. The following are some restoration methods I have tested.
① If you can enter Ubuntu, congratulations, you just need to input a command:
Scenario 1:The original system is XP, and then ubuntu10.04 is installed in the Air Separation Area. The dual system can be started normally. In this case, reinstall XP, restart the computer after installation, and prompt that the partition of XP does not exist. In this case, you can only enter ubuntu.
Solution 1:Ubuntu 10.04 uses grub2. After you enter Ubuntu, enter sudo Update-grub on the terminal to update the GRUB menu and find all available systems. If the Rescue Command Line appears in grub, fix it with Ubuntu livecd.
② If you cannot access any Ubuntu, use CD to start the computer for repair:
Scenario 2:On the basis of Case 1, use the DOS tool disk to repair the MBR partition. After restarting, the computer can enter XP, but Ubuntu cannot find the boot item.
Solution 2:
1. Enter the try mode of livece.
2. Mount the original system to/mnt/newlinux. The command is as follows (assuming that the system disk is under/dev/sda8 ):
Sudo mkdir/mnt/newlinux
Sudo Mount/dev/sda8/mnt/newlinux
Sudo Mount -- bind/proc/mnt/newlinux/proc
Sudo Mount -- bind/dev/mnt/newlinux/dev
Sudo Mount -- bind/sys/mnt/newlinux/sys
Sudo chroot/mnt/newlinux
3. Install grub2. If grub2 has been installed, the system will prompt (Note: You need to connect to the Internet)
Sudo apt-Get install grub2
4. Start to repair the disk. Generally, select the parent directory of the disk. This process is automatically executed
Upgrade-from-grub-Legacy