无忧启动论坛

标题: grub4dos大神请进!!!!!!!!!!!!!! [打印本页]

作者: Carlwolf    时间: 2013-9-19 17:06
标题: grub4dos大神请进!!!!!!!!!!!!!!
本人最近玩多系统,成功引导了xp,w7,w8,由于不熟悉linux启动过程,搜了很多教程无法引导ubuntu-12.04.3-desktop-amd64,求模板加载什么文件,或者怎么成功引导ubuntu的grub2来实现linux的引导。
timeout 255

gfxmenu /option/message

title 【1】启动本地 Windows XP
find --set-root /ntldr
chainloader /ntldr

title 【2】启动本地 Windows 7
find --set-root /bootmgr
chainloader /bootmgr

title 【3】启动本地 Windows 8
map /W8LOAD.IMG (fd0)
map --hook
rootnoverify (fd0)
chainloader (fd0)+1
chainloader /bootmgr

title 【4】启动本地 Ubuntu
title 【5】重启计算机
reboot

title 【6】关闭计算机
halt

作者: 2010dewuyou    时间: 2013-9-19 17:16
title 【4】启动本地 Ubuntu
kernel /boot/bzImage vga=normal autologin
initrd /boot/rootfs.gz
蓝字部分可以不要
作者: Carlwolf    时间: 2013-9-19 17:30
2010dewuyou 发表于 2013-9-19 17:16
title 【4】启动本地 Ubuntu
kernel /boot/bzImage vga=normal autologin
initrd /boot/rootfs.gz

不行的,你的rootfs需要另外调用吧,提示找不到文件..................
作者: 2010dewuyou    时间: 2013-9-19 17:49
title Ubuntu
kernel /casper/vmlinuz
initrd /casper/initrd.gz
boot
文件名和路径自己看着办,关键是命令
作者: 2011cwj6958    时间: 2013-9-19 18:10
本帖最后由 2011cwj6958 于 2013-9-19 18:12 编辑

title  全解压引导 ubuntu-12.04.3-desktop-amd64 LiveCD
kernel /casper/vmlinuz.efi boot=casper file=/cdrom/preseed/ubuntu.seed ro quiet splash locale=zh_CN.UTF-8
initrd /casper/initrd.lz

title  半解压引导 ubuntu-12.04.3-desktop-amd64 LiveCD
kernel /ubuntu/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-12.04.3-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8
initrd /ubuntu/initrd.lz
以上是系统文件放在grldr和grldr.mbr相同磁盘的情况,系统文件可以放在另外的磁盘

作者: 2011cwj6958    时间: 2013-9-19 18:16


SYSLINUX引导

label LINUX LIVE
menu label ^Try ubuntu-12.04.3-desktop-amd64 LiveCD

kernel /casper/vmlinuz.efi
  append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --
作者: 2012test3    时间: 2013-9-19 23:58
调用/boot/grub/core.img进行引导可以进入Ubuntu的grub2界面选择
作者: jestercn    时间: 2013-9-20 21:29
还是用grub2调用 /boot/grub/grub.cfg方便,不然提取里面引导的命令




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3