求grub4dos引导ubuntu9.04的menu代码

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
低调
帖子: 25
注册时间: 2008-09-19 22:12

求grub4dos引导ubuntu9.04的menu代码

#1

帖子 低调 » 2009-05-18 13:44

grub4dos写入mbr引导windows和ubuntu8.04很正常
昨天刚装上9.04,用以前写的menu(8.04的)引导不了系统,提示记得是 file not found
谁能给个引导9.04的代码,谢谢。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求grub4dos引导ubuntu9.04的menu代码

#2

帖子 smallapple » 2009-05-18 14:00

title Ubuntu 9.04
root (hd0,8)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda9 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04 (Recovery Mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda9 ro single
initrd /boot/initrd.img-2.6.28-11-generic
低调
帖子: 25
注册时间: 2008-09-19 22:12

Re: 求grub4dos引导ubuntu9.04的menu代码

#3

帖子 低调 » 2009-05-18 17:25

smallapple 写了:title Ubuntu 9.04
root (hd0,8)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda9 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04 (Recovery Mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda9 ro single
initrd /boot/initrd.img-2.6.28-11-generic
提示bad file or directory type
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 求grub4dos引导ubuntu9.04的menu代码

#4

帖子 adagio » 2009-05-18 17:38

别人的东西你照搬上去怎么可以?
至少把root (hd0,8)这里改成你的啊

代码: 全选

root (hd0,8)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda9 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
这些都要改
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
32idea
帖子: 1251
注册时间: 2006-12-15 9:32
系统: linux

Re: 求grub4dos引导ubuntu9.04的menu代码

#5

帖子 32idea » 2009-05-18 17:40

把你UBUNTU系统里的 /boot/grub/menu.lst 中的启动项复制过来就行,或者直接就把该文件拷过来代替grub4dos的menu.lst。(需用grub4dos0.44的最新更新版)
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求grub4dos引导ubuntu9.04的menu代码

#6

帖子 smallapple » 2009-05-18 18:44

代码: 全选

title ubuntu
find --set-root /boot/grub/menu.lst
configfile /boot/grub/menu.lst
低调
帖子: 25
注册时间: 2008-09-19 22:12

Re: 求grub4dos引导ubuntu9.04的menu代码

#7

帖子 低调 » 2009-05-18 19:35

我改成我的盘了,不行啊。
liveCD进系统 /boot/ 下没有 vmlinuz-2.6.28-11-generic
低调
帖子: 25
注册时间: 2008-09-19 22:12

Re: 求grub4dos引导ubuntu9.04的menu代码

#8

帖子 低调 » 2009-05-18 20:16

啊!有vmlinuz-2.6.28-11-generic,刚才看错了。
我把(hd0,8)这里和root=/dev/sda9这里都改成我的盘了。还是出错,Error 2: Bad file or directory type
低调
帖子: 25
注册时间: 2008-09-19 22:12

Re: 求grub4dos引导ubuntu9.04的menu代码

#9

帖子 低调 » 2009-05-18 22:15

32idea 写了:把你UBUNTU系统里的 /boot/grub/menu.lst 中的启动项复制过来就行,或者直接就把该文件拷过来代替grub4dos的menu.lst。(需用grub4dos0.44的最新更新版)
我下了个最新版的grub4dos,行了。呵呵
谢谢

不过中文菜单成乱码了。。。
回复