Some notes about failure to start XP after Ubuntu is deleted

Source: Internet
Author: User
In view of the fact that XP cannot be started normally after Ange deletes Ubuntu, and as mentioned in my previous article: Using mbrfix.exe to fix windows MBR, this method cannot solve this problem, I decided to use my computer to make another mouse. My computer is an XP + Ubuntu dual-system. I use the Disk Manager in Windows to delete the Ubuntu partition and format it as Fat32, use the magic partition master to merge the partitions into the adjacent partitions in Windows (this step is my own

In view of the fact that XP cannot be started normally after Ange deletes Ubuntu, and as mentioned in my previous article: Using mbrfix.exe to fix windows MBR, this method cannot solve this problem, I decided to use my computer to make another mouse.

My computer is an XP + Ubuntu dual-system. I use the Disk Manager in Windows to delete the Ubuntu partition and format it as Fat32, use the magic partition master to merge the partitions into the adjacent partitions in Windows (this step is added by myself, because it can be repaired by using mbrfix after direct deletion, the purpose of merging partitions is to make grub unable to find the menu. lst), restart the machine, and the problem occurs:

GRUB loading please wait

Error17

Then restart the machine and put the Ubuntu liveCD. Enter:

Sudo grub

Find/boot/grub/stage1 [take my machine as an example. After you press enter, the return value of the terminal is (hd0, 9) and remember this value, that is, x = 0 in the following code, y = 9]

Root (hdx, y)

Setup (hd0, 0) [The first partition of the first hard disk]

Quit

Restart and retrieve the liveCD. Then you can see the normal interface for selecting the operating system, but Ubuntu has been deleted. How can I display the menu. lst content? Continue! As mentioned above, the magic partition Master finally appeared, and partitioning started! Reboot after completion. New problems:

GRUB loading please wait

Error22

This is an unexpected problem. It is estimated that the MBR of windows is damaged again. Repeat the above steps and it will not work. Use liveCD to access the Internet. For more information, see section 2nd of this article:

How to Use Ubuntu livecd

Method 1: sudo dd if =/usr/lib/syslinux/mbr. bin of =/dev/sda

Method 2, sudo lilo-M/dev/sda

Method 3, sudo ms-sys-m/dev/sda (need to go to http://ms-sys.sourceforge.net/download to compile ms-sys, or you can use the deb package attached below to directly install-hard before apt-get install ms-sys, later, Microsoft [blocked] said that the mbr code containing less than 500 bytes is copyrighted, and the package had to be removed from the source)

They are made of syslinux mbr, lilo mbr, and authentic M $ mbr, which can directly guide windows in the active partition.

I am using method 3, I .e. downloading post attachment: ms-sys_2.1.0-1_i386.deb

Enter sudo ms-sys-m/dev/sda in liveCD.

Returned value: windowsXP .................. (I forgot-_-B. It's okay ......)

Reboot, OK!

My mouse recovered to a single XP operating system, and the Ubuntu shadow was completely invisible. The 8g partitions that were previously split were also securely merged.

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.