最近在给客户装系统的时候发现客户的操作系统都是装的redhat 532位的操作系统,可是客户的硬件配置比如内存都是16G,这就存在了一个问题LINUX 32位的操作系统默认都是只支持4G内存如果,如果想要让它支持4G以上内存就必须按以下步骤操作:

 

步骤1

安装 kernel-PAE.i686 内核包(这个内核包小版本号有多个当时给客户redhat 5.6系统装的就是kernel-PAE-2.6.18-53.el5.i686.rpm,可以自己从网上下载,提供下载连接:http://pan.baidu.com/share/link?shareid=392468&uk=436421975),让系统内核支持PAE物理地址扩展


rpm -ivh  kernel-PAE-2.6.18-53.el5.i686.rpm  安装的时候会报如下警告


Linux 32位系统支持4g以上内存 - 明月 - 我的博客

将安装命令由原本的rpm -ivh ****.rpm 改为 rpm -ivh ****.rpm –force --nodeps就可以了,nodeps的意思是忽视依赖关系。因为各个软件之间会有或多或少的存在关联,有了这两个设置选项就忽略了这些依赖关系,强制安装。

安装如下图所示,加了参数后警告可以忽略


Linux 32位系统支持4g以上内存 - 明月 - 我的博客

 

步骤2

设置linux系统启动加加载内核,让系统启用PAE的内核

[root@wangdm ~ 12:40 #11]# /boot/grub/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/sda3

#          initrd /initrd-version.img

#boot=/dev/sda

default=0                            (default=1修改为default=0就可以了)

timeout=5

splashp_w_picpath=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

#升级后的系统引导

title Red Hat Enterprise Linux Server    

Red Hat Enterprise Linux Server (2.6.18-53.el5PAE)

        root (hd0,0)

        kernel /vmlinuz-2.6.18-53.el5PAE ro root=LABEL=/ rhgb quiet

        initrd /initrd-2.6.18-53.el5PAE.img

#升级前的系统引导,将其注释掉

#title Red Hat Enterprise Linux Server (2.6.18-194.el5)

#       root (hd0,0)

#       kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet

#       initrd /initrd-2.6.18-194.el5.img


保存后重启linux,系统内核就能最大支持64G内存了。

通过查,cat /boot/config-*|grep PAE可以查看当前的支持情况如下图显示。

Linux 32位系统支持4g以上内存 - 明月 - 我的博客


原文链接:http://mingyue19850801.blog.163.com/blog/static/19520820201312815458325/