Install Linux from Hard Disk on Windows7

===============================================
Centos 5.5
===============================================
Windows7 is install on C:.

First download grub4dos. I have used 0.4.4. Extract grub4dos-0.4.4.zip and copy
grldr, grldr.mbr and grub.exe to C:.

Download CentOS-5.5-i386-bin-DVD.iso. Find vmlinuz and initrd.img in isolinux
folder and copy them to C:.

Create menu.lst file in C:.

color black/cyan yellow/cyan
timeout 30
default /default
title Microsoft Windows 7
root (hd0,1)
savedefault
makeactive
chainloader +1
title Install CentOS 5.5
root (hd0,1)
kernel (hd0,1)/vmlinuz
initrd (hd0,1)/initrd.img


hd0.1 denotes the first partition in the first hard disk. Since Windows7 creates
100M partition before windows7 system partion. hd0.1 is used. If there is not
such a 100M partion, hd0.0 should be used.

-----------------------------------
| 100M | windows7 partion | other |
-----------------------------------

Open a command line with admistrator rights. Type

bcdedit /create /d "GRUB4DOS" /application bootsector

Copy the GUID. The GUI is used in the following three commands.

bcdedit /set {GUID} device partition=C:
bcdedit /set {GUID} path \grldr.mbr
bcdedit /displayorder {GUID} /addlast

Copy CentOS-5.5-i386-bin.iso to the root folder of a FAT32 partition. In my
case, it is D:. I don't know whether NTFS works and whether the iso can be placed in
a folder other than the root.

Reboot machine. Choose GRUB4DOS. Then chose Install CentOS 5.5. Choose Hard Disk
when be asking for installation media (The installation also recognized
partitions on a USB hard disk). Then choose the partion which contains the iso.
In my case, it is /dev/sda5.
http://wenku.baidu.com/view/222ae33383c4bb4cf7ecd180.html is a good explanation
of the mapping between Windows partition naming and linux partition naming.
Input / as the folder which contains the iso. After doing this, the following
steps are similar
to the installation from CD/DVD. During the installation, just make sure that
window7 installation are recognized by linux GRUB.

During the installtion,
http://blog.csdn.net/crystony/archive/2010/05/21/5613586.aspx helps me a lot.
Thanks to the author.

===============================================
Ubuntu
===============================================
Copy ubuntu-10.04-desktop-i386.iso to C:.

memu.list

color black/cyan yellow/cyan
timeout 30
default /default
title Microsoft Windows 7
root (hd0,1)
savedefault
makeactive
chainloader +1
title Install Ubuntu
root (hd0,1)
kernel (hd0,1)/vmlinuz boot=casper iso-scan/filename=/ubuntu-10.04-desktop-i386.iso ro quiet splash
initrd (hd0,1)/initrd.lz

Everything else is similar to the installation of Centos 5.5.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值