After Windows XP is reinstalled, repair GRUB to retrieve ubuntu

Source: Internet
Author: User
Article Title: Fix GRUB and retrieve ubuntu after reinstalling XP. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

After xp is reinstalled, the mbr is written by xp, causing grub to fail to work. solution:

(1) Use the ubuntu-8.10-desktop CD, use the grub command to fix.

1. A'> Start from the CD-ROM and choose "Try Ubuntu without changing anything on your computer" to enter the desktop.

 

1. B '> click Application> attachment> terminal on the taskbar 』.

Input: sudo grub

Input: find/boot/grub/stage1

The actual operation result is shown in: (hd0, 4)

 

Input: root (hd0, x) # input the data fed back by the find command. For example, enter 4 for me. This is the partition where/boot is located.

Input: setup (hd0) # Write grub to MBR

The actual operation result shown in is displayed.

Enter quit # To exit grub.

1. c '> restart. If there is no accident, congratulations. You can see the dual-System Boot of XP and Ubuntu.

(2) do not use ubuntu-8.10-desktop disc, repair grub with wubi.

2. A'> modify the "boot. ini" under the root directory of the windows disk and add the following code:

C: \ wubildr. mbr = "Ubuntu"

Copy the files wubildr and wubildr. mbr in the attachment to the c-drive root directory and restart the computer. As shown in:

 

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.