6.4.6. Is Your RAM Not Being Recognized?

6.4.6. Is Your RAM Not Being Recognized?

Sometimes, the kernel does not recognize all of your memory (RAM). You can check this with the cat /proc/meminfo command.

Verify that the displayed quantity is the same as the known amount of RAM in your system. If they are not equal, add the following line to the /boot/grub/grub.conf:


Replace xx with the amount of RAM you have in megabytes.

In /boot/grub/grub.conf, the above example would look similar to the following:

# NOTICE: You have a /boot partition. This means that 
#  all kernel paths are relative to /boot/ 
title Red Hat Enterprise Linux (2.6.9-5.EL)         
root (hd0,0)         
kernel /vmlinuz-2.6.9-5.EL ro root=/dev/hda3 mem=128M

Once you reboot, the changes made to grub.conf are reflected on your system.

Once you have loaded the GRUB boot screen, type e for edit. You are presented with a list of items in the configuration file for the boot label you have selected.

Choose the line that starts with kernel and type e to edit this boot entry.

At the end of the kernel line, add


where xx equals the amount of RAM in your system.

Press Enter to exit edit mode.

Once the boot loader screen has returned, type b to boot the system.

Itanium users must enter boot commands with elilo followed by the boot command.

Remember to replace xx with the amount of RAM in your system. Press Enter to boot.

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.