Results 1 to 1 of 1

Thread: segmentation faults GRUB_BADRAM

  1. #1
    Join Date
    Aug 2016

    segmentation faults GRUB_BADRAM

    Fix segmentation faults by using GRUB_BADRAM parameter in grub.

    -This is for other newbies that don't want to spend 4 hours running all over the Internet getting clues.
    -This is for 64 bit everything. I am running Kubuntu Xenial.
    -If you can do better write your own tutorial, or if know of a better thread, speak up.

    If you have bad memory, and decline to get new memory you can uncomment out something in /etc/default/grub -->GRUB_BADRAM....

    At boot- hold down shift key, select recovery mode, select memtest86+ and let it do a couple passes, write down the problem address's, then ctl+c or esc. yada yada yada
    There where 600+ errors for me, after reviewing the list they all started with 003fab8**** and 0015f58****.
    All the tutorials for editing GRUB, and uncommenting GRUB_BADRAM out there are for 32 bit machines and unclear, I run 64bit and have 16GB of memory.

    This did not work! --> GRUB_BADRAM="3fab80000,3fab8ffff"

    This did work--> GRUB_BADRAM="0x00000003fab80000,0xffffffffffff0000 ,0x000000015f580000,0xffffffffffff0000"
    As you can see I added 0x and a bunch of zero's. thats 18 bits total.
    The GRUB_BADRAM format is a pattern: memory block address start, then mask (amount of memory), memory address start, mask, .....
    Here is my grub file:

    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX="quiet splash"
    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    # Uncomment to disable graphical terminal (grub-pc only)
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    # Uncomment to disable generation of recovery mode menu entries
    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    don't forget to: sudo update-grub -when your finished.
    If you get it wrong you might not get back in. I managed too each time in recovery, but just barely. lol
    If you memtest again from the grub menu you will see no errors hopefully. By the way most of what I read today strongly suggests to just replace the memory in question.
    Again, I contributed what I learned today, because of lack of better tutorial.
    Last edited by jimpster1; August 26th, 2016 at 09:26 AM. Reason: added marks


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts