grub for dos总提示file not found(己解决)

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
联系:

grub for dos总提示file not found(己解决)

#1

帖子 132811 » 2010-05-19 23:27

我用的是grub4dos-0.4.4-2009-01-11.zip。

我本来想利用grub for dos下的grldr引导ubuntu10.04(grldr由boot.ini引导)。
menu.lst里面我是这样写的:

代码: 全选

title Ubuntu10.04, kernel 2.6.32-21-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.32-21-generic root=/dev/sda9 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic

title /boot/grub/core.img
root (hd0,8)
kernel /boot/grub/core.img
boot
可是两个引导菜单进去后都没法引导成功,都是报file not found.
然后我按c进入命令行grub》,发现在命令行下用ls /就能找到东西,ls /home/,ls /boot/,ls /bin/就找不到任何东西了,也不报错误——file not found。
而我输入命令:root (hd0,8),help等命令都是正常的。
输入命令:kernel /boot/vmlinuz-2.6.32-21-generic root=/dev/sda9 ro quiet splash,会报:file not found。

grub for dos 怎么好多命令都不正常了呢?或者我是不明白这些命令的用法?
请高人指点。 :em06
上次由 132811 在 2010-06-07 16:56,总共编辑 1 次。
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: grub for dos总提示file not found(grub2下没问题)

#2

帖子 wangdu2002 » 2010-05-19 23:31

title g4ldr7grub2coreimg9ubuntu
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: grub for dos总提示file not found(grub2下没问题)

#3

帖子 onshoestring » 2010-05-19 23:34

代码: 全选

title Ubuntu 10.04
find --set-root --ignore-floppies --ignore-cd /boot/grub/core.img
kernel /boot/grub/core.img
boot
(hd0,8)这个分区不对。
/boot没有单独分区,用这个试试。单独分区就把上面两个地方的/boot删除。
如果grub2装到mbr,选这个菜单项会返回grub2菜单。
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
联系:

Re: grub for dos总提示file not found(grub2下没问题)

#4

帖子 132811 » 2010-05-20 23:50

二位提供的我都试过,还报:file not found!
(hd0,8)这个分区肯定是对的
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: grub for dos总提示file not found(grub2下没问题)

#5

帖子 onshoestring » 2010-05-21 1:57

grub4dos-0.4.4-2009-01-11.zip这个版本据说不支持ext4,下载:http://nufans.net/grub4dos/grub4dos-0.4 ... -10-16.zip
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
联系:

Re: grub for dos总提示file not found(grub2下没问题)

#6

帖子 132811 » 2010-05-21 13:06

太谢谢呢,当初我也想过可能是grldr,grldr下好多命令都不能正常访问EXT4分区。但是想0.4.4版本已经很新了呀!所以就没怀疑是它。

下载了新的grldr后,利用core.img能正常进入GRUB2(core.img可能是备份的grub2)了,利用以下代码也可以正常引导ubuntu了。

代码: 全选

title Ubuntu 10.04
find --set-root --ignore-floppies --ignore-cd /boot/grub/core.img
kernel /boot/vmlinuz-2.6.32-21-generic root=/dev/sda9 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
boot
:em06 以后再也不怕重装系统了!

另外,我在/boot/grub下

代码: 全选

boot.img
cdboot.img
core.img
diskboot.img
grldr.img
kernel.img
这些东西在系统崩溃时好像都可以用来作为系统引导。我看google grub2 doc教程上说boot.img可以这样用:

代码: 全选

   [boot loader]
    timeout=0
    default=c:\boot.img
     [operating systems]
    c:\boot.img="grub2"
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
联系:

Re: grub for dos总提示file not found(grub2下没问题)

#7

帖子 132811 » 2010-05-21 13:36

小弟写了点,XP与ubuntu引导修复的东东,希望大家批评指正,小弟尽量完善。
http://blog.csdn.net/ahui132811/archive ... 07476.aspx
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
cherry90
帖子: 1
注册时间: 2015-02-01 17:14
系统: RedHat 6.3

Re: grub for dos总提示file not found(己解决)

#8

帖子 cherry90 » 2015-02-01 17:25

楼主怎么解决的啊 我也是遇到同样的问题 root(hd0,9)老是提示 no such partition,可是我的盘符号明明是对的啊,我用的grub版本是0.97的,如果需要下载新版本的话要怎么做的,能不能给个具体操作步骤呢,刚接触Linux啥都不懂啊f
回复