UbuntuLinux and Windows Multi-start Configuration

Source: Internet
Author: User
Article Title: UbuntuLinux and Windows Multi-start configuration. 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.

1. If XP is installed between XP (vista) and UBUNTU, and ubuntu is installed later, the XP startup item will be added to grub. You can add them manually.

Corresponding to XP, vista, and 2003

Title Microsoft Windows XP Professional

Root (hd0, n) # n depends on the partition where XP is located. The first partition is 0.

Default

Makeactive

Chainloader + 1

Corresponding to 2003, which can be found below.

Title Earlier Version of Windows

# Find windows xp/2003. Some grub versions do not support the find command

Find -- set-root/ntldr

Chainloader/ntldr

Corresponding to vista, you can add it to menu. lst of grub without specifying partitions.

Title Windows Vista (default)

# Find Vista bootmgr. Some grub versions do not support the find command

Fallback 4

Find -- set-root/bootmgr

Chainloader/bootmgr

2. If you install UBUNTU first, or install XP first and then reinstall XP, you can also add the UBUNTU startup content to the XP startup Item.

Add grldr to boot. ini. If grldr is placed under the root directory of the C drive, add c: \ grldr = "Ubuntu ". You also need a BOOT folder under drive C, which contains the GRUB folder and the MENU. LST file. The grldr above is included in grub for dos. The content of MENU. LST depends on the location of your ubutnu boot and the kernel. grldr, arldr, and ntldr are three files used for grub, dostoolbox, and xp BOOT respectively. The menu. lst content is similar to the following:

Title Ubuntu 7.10, kernel 2.6.22-14-generic

Root (hd0, *) #### * depends on your UBUNTU installation disk

Kernel/vmlinuz-2.6.22-14-generic root =/dev/hda (n) ro quiet splash

Initrd/initrd. img-2.6.22-14-generic

Quiet

In this way, start ubuntu in the startup Item to enter the LINUX system.

Select XP from the grub option of ubuntu first, and then start ubuntu from the XP option first. This is not in conflict with the ubuntu Startup menu.

3. XP and VISTA, XP first, and then VISTA.

After VISTA, XP can also be set by using VistaBootPRO 3.1 In the XP system. Some may encounter problems during startup? It is said that dotnetfx.exeand langpack.exe are two files. Finally install vistabootpro3.1. here: http://bbs.zol.com.cn/index20070812/index_308_6904.html

You can also use the VISTA disc to fix it. It seems that it is still fixed to start xp on vista? Vista cannot be added to boot. ini of xp. Specifically: Put it on a CD. # X: # cd boot # bootsect/nt60 sys in CMD. The bootsect/nt52 sys command deletes VISTA boot. (CMD must be in the system folder sysem32. CMD ,?? Restart VISTA, http://www.zhaodll.net/dll/ B /200701/2840.html, and download bootsecthere

Bcdedit/create {ntldr}-d "! · # ¥ % ...... "

Bcdedit/set {ntldr} device partition = d: # d vista Drive letter?

Bcdedit/set {ntldr} path \ ntldr

Bcdedit/displayorder {ntldr}/addlast

In this case, grub is the best startup tool. All. 3. If there is a problem with the system, install grub for dos or start it with ubuntu livecd. Execute the grub command in the command line and write it to grub in the MBR. You need to manually modify the menu. lst item based on your system conditions. It is recommended.

4. First ubuntu and then vista.

Download grub4dos package

Extract the grldr and grldr. mbr files and copy them to the root directory of drive C (the file system requires ntfs ).

Run cmd and run the following command:

Bcdedit/create/d "grub menu"/application bootsector #

Create a boot item named "grub menu", which is named "Boot Sector file" by loading

Generate {ID} and copy it.

Bcdedit/set {ID} device partition = c: # set the partition where the Boot Sector file is located, where grldr. mbr is located

Bcdedit/set {ID} path \ grldr. mbr # specify the path and file name of the boot sector File

Bcdedit/displayorder {ID}/addlast # Add the Ubuntu menu item to the end.

Next, modify menu. lst. Hey, xp uses the bcdedit command of boot. ini. vista to check whether this command is used to set the location of grldr. Which file does this command Add? Why cannot I modify it in text?

5. Run the following command on the ubuntu terminal:

# Dd if =/dev/sda3 of =/dev/sda6/linuxloader/ubuntu. lnx bs = 512 count = 1

/Dev/sda3 try the partition where your ubuntu boot is located. Generate ubuntu. lnx and replace grldr. mbr with this file.

Run cmd with the Administrator permission under vista, and then

Bcdedit/create/d "Ubuntu 7.04"/application bootsector

Bcdedit/set {GUID} device partition = C:

Bcdedit/set {GUID} path \ ubuntu. lnx

Bcdedit/displayorder {GUID}/addlast

That's it. You don't need menu. lst.

Conclusion: we can see from the above content that it is okay to install first. It can also be fixed. Xp-vista-ubuntu xp-ubuntu-vista-xp-ubuntu vista-ubuntu-xp ubuntu-vista-xp (Hey, this is a real ghost) ubuntu-xp-vista

If you need to renew the MAC, you do not need to use the MAC boot menu. Add tboot to xp.

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.