After Windows XP is reinstalled, repair GRUB to retrieve Ubuntu

Source: Internet
Author: User
After Windows XP is reinstalled, the mbr is written by XP, causing Grub to fail. solution (1) Use the Ubuntu-9.04-desktop disc and run the grub command to fix it. 1. & gt; start from the CD-ROM and select "Try Ubuntu without changing anything in the computer" to enter the desktop. 2. & gt; click "application"-& gt; "attachment"-& gt; "terminal" on the taskbar 』. Input: sudogrub input: find

After Windows XP is reinstalled, the mbr is written by XP, causing Grub to fail to work. solution:

(1) Use the Ubuntu-9.04-desktop CD, use the grub command to fix.

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

2.> On the taskbar, click "application"> "attachments"> "terminal 』.

Input: sudo grub

Input: find/boot/grub/stage1

The actual operation result is as follows: (hd0, 4) (hd0, 5), because my machine is installed with Ubuntu 9.10 and red-flag Linux.

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

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.