我试图在RHEL 5.10 32位(2.6.18内核)上使用一个新内核(2.6.32)。.32内核是从kernel.org下载的,而不是由Redhat修补的。我知道这是愚蠢的,但是升级到RHEL 6对我们来说不是一个选择。
我做了make menuconfig; make; make modules; make modules_install; make install; reboot。然后我有了一种内核恐慌。我从源代码构建了2.6.18内核,不管是用红帽修补还是不用红帽修补。两人都工作得很好。
我的问题是,是否可以在RHEL5.10安装(2.6.18)中的所有文件系统和库中使用2.6.32内核。如果有可能的话,我的过程有什么问题?
========
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: Nosuch file or dirctory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: init Not tainted 2.6.32.63 #1
Call Trace:
[<c0xxxxxx>] ? panic
[<c0xxxxxx>] ? do_exit
[<c0xxxxxx>] ? do_group_exit
[<c0xxxxxx>] ? sys_exit_group
[<c0xxxxxx>] ? syscall_call我的/boot/grub/grub.conf有以下内容。
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-63 ro root=LABEL=/ rhgb
initrd /boot/initrd-2.6.32-63.img发布于 2014-08-27 20:57:39
感谢所有的帮助和评论,我能够自己回答。
这就是我试过但失败的地方。区分旧和新的initrd (gunzip \ cpio)。安装了不同的模块,但它们并不重要。我禁用了可加载的模块(所有内置的),问题依然存在。我编译了busybox并将其放入initrd (编辑/init)中,得到了一个shell。在那里,我可以手动地挂载文件系统,但在切换根时仍然会引起内核的恐慌。
最后我找到了这。它对这个问题有一个更好的描述和解决方案。启用“不推荐的sysfs”,并且都是固定的。
https://stackoverflow.com/questions/25455700
复制相似问题