Appendix D. Troubleshooting Your Installation of Red Hat Linux 103
Replace xx with the amount of RAM you have in megabytes. Remember that per-image append
lines completely overwrite the global append line. It might be worth adding this to the per-image
descriptions, as shown in this example:
mem=128M
append="mem=128M"
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/
default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.6-2)
root (hd0,0)
kernel /vmlinuz-2.2.6-2 ro root=/dev/hda3 mem=128M
Once you reboot, the changes made to grub.conf will be reflected on your system.
In /etc/lilo.conf, the above example would look similar to the following:
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.12-20
label=linux
root=/dev/sda1
initrd=/boot/initrd-2.2.12-20.img
read-only
append="mem=128M"
Remember to run /sbin/lilo -v after changing /etc/lilo.conf.
Note that you can also produce the same effect by actually passing this option when you are specifying
the label/image to use in GRUB or LILO.
Once you have loaded the GRUB boot screen, type e for edit. You will be 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
mem=xx M
where xx equals the amount of RAM in your system.
Press [Enter] to exit edit mode.
Once the GRUB screen has returned, type b to boot with your new RAM specifications.
At the graphical LILO screen, press [Ctrl]-[x] to exit to the boot: prompt. Next, enter the following
at the boot: prompt:
linux mem=xxM
Remember to replace xx with the amount of RAM in your system. Press [Enter] to boot.
Komentarze do niniejszej Instrukcji