cat /proc/meminfo
command and verify that the displayed quantity is the same as the known amount of RAM in your system. If they are not equal, you can first make a temporary change to confirm whether editing the kernel will be effective.
e
for edit.
kernel
and type e
to edit this boot entry.
kernel
line, add
mem=xx
M
xx
equals the amount of RAM in your system, then press Enter to exit edit mode.
b
to boot the system.
cat /proc/meminfo
again. If the known amount of RAM in your system is now displayed, add the following line to the /etc/grub.d/10_linux
file to make the change permanent:
mem=xx
M
xx
with the amount of RAM you have in megabytes.
grub.cfg
file so that the change will take effect, run grub2-mkconfig
with root privileges.
10_linux
, the above example would look similar to the following:
default=0 timeout=30 splashimage=(hd0,0)/grub/splash.xpm.gz menuentry 'Fedora Linux, with Linux 3.1.0-0.rc6.git0.3.fc16.x86_64' set root=(hd0,1) linux /vmlinuz-(2.6.32.130.el6.i686 ro root=UUID=04a07c13-e6bf-6d5a-b207-002689545705 mem=8192M initrd /initrd-(2.6.32.130.el6.i686.img