Install Ubuntu10.04 and XP on a hard disk to form a dual-System

Source: Internet
Author: User
First, prepare an empty partition for Ubuntu installation. It is better to be around 10 Gb! 1. decompress Grub4dos to the c root directory. place the downloaded Ubuntu10.04 installation file in the root directory of the C drive, and decompress vmlinuz and initrd In the casper folder. the lz file is also extracted to the C root directory. put the folder in Ubuntu10.04. the disk is also copied to the C root directory. Set menu. lst, gru in the Grub4dos folder

First, prepare an empty partition for Ubuntu installation. It is better to be around 10 Gb!

1. Decompress Grub4dos to the c root directory.

2. put the downloaded Ubuntu 10.04 installation file in the root directory of the C drive, and then use the decompression tool to put vmlinuz and initrd under the casper folder. the lz file is also extracted to the C root directory. in Ubuntu 10.04. the disk is also copied to the C root directory. Copy menu.lst,grub.exe and grldr in the grub4dosfolder to the c root directory, modify menu. lst, and add

Title Install Ubuntu

Root (hd0, 0)

Kernel/vmlinuz boot = casper iso-scan/filename =/ubuntu-10.04-desktop-i386.iso

Initrd/initrd. lz

Boot

Ubuntu-10.04-desktop-i386.iso is the ubuntu image file, at this time pay special attention to is, if you are using ubuntu-10.04-alternate-i386.iso, during the installation process will prompt the installation to find the drive image file error, because vmlinuz and initrd. lz cannot identify the version correctly, so it is troublesome. For the solution, see here.

3. Modify the boot. ini file in drive C (first remove the "read-only" file in its attribute and open it with notepad. If www.linuxidc.com is opened with a tablet, it may not be able to modify and save it), and add the following lines at the end:

C: \ Grldr = "GRUB"

Set the value of timeout to 5.

4. After restarting, select GRUB to enter the installation interface, open the terminal, and enter "sudo umount-l/isodevice"

5. Double-click the desktop installer to start ubuntu installation.

6. After installation, grub may fail to find windows on ubuntu. The method is as follows:

 In ubuntu, "sudo gedit/boot/grub. cfg" (the earlier version is menu. lst)

Add at the end:

### BEGIN/etc/grub. d/30_os-prober ###
Menuentry "Windows XP (on/dev/sda1 )"{
Insmod ntfs# It may also be fat32
Set root = (hd0, 1)
Search -- no-floppy -- fs-uuid -- setUID# In the green part, choose Adminstrator> System Monitor in ubuntu-

                                        ##> File System, after hitting the disk corresponding to windows XP/media/UID

Chainloader + 1
}
### END/etc/grub. d/30_os-prober ### (the red part is the add part)

7. That's done!

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.