Ubuntu 9.04 desktop is not required for Windows 7.

Source: Internet
Author: User
First install Windows 7, then Ubuntu9.04, and then modify grub to add a Windows Startup item. The specific steps are as follows:

First install Windows 7, then Ubuntu 9.04, and then modify grub to add Windows startup items.
The procedure is as follows:
1. Install Windows 7
Ii. Install Ubuntu 9.04
1. Copy the Ubuntu 9.04 CD image file to the C root directory.
2.copy the initrd.gz and vmlinuz files in the example directory to the C root directory.
3.download grub4dos to decompress grldr1_grldr.mbr1_grub.exe (note that grldr. mbr must be available. If it is xp, grldr. mbr must be available for vista and win7 !) To the C root directory
4. Create a memu. lst file with the following content:

Code:
Title Install Ubuntu 9.04
Root (hd0, 0)
Kernel (hd0, 0)/vmlinuz boot = casper iso-scan/filename =/ubuntu-9.04-desktop-i386.iso ro quiet splash locale = zh_CN.UTF-8
Initrd/initrd.gz
Boot

5. copy the boot. ini to the C root directory, add c: \ grldr in the last line. mbr = "grub" (Note: grldr. mbr) if there is no XP system around, I will boot it. the ini code is pasted for your use. The Code is as follows:


Code:
[Boot loader]
Timeout = 30
Default = multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS
[Operating systems]
Multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS = "Microsoft Windows XP Professional"/noexecute = optin/fastdetect
C: \ grldr. mbr = "grub"

6. now that the preparation is complete, restart the machine and select grub from the menu, it will automatically enter the live cd desktop environment of ubuntu. The next step is also very important, open the terminal (Application-attachment-terminal) and enter the following code:

Code:
Sudo umount-l/isodevice

Double-click the installation icon on the desktop.
After entering the installation interface, when selecting a partition, select the partition for which Ubuntu is to be installed, set its partition format to ext3, and select "/" for the mount point "/", if the installation fails to be uninstalled or the isodevice error occurs, open Terminal and enter

Code:
Sudo unmount-l/isodevice

7. Modify grub to add windows Startup Menu
After the installation is restarted, you will find that you cannot access Windows 7. perform the following steps:
Ubuntu, open the terminal, enter

Code:
Sudo gedit/boot/grub/menu. lst

Add the following code:

Code:
Title Windows Seven
Root (hd0, 0)
Makeactive
Chainloader + 1

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.