Re: windows下添加ubuntu引导 教程
发表于 : 2012-08-16 15:51
我的第三种方法怎么有问题呢,用过那种方法后,还是先进入grub的界面,选择win7后又进入win7的选择win7和ubuntu的界面,
额你说的我怎么看不明白……wangjiuqian 写了:我的第三种方法怎么有问题呢,用过那种方法后,还是先进入grub的界面,选择win7后又进入win7的选择win7和ubuntu的界面,
menu.lst最上面,添加lhchp 写了:谢谢,用楼主的第一种方法成功引导。
请问能不能在menu.lst中加些代码,使它能自动进入ubuntu?
qy117121 写了:由于各种不同的原因……
1.在Windows上使用WinHEX,Tools->Open Disk,选择Physical Media中的硬盘,选中Ubuntu分区,Edit->Copy Sector->Into New File,保存到C盘根目录,文件名 Ubuntu.bin
2.命令行: bcdedit /create /d “Ubuntu 12.04″ /application bootsector
3.复制返回的那个{GUID}号,例如{798718923-7891274-。。。}之类的
4. bcdedit /set {GUID} device partition=C:
5. bcdedit /set {GUID} path \Ubuntu.bin
6. bcdedit /displayorder {GUID} /addlast
代码: 全选
title 1. Ubuntu 12.04 LTS
root (hd0,7)
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
title 2. Win7 PE 精简版
root (hd0,4)
find --set-root --ignore-floppies --ignore-cd /boot/lqmgr
chainloader /boot/lqmgr
title 3. 蹭网专用XiaopanOS 0.4.1
root (hd0,4)
find --set-root /boot/xiaopanos/boot/vmlinuz
kernel /boot/xiaopanos/boot/vmlinuz quiet core tce=sda5/boot/xiaopanos/cde tz=GMT+8 lang=zh_CN.utf8 showapps mydata=xiaopan waitusb=4
initrd /boot/xiaopanos/boot/core.gz
title 4. MaxDOS 9.1 工具箱
root (hd0,4)
map --mem /BOOT/MaxDOS/MAXDOS.IMG (fd0)
map --hook
rootnoverify (fd0)
chainloader +1
title 5. 默认硬盘启动
find --set-root --ignore-floppies --ignore-cd /ntldr || find --set-root --ignore-floppies --ignore-cd /bootmgr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /ntldr || find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /ntldr || chainloader /bootmgr
title 6. 安装 Ubuntu
root (hd0,0)
kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu-12.04-desktop.iso ro quiet splash locale=zh_CN.UTF-8
initrd (hd0,0)/initrd.lz