Add the Ubuntu boot item to the Windows XP boot menu

Source: Internet
Author: User

First, you mustUbuntuGenerate the Boot Sector image file (the file is named ubuntu. lnx below ):

Dd If =/dev/hda of =/home/ubuntu. lnx BS = 512 COUNT = 1

Note that the hda should be changed to SDA if the SATA hard disk is used;

Next, copy the Ubuntu. lnx generated in the/home directory to the C root directory of Windows XP;

Open boot. ini in notepad and add the following line to it:

C: \ ubuntu. lnx = "ubuntu"

++ ++ ++

If you first install Windows XP and then install ubuntu (or upgrade the Ubuntu system), the Startup menu in MBR will change to Ubuntu;

You can use the following gadgetsMbrfixWrite the Windows XP Startup Menu back to MBR.

Of course, first go to Windows XP through the Windows XP item in the Ubuntu boot menu, and then follow the instructions below to complete the recovery operation.

Download mbrfix tool http://www.linuxidc.com/upload/2007_11/07110411258868.rar
2 It is very convenient for the mbrfix tool to fix the system startup items. first enter the CMD command window, then enter the directory where the mbrfix tool is located (run the CD command), and then enter the command mbrfix/drive 0 fixmbr, check again. If the default system is on disk D, mbrfix/drive 1 fixmbr is used, and so on.

Of course, you can also enter the system maintenance through the XP installation disk and execute the following doscommand to repair MBR.

Fdisk/MBR

Currently, some system disks are equipped with the PM partition tool. After the disc is booted into the PM, you can also useUpdate MBRFunction.

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.