Ubuntu dual-system is installed on the hard drive under win7

Source: Internet
Author: User

1. Pre-partitioning

In win7, use acronis disk ctor suite to divide the Ubuntu system into four zones:

Name:/swap

Format: swap

Size: 3 GB

 

Name:/boot

Format: ext3

Size: 2 GB

 

Name:/home

Format: ext3

Size: 8 GB

 

Name :/

Format: ext3

Size: 15 GB

 

2. Download Ubuntu and related tools

Download ubuntu-10.10-desktop-amd64.iso from Ubuntu Official Website"

Download URL: http://www.ubuntu.com/desktop/get-ubuntu/download

 

Download the latest grub4dos (my version: grub4dos-0.4.4-2009-06-20), decompress the package, and copy the grldr, grldr. MBR files to the C root directory.

Download URL: http://download.gna.org/grub4dos/

 

3.ConfigurationHard Disk installation environment

The downloaded ubuntu-10.10-desktop-amd64.iso can be placed under the root directory of any disk. I put it in E :/.

Use tools such as WinRAR to extract vmlinuz and initrd from this ISO file. put the two LZ files in the root directory of the same ISO disk. For example, I also put them all in E :/.

Create a text file named menu. lst under the root directory of the disk. The written content is as follows:

Title install Ubuntu 10.10
Find/ubuntu-10.10-desktop-amd64.iso
Kernel/vmlinuz boot = Casper iso-Scan/filename =/ubuntu-10.10-desktop-amd64.iso locale = zh_CN.UTF-8
Initrd/initrd. LZ

 

4. Create an installation Startup Menu 

Start Menu-> Run-> Enter cmd and run the following command prompt:

Bcdedit/create/d grub4dos/Application bootsector

The command result should return a guid (a combination of letters and numbers), record it, use the guid later, and execute the following commands in sequence:

Bcdedit/set {guid} device partition = C:

Bcdedit/set {guid} path \ grldr. MBR

Bcdedit/displayorder {guid}/addlast

 

5. Install ubuntu10.10

Restart, select "grub4dos" in the startup item, and then select "Install Ubuntu 10.10 ".

After entering the Ubuntu Desktop, there will be two icons on the desktop, one examples and the other "Install ".

Open the terminal and enter

Sudo umount-L/isodevice


This command unmounts the drive where the CD image is located and then installs Ubuntu 10.10.


6. Delete the installation Start Menu

After the installation is complete, restart Windows (do not go to Ubuntu) and delete the original grldr, grldr. MBR, vmlinuz, initrd. LZ, and menu. lst.

Delete the grub4dos Startup menu item.

A. Make sure that the CMD window is started as an administrator.

B. Enter and execute the command bcdedit to view all the Startup menu items. Example:
C: \ windows \ system32> bcdedit

Windows boot Manager
--------------------
Identifier {bootmgr}
Device partition = C:
Description Windows boot Manager
Locale ZH-CN
Inherit {globalsettings}
Default {current}
Resumeobject {f00a81b4-9c18-11de-817f-f75094157968}
Displayorder {current}
{F00a81b3-9c18-11de-817f-f75094157968}
{F00a81b8-9c18-11de-817f-f75094157968}
Toolsdisplayorder {memdiag}
Timeout 10

Windows boot loader
-------------------
Identifier {current}
Device partition = C:
Path \ windows \ system32 \ winload.exe
Description Windows 7
Locale ZH-CN
Inherit {bootloadersettings}
Recoverysequence {f00a81b6-9c18-11de-817f-f75094157968}
Recoveryenabled Yes
Osdevice partition = C:
Systemroot \ WINDOWS
Resumeobject {f00a81b4-9c18-11de-817f-f75094157968}
NX optin

Real-mode Boot Sector
---------------------
Identifier {f00a81b3-9c18-11de-817f-f75094157968}
Device partition = C:
Path \ grldr. MBR
Description grub4dos

The second to last record is exactly what needs to be deleted, and its idnumber is {f00a81b3-9c18-11de-817f-f75094157968 }.

C. Enter and execute command bcdedit/delete {f00a81b3-9c18-11de-817f-f75094157968}
The operation is successful:
C: \ windows \ system32> bcdedit/delete {f00a81b3-9c18-11de-817f-f75094157968}
The operation completed successfully.

D. restart the computer. The grub4dos menu is deleted successfully!



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.