Windows 7 and Ubuntu 10.04 systems coexist

Source: Internet
Author: User
Tags wubi

I only downloaded the ubuntu10.04 ISO file and didn't want to install it from the disc with a dial. I had to waste a CD and didn't use USB. I couldn't do liveusb to start and install it, then I didn't want to use wubi to install wubi. I felt that the system performance of the wubi installation method had declined. After some efforts, I finally found a perfect solution, it is no better to directly call the ISO file on the hard disk for installation. it seems that the settings are a little complicated, and it is not difficult to do so. Now let's start with step by step.

I. Install the win7 system first. This is very simple and I will not talk about it. The partitioning method is shown in. I will leave 11.8g space at the end of this article to install the ubuntu10.04 system.

(Install Windows 7 first and then install ubuntu. The windows system is guided by MBR, while Ubuntu is guided by grub. If the order is reversed, the first installed Ubuntu cannot be used, because no matter whether you use Windows or other systems, Microsoft wants you to use Windows only. Linux is different and can recognize Windows systems. However, if you like Windows, you can install it)

 

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.oschina.net/p/grub4dos

After downloading and decompressing the package, copy the grldr, grldr. MBR, and grub.exe files in the directory to the C root directory of the win7 system.

2. In the downloaded ISO file of ubuntu 10.04, find vmlinuz and initrd in the directory of the Casper folder. decompress LZ and copy it to the root directory of the C drive. (You do not need to decompress the entire Casper folder. The entire Casper folder is large)

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

Bytes ---------------------------------------------------------------------------------------------------------------

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
Kernel/vmlinuz iso-Scan/filename =/Ubuntu-10.04-desktop-i386.isoBoot = Casper splash initrd/initrd. LZ
Boot

Bytes -----------------------------------------------------------------------------------------------------------------

(Note that the red letters are case-sensitive and must be consistent with the ISO file name stored in the root directory of the C drive. This problem occurs during my first operation)

4: CopyUbuntu-10.04-desktop-i386.isoTo the C-drive root directory

The following is the result:

3. Start Menu -- run -- Enter cmd and run the following command at the command prompt:

Bcdedit/create/D "grub4dos"/Application bootsector

The command result returns a guid, which is used by the subsequent command ,(Tip: this GUID is very long, and all input headers are dizzy, therefore, you only need to right-click the command window and select "mark" in the pop-up window, and then select the guid with the mouse, even if you have successfully copied the guid, then, you only need to right-click the guid and choose to paste it.)

 

Then execute the following commands respectively. Remember that the {guid} in the command should be replaced by the guid obtained from the first command.

Bcdedit/set {guid} device partition = C:

Bcdedit/set {guid} path \ grldr. MBR

Bcdedit/displayorder {guid}/addlast

4. Install Ubuntu 10.04 on a hard disk

1: restart the machine, select "grub4dos" in the startup item, and then select "Install Ubuntu 10.04" to install ubuntu10.04.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 page.

2: on the desktop, double-click Install ubuntu10.04 lts to officially enter the installation stage. For other information, just focus on partitioning.

A hard disk can create four primary partitions, three primary partitions, and several logical partitions.

On the partition page, select manually specify the partition. The win7 system has been detected.

All of our partitions can only be divided into logical partitions. Because Windows 7 has occupied M boot partitions and a C disk before the two primary partitions, we can create a primary partition at most, at this time, you will find that the remaining partitions can no longer be divided. As mentioned above, a hard disk can create four primary partitions, three primary partitions, and several logical partitions, so we can only use all the partitions here. If you don't understand it, think about it.

In idle partitions, I will first split a swap partition, as shown in.

Create another root partition. Here I will divide it into 7 GB.

Distribute all the rest to/home

The last appearance after the split

Okay, so that you can see the dual-system after restart.

In Windows 7, grub4dos is loaded to the startup Item to install ubuntu. After Ubuntu is installed, we can delete it from the startup Item and enter Windows 7 first, go to the command line and use bcdedit/delete {guid} to delete the grub4dos startup Item. You can use bcdedit/V to view the guid of the grub4dos startup Item.

OK. Now it's perfect. You can have a cup of coffee and enjoy it. What about my coffee ~~~ Come on! Give me a cup of coffee, I'm so exhausted.

Postscript:

When you don't want Ubuntu, I tested it. In Windows 7, I directly delete all the Ubuntu partitions.

 

The following error message is displayed when you restart the system:

Grub Loading
Error: no such Partition
Grub rescue>

Then I use the Windows PE system disk to boot into the PE system, use the diskgenius tool to select the first M Master Boot partition, then re-build the MBR, and then restart the Windows 7 system again. in this way, the Ubuntu system is easily killed.

Some people also say that starting from the boot disk of Windows 7 to the repair mode should be okay if you enter the command line bootrec/MBR. I have not tried it. Think about this method as well.

Although the test passed in the virtual machine, I used the same method on my t400 physical machine and tried it again later. What do you think?

Ubuntu 10.04 provides excellent support for the t400 driver. It can be used immediately after you connect it with your Bluetooth mouse. You can also use it when you restart the system to log on to the interface. Windows 7 won't be used when you log on to the interface, I don't know where I set it?

Starting from selecting the system to which the host will be started, I chose Ubuntu 10.04 first. I found that Ubuntu 10.04 takes only 5 seconds until the logon interface appears, and the speed is really amazing; windows 7 does take 20 seconds (the speed may vary depending on your host configuration)

After the t400 graphics card driver of ubuntu 10.04 is upgraded to the kernel, a screen or crash may occur. Therefore, it is normal to use a lower version of the kernel to enter the system. I played a 3D game, and the effect was very cool.

I will summarize the application in the future.

If you have any questions, please feel free to leave a message.

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.