Show Table of Contents
10.4.6. 是否无法识别内存?
有时,内核不能识别全部内存(RAM)。可以用
cat /proc/meminfo 命令校验。
查看一下所显示的数量是否与所知的系统内存相同。如果不同,在
/boot/grub/grub.conf 文件中添加以下一行:
mem=xxM
使用 RAM 量替换 xx(以 MB 为单位)。
在
/boot/grub/grub.conf 文件中,以上的示例与下面相似:,
# NOTICE: You have a /boot partition. This means that # all kernel paths are relative to /boot/ default=0 timeout=30 splashimage=(hd0,0)/grub/splash.xpm.gz title Red Hat Enterprise Linux Client (2.6.32.130.el6.i686) root (hd0,1) kernel /vmlinuz-(2.6.32.130.el6.i686 ro root=UUID=04a07c13-e6bf-6d5a-b207-002689545705 mem=1024M initrd /initrd-(2.6.32.130.el6.i686.img
重启后,会在系统中体现
grub.conf 的变更。
载入 GRUB 引导页面后,键入
e 编辑。 此时会显示用于所选引导标记的配置文件列表。
选择以
kernel 开始的行,然后键入 e 编辑这一引导项目。
在
kernel 行的末尾,添加:
mem=xxM
其中 xx 为系统内存数量。
按 Enter 键退出编辑模式。
回到引导装载程序页面后,键入
b 引导系统。
请记住使用系统 RAM 数替换 xx。按 Enter 键引导。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.