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.