当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: 编译内核后,修改grub.conf 把kernel/vml
 

 

    摘要: 4257 squid 17 0 143m 143m 1344 s 20.2 7.1 294:45 squid 5 root 36 19 0 0 0 swn 16.5 0.0 219:41 ksoftirqd_cpu1 4 root 34 19 0 0 0 swn 15.3 0.0 241:01 ksoftirqd_cpu0 6 root 17 0 0 0 0 sw 5.9 0.0 101:44 kswapd 上边的列表是从top中复制的,我......
 ·朋友给的openmosix不敢独享    »显示摘要«
    摘要: 虽然都是mosix原理下的软件,但是互相是不能通讯的,因此一个集群系统里要统一使用一种平台因为mosix有另外的分支openmosix,相对简单,笔者推荐没有经验的初学者使用,下面是openmosix的安装和基于openmosix的客户端配置。注意:mosix和openmosix虽然都是mosix原理下的软件,但是互相是不能通讯的,因此一个集群系统里要统一使用一种平台。openmosix是使用rpm为安装包的,事实上只是把编译好的内核直接挂接到系统里......


编译内核相关问题....

编译内核后,修改grub.conf 【相关文章:实用技巧:sys 请求——内核严重错误?

【扩展阅读:Unix优秀电子书籍下载

把kernel /vmlinuz-2.4.20-8 ro root=label=/ 【扩展信息:如何恢复grub?

改成了kernel /bzimage ro root=label=/boot

重新启动后碰到这个问题

kernel panic: vfs: unable to mount root fs on 00:00

停在这里不动了....进不了系统...

平台

win2k+vmware4.0+rh9.0+scsi

 双眼皮的猪 回复于:2003-10-28 11:15:03 没办法:

我把grub.conf改回去了,改成:

title redhat

kernel /vmlinuz-2.4.20-8 ro root=label=/

initrd /initrd-2.4.20-8.img

这样就可以启动....

但是我改成

title redhat

kernel /bzimage ro root=label=/ 

initrd /initrd-2.4.20-8.img

或者

kernel /bzimage ro root=label=/

no initrd

都不行...我确定bzimage我已经放到/boot里边而且与vmlinuz-2.4.20-8是一个文件夹里,路径应该没有问题,那这个是编译出来的内核有问题吗?

都会出现

kernel panic : vfs :unable to mount root fs on 00:00

 双眼皮的猪 回复于:2003-10-28 11:32:17 修改成

kernel /bzimage ro root=label=/dev/sda

initrd /initrd-2.4.20-8.img

kernel /bzimage ro root=label=/

no initrd

依然不行,还是老问题...

继续尝试...

顶....

考虑initrd.img的问题:

带参数执行/sbin/mkinitrd就可以创建新的initrd映相:: 

        /sbin/mkinitrd /boot/newinitrd-image 2.0.12

/boot/newinitrd-image是新生成映相的文件名,而2.0.12表示您要在initrd中使用该版本核心

的相应的模组驱动程序(位于/lib/modules)(但并非得用与当前核心版本一致的模组

驱动程序) 

于是我制作了一个initrd

mkinitrd /boot/custominitrd.img 2.4.20-8

ps:2.4.20-8是将要寻找模块的地方:)

然后我在grub.conf里边指定custominitrd.img,重新启动,

仍旧失败...

我又起用我的/lib/modules目录底下的2.4.20-8custom(我编译后的模块)

mkinitrd /boot/custominitrd2.img 2.4.20-8custom

出错提示:

no module buslogic found for kernel 2.4.20-8custom

ps:

buslogic是scsi的驱动...

 双眼皮的猪 回复于:2003-10-28 12:04:38 比较两个文件夹

ls -r 2.4.20-8 > 1

ls -r 2.4.20-8custom > 2

diff 1 2 > different

vi different

 双眼皮的猪 回复于:2003-10-28 12:34:08 顶一下,不然高手们来了看不到了....

 cau_eric 回复于:2003-10-28 13:01:50 编译内核后只要make install就可以了!

 双眼皮的猪 回复于:2003-10-28 13:02:54 哦,谢谢,是漏掉这一步了吗?

 双眼皮的猪 回复于:2003-10-28 13:08:42 make install最后出错,出错提示是:

no module buslogic found for kernel 2.4.20-8custom

mkinitrd failed

make[1]:*** [install] error 1

make[1]:leaving directory `/usr/src/linux-2.4.20-8/arch/i386/boot`

make *** [install] error 2

看来我编译好的内核少某些模块是不是??

 cau_eric 回复于:2003-10-28 13:14:12 `/usr/src/linux-2.4.20-8/arch/i386/boot

你是不是把内核给移走了?

 cau_eric 回复于:2003-10-28 13:17:08 注意:编译内核步骤:

make mrproper

make menuconfig

make bzimage

make modules(若有模块的话)

make modules-install(若有模块的话)

make install

make clean(可有可无)

 双眼皮的猪 回复于:2003-10-28 13:35:07 因为就是怕这种问题出现,所以我怕我所敲的全部命令写出来,您看看:)

cd /usr/src

cp -i -r linux-2.4.20-8/ linux.old

cp /boot/vmlinuz-2.4.20-8 /usr/src/vmlinuz.old

cd linux-2.4.20-8

make mrproper

make menuconfig

这里把config存到/usr/src/kernel1

make dep

make clean

make bzimage

cd /usr/src/linux-2.4.20-8/arch/i386/boot

mv bzimage /boot  (是不是这里给移走了啊)

make modules

make modules_install

make install就跟上边的那样出错....这样出错:

[b:6f39a89979]no module buslogic found for kernel 2.4.20-8custom 

mkinitrd failed 

make[1]:*** [install] error 1 

make[1]:leaving directory `/usr/src/linux-2.4.20-8/arch/i386/boot` 

make *** [install] error 2 [/b:6f39a89979]

 cau_eric 回复于:2003-10-28 13:38:46 cd /usr/src 

cp -i -r linux-2.4.20-8/ linux.old 

cp /boot/vmlinuz-2.4.20-8 /usr/src/vmlinuz.old 

cd linux-2.4.20-8 

make mrproper 

make menuconfig 

这里把config存到/usr/src/kernel1 

make dep 

make clean 

make bzimage 

对,这个时候就接着编译就行了!

 双眼皮的猪 回复于:2003-10-28 13:43:20 i will compile the kernel again....

take your time...

theres something wrong with my chinput....

 faquirsun 回复于:2003-10-28 13:58:28 我在redhat 8.0上编译过2.4.22的内核,基本上按照手册上的步骤,编译过程没有问题,最后在修改grub.conf文件上面出现问题

我按照原来的写法,在grub.conf中新加了一个启动项,

title redhat

root(0,0)

kernel /vmlinuz-2.4.22  ro root=label=/ 

initrd /initrd-2.4.222.img 

重启后系统报错。但是修改成:

kernel /vmlinuz-2.4.22  ro root=/dev/hda2

就可以了

我一直不明白,为什么不能使用label=/的写法,也没找到资料。

 双眼皮的猪 回复于:2003-10-28 14:01:25 在grub.conf里边

/代表的是系统中的/boot

我个人这么认为。。。。


...   下一页
 ·[redhat9] 关于在线更新    »显示摘要«
    摘要: 我的redhat9在线更新出了问题,总是注册不上去。 不知道是为什么? frankzh 回复于:2003-10-14 14:42:46 试apt 不需要注册 teshufu 回复于:2003-10-14 15:04:19 不注册的话,更新不了redhat的程序。 在运行“在rhn注册”的界面——》“把档案信息发送给red hat网络”时出错。 错误信息:problem registering username. 但......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE