红联Linux门户
Linux帮助

RedHat AS 4 U3内核升级

发布时间:2007-04-14 00:51:04来源:红联作者:typewins
我的系统是RedHat AS 4 U3 ,内核是2.6.9-34,我在http://kernel.org/pub/linux/kernel/v2.6/下载linux-2.6.20.tar.gz内核包
我的大致操作是:
1. 把下载的包复制到/usr/src目录下,并解压,建立链接文件
ln -s linux-2.6.20 linux (在/usr/src目录下)
2. 配置和编译内核
make menuconfig
我的选项是:
Device Drivers --->;Network device support --->Ethernet (10 or 100Mbit) ---><*> AMD PCnet32 PCI support
File system--->(以下9个选项是关于ext2和ext3文件系统配置,全部选上)
Second extended fs support
Ext2 extended attributes
Ext2 POSIX Access Control Lists
Ext2 Security Labels
Ext3 journalling file system support
Ext3 extended attributes
Ext3 POSIX Access Control Lists
Ext3 Security Labels
JBB (ext3) debugging support
File system--->DOS/FAT/NT Filesystems --->选上“NTFS file system support
其它都是默认选项,没有改变
3. make bzImage,make modules,make modules_install,make install
以上操作没有报错
4. # cp /usr/src/linux-2.6.20/arch/i386/boot/bzImage /boot/vmlinuz-2.6.120
# cp /usr/src/linux-2.6.20/System.map /boot/System.map-2.6.20
# cd /boot (进入boot目录)
# rm -rf System.map (删除原来的连接)
# ln -s System.map-2.6.18 System.map (重新建立连接)
5 . 修改grub.conf文件
我的配置是:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/cciss/c0d0p2
# initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.20)
root (hd0,0)
kernel /vmlinuz-2.6.20 ro root=LABEL=/dev/cciss/c0d0p2 rhgb quiet
initrd /initrd-2.6.20.img
title Red Hat Enterprise Linux AS (2.6.9-34.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-34.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-34.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-34.EL.img
(/dev/cciss/c0d0p2是我的/分区)
6 . 重启系统,选择2.6.20内核。




我昨天已经按照wheel的办法,在编译内核前关闭SElinux,现在用新内核可以正常进入系统。
并把grub.conf文件中关于2.6.20内核部分配置成如下:
title Red Hat Enterprise Linux AS (2.6.20)
root (hd0,0)
kernel /vmlinuz-2.6.20 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.20.img
其实也不用修改,在编译和安装后,grub.conf文件里就包含新的内核,不修改也可以。
文章评论

共有 65 条评论

  1. 90.31.188.* 于 2007-05-16 03:21:21发表:

    http://ee7ff1899c9b59adcc784188d799ca9e-t.qwoypw.info ee7ff1899c9b59adcc784188d799ca9e http://ee7ff1899c9b59adcc784188d799ca9e-b1.qwoypw.info ee7ff1899c9b59adcc784188d799ca9e http://ee7ff1899c9b59adcc784188d799ca9e-b3.qwoypw.info b43a48a848da56275457e93295654b68