当前位置: 技术问答>linux和unix
为什么内核升级后,还是显示旧内核的信息啊?
来源: 互联网 发布时间:2015-07-24
本文导语: ... #make dep #make clean #make zImage #make bzImage #make modules #make modules_install #depmod -a #cp /usr/src/linux/System.map /boot/System.map-2.4.0test8 #cp /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-2.4.0test8 #cd /boot;rm -f System.map vmlin...
...
#make dep
#make clean
#make zImage
#make bzImage
#make modules
#make modules_install
#depmod -a
#cp /usr/src/linux/System.map /boot/System.map-2.4.0test8
#cp /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-2.4.0test8
#cd /boot;rm -f System.map vmlinuz
#ln -s vmlinuz-2.4.0test8 vmlinuz
#ln -s System.map-2.4.0test8 System.map
#shutdown -r now
做完以上的步骤了,为什么启动后,输入# uname -a后,还是没有显示新的内核信息啊?
请高手指点啊!!
#make dep
#make clean
#make zImage
#make bzImage
#make modules
#make modules_install
#depmod -a
#cp /usr/src/linux/System.map /boot/System.map-2.4.0test8
#cp /usr/src/linux/arch/i386/bzImage /boot/vmlinuz-2.4.0test8
#cd /boot;rm -f System.map vmlinuz
#ln -s vmlinuz-2.4.0test8 vmlinuz
#ln -s System.map-2.4.0test8 System.map
#shutdown -r now
做完以上的步骤了,为什么启动后,输入# uname -a后,还是没有显示新的内核信息啊?
请高手指点啊!!
|
You must add a title in the boot manger such as Grub (/boot/Grub/grub.conf);
Tip the kernel PATH, boot disk ,and init img file path.
Grub have many somthings to learn ,you can do it yourself. Just like the follow
example. 'default=1' point to 'title windows',you must understad 'root
(hdx,x)',Grub commands and other things .there have 6 system on the PC.
###########################################################################
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title FC2 (2.6.5-1.358)
root (hd0,6)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/12 rhgb quiet
initrd /boot/initrd-2.6.5-1.358.img
title windows
rootnoverify (hd0,0)
chainloader +1
title FC1-A-2.4 (2.4.22-1.2115.nptl)
root (hd0,10)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title FC1-2.6.8.1(2.6.8.1)
root (hd0,10)
kernel /boot/vmlinuz-2.6.8.1 ro root=/dev/hda11
title FC1-B-2.4 (2.4.22-1.2115.nptl)
root (hd0,7)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/1 rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title FC1-C-2.4(2.4.22-1.2197)
root (hd0,7)
kernel /boot/vmlinuz-2.4.22-1.2197.nptl_51.rhfc1.at ro root=/dev/hda8
initrd /boot/initrd-2.4.22-1.2197.nptl_51.rhfc1.at.img
################################################################################
Tip the kernel PATH, boot disk ,and init img file path.
Grub have many somthings to learn ,you can do it yourself. Just like the follow
example. 'default=1' point to 'title windows',you must understad 'root
(hdx,x)',Grub commands and other things .there have 6 system on the PC.
###########################################################################
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title FC2 (2.6.5-1.358)
root (hd0,6)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/12 rhgb quiet
initrd /boot/initrd-2.6.5-1.358.img
title windows
rootnoverify (hd0,0)
chainloader +1
title FC1-A-2.4 (2.4.22-1.2115.nptl)
root (hd0,10)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title FC1-2.6.8.1(2.6.8.1)
root (hd0,10)
kernel /boot/vmlinuz-2.6.8.1 ro root=/dev/hda11
title FC1-B-2.4 (2.4.22-1.2115.nptl)
root (hd0,7)
kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/1 rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img
title FC1-C-2.4(2.4.22-1.2197)
root (hd0,7)
kernel /boot/vmlinuz-2.4.22-1.2197.nptl_51.rhfc1.at ro root=/dev/hda8
initrd /boot/initrd-2.4.22-1.2197.nptl_51.rhfc1.at.img
################################################################################
|
如果你使用GRUB引导器,更改/boot/grub/grub.conf文件中的入口,以使用新的内核
如果你使用LILO引导器,更改/etc/lilo.conf(好象是,man lilo看文档),再运行lilo以引导内核
请先搞清楚了再改,免得系统启动不了!
如果你使用LILO引导器,更改/etc/lilo.conf(好象是,man lilo看文档),再运行lilo以引导内核
请先搞清楚了再改,免得系统启动不了!
|
编译内核的时候选择ext3这种文件系统了吗?
|
you should configure /boot/grub/grub.conf
|
首先升级kernel时,配置kernel时要选择支持nfs格式文件;启动后再service里把nfs支持前打勾,start并save。