您的位置:程序门 -> linux/unix社区 -> 内核及驱动程序研究区



我要疯掉了!我也不知道错在哪里?向大家求救,请帮帮忙!!谢谢,谢谢!


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


我要疯掉了!我也不知道错在哪里?向大家求救,请帮帮忙!!谢谢,谢谢![已结贴,结贴人:cyberhunk]
发表于:2007-06-04 15:22:33 楼主
我现在的使用的是xp、linux   ws4(2.6.9-5),下了一个内核(2.6.22-rc3)准备升级,解压保存在/usr/src/kernel/里了。

运行命令如下:
#make   xconfig     (这里我只选了个cpu型号为p4和支持ntfs,其他都是默认没有改动)

#make   clean

#make   dep

#make   bzimage

#make   modules

#make   modules_install

#make   install

#reboot   后在grub启动项里出现新升级的内核(2.6.22-rc3)运行之后如下:

booting   'redhat   enterprise   liunx[ws.2.6.22-rc3] '
root   (hd0,2)
filesystem   type   is   ext2fs.   partition   type   0x83
kernel     /vmlinuz-2.6.22-rc3   ro   root   =   /dev/volgroup00/logvol00   rhgb   quiet

[liunx_bzimage   ,   setup   =   0x1e00   ,   size   =   0x181d20]
initrd   /initrd-2.6.22-rc3.img
[linux_initrd@0x1f632000,0xed48e   bytes]

uncompressing   linux...ok   ,   booting   the   kernel
redhat   nash   version   4.1.18   starting
file   descriptor   3   left   open
reading   all   physical   volumes.   this   may   take   a   while

/dev/hdd   :   open   failed   :   no   medium   found
found   volume   group   "volgroup00 "   using   metadata   type   lvm2
file   descriptor   3   left   open
2   logical   volume(s)   in   volume   group   "volgroup "   now   active
file   descriptor   3   left   open
enforcing   mode   requested   but   no   policy   loaded   halting   now

kernel   panic     -not   syncing   :   attempted   to   kill   init!

然后就没反应了!看意思好像是没找到磁盘,查资料上面太杂而且版本都是2.4的和这个也对不号,这个问题折腾我一上午了,请大家帮忙!谢谢,谢谢!
发表于:2007-06-04 15:23:121楼 得分:0
我看资料上说需要将新内核和system.map文件拷贝到boot目录下,我查看一下路径对不上,资料中提到/boot里会出现新内核的一个子目录,但在我这里没有啊!而且感觉也好像不是这的问题。

同事以前升过,直接运行:
#make   clean   dep   bzimage
#make   modules   modules_install
#reboot后就成功了没象我这么费劲
发表于:2007-06-04 16:31:042楼 得分:0
不懂,   帮你顶了,   等高人
发表于:2007-06-04 17:01:243楼 得分:0
你编译的时候有没有把   fs-> ext2   device   drivers--> scsi--> buslogic   series   ata(sata)support   选中,因为如果你的是串口硬盘,不加进去是不认的.你试一下,我原来编译也很不顺,用了一两周.
发表于:2007-06-05 14:26:204楼 得分:0
不是串口的~~又实验了n种方法,手动cp、手动ln、手动建立启动项、重新设置root指向、尝试设置kernel启动参数到最后从新编译内核、我不行了!

天呐~~告诉我原因!!
发表于:2007-06-05 18:29:245楼 得分:0
是不是因为你的新内核的vmlinuz文件没放在boot下?
发表于:2007-06-06 08:57:506楼 得分:0
楼上~~./boot下所有必要的内核文件齐全
发表于:2007-06-06 10:17:127楼 得分:50
跟system.map无关。

改grub,禁用enforcing(enforcing=0)。
如:
kernel   /vmlinuz-2.6.22-rc3   ro   root=/dev/volgroup00/logvol00   rhgb   quiet   enforcing=0
发表于:2007-06-06 10:21:088楼 得分:0
如果不了解什么是selinux,就建议不要用selinux,否则还会遇到其他问题。
直接反安装得了:
#   rpm   --remove   $(   rpm   -qa   ¦   grep   selinux   )
发表于:2007-06-06 11:49:039楼 得分:0
问题刚解决掉,我把selinux给disable掉了~~这个enforcing   =   0

在selinux/config   我看到selinux   =   enforcing     在grub里设置enforcing应该和这个差不多吧~
都是对selinux做了修改


快速检索

最新资讯
热门点击