Today I would like to introduce how to install Ubuntu 9.04 desktop version without virtual CD-ROM in Windows 7 system. Concretely, it is to install Windows 7 first of all, then Ubuntu 9.04, and then to modify grub and add Windows startup item.
1. Install Windows 7
2. Install Ubuntu 9.04
1) Copy Ubuntu9.04 disc image file to the root directory on drive C
2) Copy the files initrd.gz and vmlinuz under catalog casper in the image file to the root directory on drive C
3) Download grub4dos, decompress the files grldr, grldr.mbr, grub.exe (notice that grldr.mbr is necessary, but XP would be an exception, but for Vista, Win7, grldr.mbr must be involved, keep it to your heart!) to the root directory on drive C
4) Create a file menu.lst with the content as below:
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 file boot.ini in XP system onto the root directory on drive C, and add a line c:\grldr.mbr="grub" to the last (notice it is grldr.mbr). If you don’t have XP system right at hand, then I’d like to paste the code of boot.ini here for your reference:
[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"