如何为新编译的内核设置 grub.conf

如何为新编译的内核设置 grub.conf

我按照此处的说明在 Linux 2.6.15 上安装了 MPLS: http://www.sj.ifsc.edu.br/~msobral/RCO2/docs/mpls-linux/1-3-installation.html 一切正常,但我不知道如何设置 grub.conf 以便它运行新内核。这是当前的 grub.conf:

default=1
timrout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title MPLS
      root (hd0,0)
      kernel /vmlinuz-2.6.15 ro root=LABEL=/1 hda=ide-scsi hdc=ide-scsi
      initrd /initrd-2.6.15.img
title CentOS-3 (2.4.21-50.EL)
      root (hd0,0)
      kernel /vmlinuz-2.4.21-50.EL ro root=LABEL=/ hda=ide-scsi hdc=ide-scsi
      initrd /initrd-2.4.21-50.EL.img

这是我启动 MPLS 时收到的错误:

insmod: QM_MODULES:

ERROR: /bin/insmod exited abnormally!
Creating block devices
VFS: Cannot open root device "LABEL=/" or unknown-block(0,0)
Please append a correct "root" boot option
Kernel panic - not syncing : VFS: Unable to mount root fs on unknown-block(0,0)

有任何想法吗?

相关内容