Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
升级的Redhat Linux内核在引导时导致内核死机_Linux_Kernel_Redhat_Panic_Initrd - Fatal编程技术网

升级的Redhat Linux内核在引导时导致内核死机

升级的Redhat Linux内核在引导时导致内核死机,linux,kernel,redhat,panic,initrd,Linux,Kernel,Redhat,Panic,Initrd,我正在尝试在RHEL 5.10 32位2.6.18内核上使用新的内核2.6.32。32内核是从kernel.org下载的,没有通过Redhat进行修补。我知道这很愚蠢,但是升级到RHEL 6对我们来说不是一个选择 我确实做了menuconfig;制作制作模块;制作和安装模块;制作安装;重新启动。然后我有一个内核恐慌。我从源代码构建了2.6.18内核,无论是否使用redhat补丁。两者都很好 我的问题是,是否可以将2.6.32内核与RHEL 5.10安装2.6.18中的所有文件系统和库一起使用。如

我正在尝试在RHEL 5.10 32位2.6.18内核上使用新的内核2.6.32。32内核是从kernel.org下载的,没有通过Redhat进行修补。我知道这很愚蠢,但是升级到RHEL 6对我们来说不是一个选择

我确实做了menuconfig;制作制作模块;制作和安装模块;制作安装;重新启动。然后我有一个内核恐慌。我从源代码构建了2.6.18内核,无论是否使用redhat补丁。两者都很好

我的问题是,是否可以将2.6.32内核与RHEL 5.10安装2.6.18中的所有文件系统和库一起使用。如果可能的话,那么我的流程有什么问题

========

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

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

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


最后我找到了。它对问题有更好的描述和解决方案。启用不推荐使用的sysfs,它将全部修复。

1。升级到香草内核有什么具体原因吗?我相信RHEL5.10仍在接受Redhat的更新。2.乍一看,您的initrd似乎有问题……我们需要2.6.32中的xhci驱动程序来支持USB3.0,后端口并不简单。initrd也是我的猜测,但我不知道从哪里开始。一个开始的地方是将旧的和新的initrd解包,并排比较。它可能只是一个丢失或重命名的模块…可能这可以帮助你,完成这一次,
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-63 ro root=LABEL=/ rhgb
initrd /boot/initrd-2.6.32-63.img