First, install Windows 7
Second, install Ubuntu 9.04
1. Copy Ubuntu 9.04 CD image file to C packing directory
2. Copy image files in the Casper directory of initrd.gz and Vmlinuz to C-packing directory
3. Download Grub4dos, decompression of which Grldr, GRLDR.MBR, Grub.exe (note must have GRLDR.MBR,XP, if it is Vista, Win7 must have GRLDR.MBR, remember! ) to the C-packing directory.
4. The contents of the new Memu.lst file are as follows:
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 XP system boot.ini to C packing directory, in the last line plus c:\grldr.mbr= "grub" (note is GRLDR.MBR) if there is no XP system around then I will bar Boot.ini code posted for everyone to use, the code is as follows:
[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. This completes the preparation, restarts the machine, selects Grub in the Selection menu, will automatically enter the Ubuntu Live CD desktop environment, the next step is also very important, open the terminal (Application-attachment-terminal) Enter the following code:
sudo umount-l/isodevice
Then double-click the installation icon on the desktop, after entering the installation interface, in the selection of partitions, choose to install Ubuntu partition, its partition format to ext3, mount point Select "/", installation process if there can not uninstall/isodevice error, open Terminal, enter
sudo unmount–l/isodevice
7. Modify GRUB Add Windows boot Menu
After installing the reboot, you will find that you are unable to enter Windows 7, which requires the following steps:
Ubuntu, open terminal, enter: sudo gedit/boot/grub/menu.lst
Add the following code:
title Windows Seven
root (hd0,0)
makeactive
chainloader +1