Repair Ubuntu grub after dual system reload windows

Source: Internet
Author: User

1. Issue background

The book is Win7 and ubuntu10.04 dual system, with a good, although only in the use of QQ time will also use the Win7, but still keep windows. But a few days ago, Win7 suddenly always blue screen, freezing, more important is the background turned black, require activation. A blue screen may be too hot, black screen there is no way to use all the means to reactivate invalid after the decision to reinstall XP.

2. Implementation process

Find a Carrot Home system disk, boot from CD, choose to install XP original, select the original win7 hard disk partition, format, install, restart. Get into XP, okay. No problem. The problem is, my Ubuntu does not have ~ ~ Of course, the installation of XP on the idea of a solution, previously written blog said the problem.

3. Description of the problem

The boot-up MBR covers grub and cannot be booted by grub.

4. Workaround

Find a ubuntu10.04 (any version can) system disk, boot from CD, choose the Chinese environment, and then select the "Repair damaged system" This menu, all the way next, the last occurrence of the selected partition as the root partition, then in the menu that appears can directly choose to repair grub, Then choose to install the Grub partition (the default is/DEV/SDA, which must be entered manually), the installation successfully restarted. can also be like me, choose to put/dev/sda1 as the root partition into the shell (my system installed in/dev/sda1), enter after using the command

Grub-install/dev/sda

You can also complete the grub installation, prompt after success, and then run

Update-grub

This will enable the newly installed Windows operating system to appear in the boot-up Grub menu.

5. Summary

My system is ubuntu10.04, the file editor is vim, the whole process is about more than 20 minutes just fine. If you have what can not be resolved directly to reply, but also want to www.xinongda.com/osblog more to see, here will introduce more operating system knowledge.

Related Article

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.