11Jun
How to install Ubuntu from hard disk drive in the Win 7 without CD-ROM
Posted in Hard Drive Upgrade by manyuAt present, the main methods of operating system installation is through CD-ROM, then is the USB and hard disk mode, also there is the method to use the network to install OS. Most of the Linux-derived products can be installed on the hard disk, today i will share my experience about installing Ubuntu from hard disk drive in the Win 7 and without CD-ROM.
1, the installation source download
First of all hard disk installation requires a small tool grub4dos-0.4.3-2007-04-21.zip
Do not worry, this tool is small and better to use, do not be scared by its DOS characters inside.
Then download the Ubuntu image files.
http://releases.ubuntu.com/releases/.pool/ubuntu-9.04-desktop-i386.iso
Usually we only need to install this, of course, you can also download other image installation.
2, win 7 settings
Why i emphasize this part? because win 7 discarded many things of XP, such as C: boot.ini was discarded by win 7, the hard disk installation will need to add startup items, but the win 7 does not not has boot.ini, if we want to add startup items can only through bcdedit command.
It is not easily to use bcdedit, we have to start the administrator account. Win 7 other accounts have no permission to run the bcdedit, in addition to administrator, and the win 7 administrator user is locked by default, and if you want to open the administrator account, must be done the following operation.
On desktop, right click “My Computer” icon, out menu select “Manage”, then pop up a computer management interface, in the Computer Management tree select “System Tools -Local Users and Groups – Users “, then it will come out a user list on the right side, one of which is the administrator, right click administrator, select Properties to bring up the General tabbed interface with an” account disabled “check box, select the hook state and remove, and then switch users, you will see the login screenappeared administrator in win 7, and log on win 7 with administrator accounts, we can continue our installation.
Start installing ubuntu on hard drive under win 7
1, extract grub4dos, copy grldr and grldr.mbr of which two files to the C root directory.
2, use the virtual drive or winrar to open ubuntu-9.04-desktop-i386.iso, copy .disk and casper files to the root directory C , and then copy initrd.gz and vmlinuz files which are under casper folder to the root directory C.
3, run cmd, open a command prompt, followed the command prompt, type this command: * bcdedit / create / d “GRUB4DOS” / application bootsector
This command generates a guid print in cmd window, for example, my is (I 90e14995-d284-11de-a325-a4ab4deca1b7).
* Bcdedit / set (90e14995-d284-11de-a325-a4ab4deca1b7) device partition = C:
This command is used to set boot partition of the start item just added, here i set up the C drive, because our documents are in the C drive.
* Bcdedit / set (90e14995-d284-11de-a325-a4ab4deca1b7) path grldr.mbr
Set the startup file.
* Bcdedit / displayorder (90e14995-d284-11de-a325-a4ab4deca1b7) / addlast
This is only used to set the start item we just increased into the back of the other startup items.
* Use bcdedit / enum to examine, you will see the start item configuration.
Real mode boot sector
Identifier {90e14995-d284-11de-a325-a4ab4deca1b7}
device partition=C:
path \grldr.mbr
description GRUB4DOS
Under the root directory C create new menu.lst file, use Notepad to open and copy the following content and save:
color black/cyan yellow/cyan
timeout 30
default /default
title Install Ubuntu
root (hd0,0)
kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04RC-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8
initrd (hd0,0)/initrd.gz
Copy the . Iso file downloaded to the root directory of U disk, and change the name to ubuntu-9.04RC-desktop-i386.iso (and the same as menu.lst ), and change the iso file on the hard disk into the other name, this step is important, it is said to use iso files of hard disk to install will appear can not uninstall / cdrom error, so it’s better to copy it to the U disk.
Disconnect the U disk, restart, select GRUB4DOS, insert U disk, and then select Install Ubuntu, it can be installed, as for the detailed how to install, follow the wizard to go.
After installed, remove the startup item bcdedit generated
bcdedit / delete (90e14995-d284-11de-a325-a4ab4deca1b7) / f
Now we installed Ubuntu from a hard disk drive in the win 7. Optimize Ubuntu Performance Improve Ubuntu Boot Speed



