Memtest86+

memtest86+ is memory test software based on the (commercially available) memtest86 program.

GRUB legacy
Replace the  (question marks) in the file below with correct numbers for the system's boot partition:

GRUB2
For grub2 just run, as long as the package has been emerged, a configuration file has already been installed to :

lilo
For lilo, add this to the lilo configuration file:

Then rebuild lilo's MBR entry: