Win7 ubuntu10.04 dual system, after reloading the Win7, repair the dual boot entry

Source: Internet
Author: User

Go to Ubuntu LiveCD (ie, try Ubuntu) and operate in the terminal

The first thing to do is to find your Ubuntu system mounted under that SDA. You can fdisk-l this command with sudo. And then:

1. Sudo-i

2. Mount/dev/sdax/mnt (/mnt is a folder under the home folder, this folder can be arbitrary)

3. Mount/dev/sdax/mnt/boot This step is to give/boot separate partition command, if not separate partition skip this step, this step I skipped, seemingly no impact

4. Grub-install--ROOT-DIRECTORY=/MNT/DEV/SDA (Be sure to note that there is a space behind/mnt) (if the installation finished.no error reported proves that the initial repair was successful, If there is a bug reported, it proves that the previous operation failed)

5. Restart

6. After rebooting, go to the Grub interface and enter it at the grub> prompt:

7. FIND/BOOT/GRUB/CORE.IMG (if boot separate partition: Find/grub/core.ima) This command will get a result: (Hdx,y) (Mine is (hd5,0)

8. Root (Hdx,y)

9. kernel/boot/grub/core.img (boot separate partition: KERNEL/GRUB/CORE.IMG)

After the boot executes the command, it goes to the Grub menu and chooses to go to Ubuntu

11. After entering Ubuntu, go to the new software package to remove grub-pc and reload it. (You may want to modify the source during this process.)

12. Start the terminal

sudo update-grub

After rebooting, you can see the dual boot entries.

Win7 ubuntu10.04 dual system, after reloading the Win7, repair the dual boot entry

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.