Re: Grub.conf and maximum memory

From: tim wunder (twunder_at_REMOVEcomcast.net)
Date: 07/02/04


Date: Fri, 02 Jul 2004 15:51:09 -0400

On 7/2/2004 3:42 PM, I believe that ohaya wrote:

> Hi,
>
> I currently have 128MB in my Linux machine, and I just got another 256MB
> stick. I ran a memory test on the new stick, and it appears to have
> problems above 128MB (it's low-density, and the PC recognizes the full
> 256MB with just this new stick, so I know it's the correct memory type).
>
> While I'm waiting to get a replacement, I was wondering if I could tell
> Linux to only use 256MB (128MB from old stick + 128MB from new stick)?
>
> I've done some searching, and it seems like I can do this by adding
> "mem=256" to the "kernel" line in /boot/grub/grub.conf.
>
> What I'm wondering is: If I do that, and if it causes a problem and
> prevents the machine from booting, how can I boot into Linux to re-edit
> grub.conf to get rid of the 'mem=256'?
>
> Thanks,
> Jim

Don't change you're grub.conf file until you've tested it. grub allows
you to temporarily change the settings from whichever kernel/O/S you boot.

During boot, when prompted to select what kernel to boot, press 'e' to
edit the selection, then add the "mem=256" to the "kernel" line, then
press 'b' to boot (or something like that, I'm not sure of the exact
letters to use to temporarily change grub, there should be something on
screen that will help you...). That way you can make sure the change
works before committing it to your grub.conf file.

'man grub' might be of some help...

HTH,
Tim



Relevant Pages

  • Re: Grub.conf and maximum memory
    ... I ran a memory test on the new stick, ... you to temporarily change the settings from whichever kernel/O/S you boot. ... During boot, when prompted to select what kernel to boot, press 'e' to ...
    (linux.redhat)
  • 2.6.28-rc2: REGRESSION in early boot
    ... I've opened a Kernel Bug to track this regression: ... Essentially, the system panics in early boot, resulting in multiple ... commit d6c88a507ef0b6afdb013cba4e7804ba7324d99a ... # Device Drivers ...
    (Linux-Kernel)
  • Re: [ARM] Regression ? at91rm9200 machine-type
    ... I cannot boot my board anymore. ... u-boot is not passing the right boot information to the kernel. ... # Device Drivers ... # RAM/ROM/Flash chip drivers ...
    (Linux-Kernel)
  • Proposed update of the i386 boot document
    ... THE LINUX/I386 BOOT PROTOCOL ... the Linux kernel uses a rather complicated boot ... may not even support a command line. ... low memory touched by the boot loader -- as low as possible, ...
    (Linux-Kernel)
  • Re: [2.6.25-rc1] jerky mouse cursor and randoooom key repeats
    ... By this I mean that given a specific kernel configuration I can boot it ... # AX.25 network device drivers ...
    (Linux-Kernel)