How to install Ubuntu 12.04 hard disk in Windows XP

Source: Internet
Author: User

Every time you install the system, you need to find a method. Please save it in your blog ~~! You can also check it out.

From http://jewelseeker.blog.163.com/blog/static/58027093201232852659795/

Partition Configuration:

In Windows XP, delete the last partition as free space. During linux installation, select Custom partition. We recommend that you:

/Root partition, except for the specified Mount folder, other folders will be installed in this partition. It is recommended that the partition be larger than 15 GB. If/home is not separately partitioned, it is recommended that the partition be larger than 30 GB.

/Home user folder to store your own data and data. Try to partition it separately. We recommend that you use the maximum space. If you reinstall the system later, the data will not be lost if this part remains unchanged.

Swap partition. It is recommended that the physical memory be 1.5 ~ 2x. Some software, such as DS, must be 2 times the memory.

/Boot Linux kernel stores partitions, which can not be separately partitioned. If it is separately partitioned, about MB is recommended.

Installation Process:

The following describes how to use grub4dos to boot the iso file for hard disk installation in windows.

1. download the latest Grub4DOS version.

: Http://download.gna.org/grub4dos (please find the latest zip package yourself)

After downloading and decompressing the file, copy the grldr (neither grldr.mbr] nor grub.exe files in the directory to the C root directory (you can back up the original file or change the source file to the backup directory)

A volume is called in dos mode, and you do not need to copy it to drive C.

If you use the boot. ini method, ntldr can directly guide grldr without grldr. mbr when you copy the xp ntldr. Therefore, you do not need to copy the latter.

Otherwise, selecting grub4dos Project (actually pointing to grldr) on the bootmgr boot interface is easy to report an error .)

 

Decompress the package and copy it to the C root directory.

(You do not need to decompress the entire casper folder)

Download Directory: http://releases.ubuntu.com/12. 04/, find the desktop version download (divided into i386 and amd64 two, respectively, 32-bit and 64-bit ). Assume the downloaded file is: ubuntu-12. 04-rjtop-i386.iso

 

3. Create the menu. lst file under the C-drive root directory. The content is:

Title Install Ubuntu 12. 04

Root (hd0, 0)

Kernel (hd0, 0)/vmlinuz boot = casper iso-scan/filename =/ubuntu-12.04-desktop-i386.iso ro quiet splash locale = zh_CN.UTF-8

Initrd (hd0, 0)/initrd. lz

 

Note: initrd.lzcan also be initrd.gz. Make sure that the file name is correct and the case is the same. You can also remove quiet and splash to see where the boot failure stops.

 

4. Remove the "Hide protected operating system files" check box under the "my computer"> "Tools"> "Folder Options" tab, check "show all files and folders ". Cancel the boot under the C-drive root directory. the "read-only" attribute of the INI file, and then enable boot with notepad. in the INI file, make the following changes: Change timeout = 0 to timeout = 5 or a larger number in boot. add a line C: \ grldr = "GRUB" to the end of the ini file"

(Attachment: boot. ini file path c: \ boot. ini)

 

5. Copy ubuntu-12. 04-rjtop-i386.iso to the c drive root directory.

(Grub4dos can recognize ntfs partitions, but not fat32 partitions. Ext4 partitions are not recognized. If the iso file cannot be found during the boot and the file name is sure to be correct, we recommend that you split a small fat32 partition to store the iso file and try again. In addition, the partition for storing the ISO file cannot be formatted during installation, that is, this partition cannot be used as the main partition/,/home,/boot of linux, so put it in the partition used by windows .)

 

6. Restart your computer and select "GRUB" to go to the live CD mode.

 

Before installation, open the terminal and enter:

Code:

Sudo umount-l/isodevice

(This command must be run. Otherwise, disk operations cannot be performed !)

7. Double-click the "Install" icon on the desktop to start installation. Note that you need to unplug the network cable and install it again. Otherwise, the update will be automatically upgraded during the installation process, which is extremely time-consuming. (Installation Process omitted)

 

8. Change Windows XP to start the system by default through the following operations:

1. The original backup file is grub. cfg. bak.

Code: sudo cp/boot/grub. cfg/boot/grub. cfg. bak

2. Modify the startup sequence

Code: sudo gedit/boot/grub. cfg

Find set default = "0" in the top file, and you can see that it is the first item by default (counting starts from 0 ).

Then find all the rows starting with menuentry. The following is the content of the file on my computer. There are five rows in total, and the last row is Windows XP. Taking my file content as an example, I only need to set default = "4" (Note: Count from 0) to change Windows XP to the default boot system.

Menuentry 'ubuntu, Linux 2.6.32-22-generic'

Menuentry 'ubuntu, Linux 2.6.32-

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.