From 1969ceae32f69bcc503324db753472427bd681d4 Mon Sep 17 00:00:00 2001 From: Greg Schafer Date: Fri, 9 Jan 2004 23:45:52 +0000 Subject: Added --no-mem-option to Grub command line in menu.lst to disable Grub's insistence on passing mem= to the kernel. Closes 737. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3157 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/grub.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'chapter08') diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 6ed20b328..5902ef954 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -88,16 +88,22 @@ color green/black light-green/black # The first entry is for LFS. title LFS &milestone; root (hd0,3) -kernel /boot/lfskernel root=/dev/hda4 ro +kernel --no-mem-option /boot/lfskernel root=/dev/hda4 EOF +By default, Grub will automatically pass a "mem=xxx" command line +argument to the kernel. However, Grub sometimes gets the amount of memory wrong +which can lead to problems in some circumstances. It's best to disable this +functionality and let the kernel determine the amount of memory itself, hence +the use of the --no-mem-option above. + You may want to add an entry for your host distribution. It might look like this: cat >> /boot/grub/menu.lst << "EOF" title Red Hat root (hd0,2) -kernel /boot/kernel-2.4.20 root=/dev/hda3 ro +kernel /boot/kernel-2.4.20 root=/dev/hda3 initrd /boot/initrd-2.4.20 EOF -- cgit v1.2.3-54-g00ecf