- 论坛徽章:
- 0
|
原先的系统是redhat as3,虚拟机上安装,内核版本为2.4.21-4.EL,后来升级到2.6.10,升级过程安http://www.xxlinux.com/linux/art ... el/20051125/96.html中的步骤,在安装mkinitrd 、lvm2 device-mapper 、i386.rpm 时安装不了,后来都改为rpm -ivh --nodeps package name ,加多了--nodeps后安装没有出现问题。一直编译到升级完,没有出现错误,查看升级完成后的grub如下:
# 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=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.6.10)
root (hd0,0)
kernel /vmlinuz-2.6.10 ro root=LABEL=/
initrd /initrd-2.6.10.img
title Red Hat Enterprise Linux AS (2.4.21-4.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /initrd-2.4.21-4.EL.img
重新启动后,进入2.6.10,错误如下:
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)
把kernel /vmlinuz-2.6.10 ro root=LABEL=/ 改为kernel /vmlinuz-2.6.10 ro root=/dev/sda1 或者把root=LABEL=/ 去掉还是同样错误,不知道什么原因,知道的可不可以告知,谢谢!! |
|