首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级的Redhat Linux内核在引导时给内核带来恐慌。

升级的Redhat Linux内核在引导时给内核带来恐慌。
EN

Stack Overflow用户
提问于 2014-08-22 21:20:36
回答 1查看 5K关注 0票数 0

我试图在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内核。如果有可能的话,我的过程有什么问题?

========

代码语言:javascript
复制
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有以下内容。

代码语言:javascript
复制
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-63 ro root=LABEL=/ rhgb
initrd /boot/initrd-2.6.32-63.img
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-27 20:57:39

感谢所有的帮助和评论,我能够自己回答。

这就是我试过但失败的地方。区分旧和新的initrd (gunzip \ cpio)。安装了不同的模块,但它们并不重要。我禁用了可加载的模块(所有内置的),问题依然存在。我编译了busybox并将其放入initrd (编辑/init)中,得到了一个shell。在那里,我可以手动地挂载文件系统,但在切换根时仍然会引起内核的恐慌。

最后我找到了。它对这个问题有一个更好的描述和解决方案。启用“不推荐的sysfs”,并且都是固定的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25455700

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档