更换内核:
# cd /boot -----切换到引导分区/boot. # rm System.map vmlinuz -----删除旧的符号链接. # mv /usr/src/linux/System.map System.map # mv /usr/src/linux/arch/i386/boot/bzImage vmlinuz
如果你用GRUB来管理开机,简单点就是你装了win还装了linux就要修改/boot/grub下的menu.1st文件:
# vi /boot/grub/menu.1st
键入i进入编辑模式:
# 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,1) # kernel /boot/vmlinuz-version ro root=/dev/hda2 # initrd /boot/initrd-version.img #boot=/dev/hda default=1 timeout=10 splashimage=(hd0,1)/boot/grub/splash.xpm.gz title Fedora Core(2.6.11) root (hd0,1) kernel /boot/vmlinuz ro root=/dev/hda2 ---你的linux所在的分区 title DOS rootnoverify (hd0,0) chainloader +1
title Fedora Core(2.4.22) root (hd0,1) kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi rhgb initrd /boot/initrd-2.4.22-1.2115.nptl.img
这样还可以保留旧版本的内核以防编译新内核失败进不了系统
重启电脑,好了,进去了。网上说新内核速度好快的,我怎么感觉快不了多少呢。无所谓了,反正是成功了。呵呵,我可是失败了很多次才成功的。
rpm没法用了,怎么办?
在/usr/lib/rpm/macros里面寻找代码:
%__dbi_cdb create cdb mpool mp_mmapsize=16Mb mp_size=1Mb
修改成代码:
%__dbi_cdb create cdb mpool mp_mmapsize=16Mb mp_size=1Mb private
(参考链接: http://linux.ccidnet.com/art/741/20050919/335915_1.html)
|