WIN7下硬盘安装Ubuntu 12.04
WIN7下硬盘安装Ubuntu 12.04
Win7系统下硬盘安装Ubuntu 12.04可参照如下步骤:
1.
2.
3.
title Install Ubuntu
root (hd0,1)
kernel (hd0,1)/vmlinuz boot=casper iso-scan/filename=/ubuntu-12.04-beta1-desktop-i386.iso ro quiet splash locale=en_US.UTF-8
initrd (hd0,1)/initrd.lz
bcdedit /create /d "GRUB4DOS" /application bootsector
该命令结果应该会返回一个GUID,后面的命令用到这个GUID
bcdedit /set {GUID} device partition=C:
bcdedit /set {GUID} path \grldr.mbr
bcdedit /displayorder {GUID} /addlast
4.
5.
命令,以取消对光盘所在驱动器的挂载,否则分区界面找不到分区。
6.
#“#”号后的内容为注释
#此选项会自动搜索ubuntu启动程序,但启动速度较慢,sda8是在分区的时候得到的
title Ubuntu 12.04
root (hd0,11)
#search --no-floppy --fs-uuid --set /dev/sda12
kernel /vmlinuz-3.2.0-19-generic-pae root=/dev/sda8
initrd /initrd.img-3.2.0-19-generic-pae
boot
#此项直接找到启动程序,从而启动ubuntu,但要知道引导程序在哪个区,本文是在sda11
title Grub2 Boot
root (hd0,11)
find --set-root /grub/core.img
kernel /grub/core.img
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.bkjia.com/topicnews.aspx?tid=2
评论暂时关闭