Ubuntu 10.04 dual-System Startup Repair

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.