Install Windows 7 and Ubuntu10.04 on the hard disk

Source: Internet
Author: User
Tags wubi
Windows 7 and Ubuntu10.04 have been released. Please try them out. Windows 7 has already been installed. I wanted to use wubi to install ubuntu. I am worried about the poor performance of the ubuntu system. I am also worried about the same performance problem when I use a virtual machine to install ubuntu. Fortunately, the hard disk is relatively large, with 10 Gb reserved for the Ubuntu10.04 system. The 10 Gb partition is not used in Windows 7. No drive letter is assigned. Install Windows 7 and Ubuntu10.04

Windows 7 and Ubuntu 10.04 have been released. Try it out. Windows 7 has been installed. I wanted to use wubi to install ubuntu. I am worried about the poor performance of the ubuntu system. I am also worried about the same performance problem when I use a virtual machine to install ubuntu. Fortunately, the hard disk is relatively large, with 10 Gb reserved for the Ubuntu 10.04 system. The 10 Gb partition is not used in Windows 7. No drive letter is assigned.

There are two ways to install Windows 7 and Ubuntu 10.04. First, install Windows 7 and then ubuntu. The second is to first install Ubuntu 10.04 and install Windows 7. I have not tried the second method. I believe that the first installation method is generally used for users of Dual-systems. Here is an introduction to the first installation method.

1. Install Windows 7

Windows 7 has been sold in mainland China. You can purchase a genuine Windows 7 System for installation. Windows 7 I use here is Lenovo's flagship version. The installation method is not introduced anymore. Search for it in the Forum.

2. Set the startup Item.

Next, go to the most critical step and modify the startup Item. Add a grub startup Item.

1. download the latest Grub4DOS version.
: Http://www.linuxidc.com/Linux/2009-01/18027.htm
After downloading and decompression, copy the grldr, grldr. mbr, and grub.exe files in the directory to the C root directory.

2. In the downloaded iso file of Ubuntu 10.04, find vmlinuz and initrd under the "example" folder. lz (Note: The ubuntu9.04file is named initrd.gz). decompress the package and copy it to the C root directory (the entire casper folder is large without being decompressed ).

3. Create the menu. lst file in the C root directory. The content is:

Color black/cyan yellow/cyan
Timeout 30
Default/default
Title Microsoft Windows 7
Root (hd0, 0)
Savedefault
Makeactive
Chainloader + 1
Title Install Ubuntu 10.04
Root (hd0, 0)
Kernel (hd0, 0)/vmlinuz boot = casper iso-scan/filename =/lucid-desktop-i386.iso ro quiet splash locale = zh_CN.UTF-8
Initrd (hd0, 0)/initrd. lz

Copy code

4. Choose "start"> "run"> "Enter CMD" and run the following command at the command prompt:
Code:
Bcdedit/create/d "GRUB4DOS"/application bootsector
Copy code
The command result should return a GUID, which is used by the subsequent command

Bcdedit/set {GUID} device partition = C:
Bcdedit/set {GUID} path \ grldr. mbr
Bcdedit/displayorder {GUID}/addlast

Copy code

3. Install Ubuntu 10.04 on the hard disk

Restart the machine. Select "GRUB4DOS" in the startup item, and then select "Install Ubuntu 10.04" to go To the Ubuntu 10.04 installation program. Before installation, open the terminal and enter the sudo umount-l/isodevice command to cancel mounting the drive where the disc is located. Otherwise, no partition is found on the partition interface.

The author uses SSD. In order to avoid the damage caused by frequent read/write on the hard disk, It is not divided into swap partitions. When partitioning, the reader can split one/and one swap partition. Finally, select "advanced" before installing the system and install grub in the linux partition. This will not affect Windows 7 boot and avoid writing mbr.

4. Fixed Windows 7 startup items
After the Ubuntu system is installed and restarted, only Windows 7 and Grub4Dos are started. To enable Windows 7 to start Ubuntu, you need a STARTUP file, which is the content of Grub installed in the Linux partition just now. Generally, this content is in the first 512 bytes of Linux partition. Www.linuxidc.com can be easily extracted using the dd command in Linux. in Windows, we need to use tools. Here we use WinHEX.
Open WinHEX, Click Tools> Open Disk, and select hard Disk in Physical Media. OK. Select the Linux partition, click Edit-> Copy Sector-> Into New File, and save it to the C root directory. The File name is ubuntu. bin.
Open the command line window and add the Ubuntu startup Item bcdedit/create/d "Ubuntu 10.04"/application bootsector
Copy code
A guid is returned. Bcdedit/set {GUID} device partition = C:

Bcdedit/set {GUID} path \ ubuntu. bin

Bcdedit/displayorder {GUID}/addlast
Copy code
Finally, use bcdedit/delete {GUID} to delete the GRUB4DOS startup Item. You can use bcdedit/v to view the guid of the GRUB4DOS startup Item.


V. Summary

The above is the entire process of installing Ubuntu 10.04 on a hard disk.

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.