LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 719|回复: 14

Grub不知出什么问题了,请高手指点

[复制链接]
发表于 2005-3-13 10:00:04 | 显示全部楼层 |阅读模式
昨晚正常关机,今早启动时,不知为什么进入>grub
    >grub root (hd0,5)
    >grub kernel (hd0,5)/boot/vmlinuz root=/dev/hda5
    >grub boot
    于是开始自检,但是最后到:
   Kernel panic:VFS:Unable to mount root fs on 03:05
    时,系统处于死机状态,键盘上的三个LED不住的闪烁。
   请问各位大虾,这是什么原因,我该如何处理?
   
    谢谢
发表于 2005-3-13 10:25:56 | 显示全部楼层
用root=/dev/hda6试试看

你的根分区在hd0,5 还是 hda5 ?
回复 支持 反对

使用道具 举报

发表于 2005-3-13 10:28:49 | 显示全部楼层
如果根分区在hda5,那么应该用

>grub kernel (hd0,4)/boot/vmlinuz root=/dev/hda5
>grub boot
回复 支持 反对

使用道具 举报

发表于 2005-3-13 10:56:08 | 显示全部楼层
确保根设备真确,ro root=LABEL=/
回复 支持 反对

使用道具 举报

发表于 2005-3-13 15:51:28 | 显示全部楼层
Post by shenhanchinese
确保根设备真确,ro root=LABEL=/


这个只对 rh的linux或/的标识符 为/的才有用吧!
还是用设备名的方式保险
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-13 16:09:57 | 显示全部楼层
我的根分区是在hda5

我使用了 kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 系统提示:cannot mount selected partition
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-13 16:16:33 | 显示全部楼层
Post by shenhanchinese
确保根设备真确,ro root=LABEL=/


这个命令怎么用,说详细点好吗?我是一个新手,谢谢
回复 支持 反对

使用道具 举报

发表于 2005-3-13 16:46:04 | 显示全部楼层
就是用 root=LABEL=/ 替换 root=/dev/hda5
回复 支持 反对

使用道具 举报

发表于 2005-3-13 21:02:57 | 显示全部楼层
没有说明所使用的系统,假设是redhat/fedora

grub> root (hd0, 按Tab键,先查看分区
0x83 ext3分区 0x82交换分区
如果没有单独的boot分区,找到根分区,
grub> root (hd0,4)         
grub> cat /boot/grub/grub.conf
查看配置文件,然后仿照配置文件的内容
grub> kernel /boot/vmlinuz-xxx ro root=/dev/hda5
grub> initrd /boot/initrd-xxx.img
grub> boot
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-13 22:40:42 | 显示全部楼层
谢谢,我通过你的方法可以进入linux了
不过我还有一个问题,虽然我可以进入,但机子重启的时候,都会在grub>停止,还要手工,怎么回事?会不会是grub出错了
我进到系统里,查看grub.conf文件,显示我的/在(hd0,8),可是我的/分明是在(hd0,5)

请再次指点,谢谢

下面是grub.conf的内容    我已经将(hd0,8)改为(hd0,5)

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,8)
#          kernel /boot/vmlinuz-version ro root=/dev/hda9
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
        root (hd0,5)
        kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /boot/initrd-2.4.20-8.img
title WINDOWS XP
        rootnoverify (hd0,0)
        chainloader +1
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表