当前位置: 技术问答>linux和unix
看看我的grub.conf写的对吗?
来源: 互联网 发布时间:2016-01-18
本文导语: # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # ...
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
#以下是我写的
title Fc5(2.6.15-lids-2.2.1)
root (hd0,0)
# kernel /bzImage-lids-2.2.1-2.6.11 ro root=/dev/sda1
kernel /bzImage-lids-2.2.1-2.6.11 ro root=LABEL=/ rhgb quiet
#结束
我在启动画面里选择第二个系统,不能启动起来。显示:
uncompressing linux ...ok,booting the kernel.
kernel panic - not syncing:vfs:unable to mount root fs on unknown-block(0,0)
|
kernel /bzImage-lids-2.2.1-2.6.11 root=/dev/hda1 ro
|
试试楼上的方法。
|
是不是内核没有编译好啊
|
最好用个相同的对应的版本来