openSUSE Forums > Install/Boot/Login » memtest option on boot

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-Oct-2009, 22:39
Puzzled Penguin
 
Join Date: Oct 2009
Location: Virginia, US
Posts: 21
sherifkadry hasn't been rated much yet
Default memtest option on boot

When I start opensuse and get my boot options I do not have the memtest option, how can I run a memtest or change grub to make the option available?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 31-Oct-2009, 23:12
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,895
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: memtest option on boot

Running this is not necessary except in very special circumstances. Just use the Install media if you really must do this.
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 01-Nov-2009, 01:16
Busy Penguin
 
Join Date: Jul 2009
Location: Calgary Alberta Canada
Posts: 262
techwiz03 hasn't been rated much yet
Default Re: memtest option on boot

Quote:
Originally Posted by sherifkadry View Post
When I start opensuse and get my boot options I do not have the memtest option, how can I run a memtest or change grub to make the option available?

Thanks.
while should not need to run a memory test at each boot, if you think there is a problem with memory and want to check it after Linux has started, you can install memtest86+ to diagnose memory troubles. If your system won't start, do as previous post and use your live CD.
__________________
When your up to your a** in Alligators it's pretty hard to remember you intended to drain the swamp (author unknown)
Reply With Quote
  #4 (permalink)  
Old 01-Nov-2009, 02:35
palladium
Guest
 
Posts: n/a
Default Re: memtest option on boot

sherifkadry wrote:
> When I start opensuse and get my boot options I do not have the memtest
> option, how can I run a memtest or change grub to make the option


boot from the install media..
this frees all memory for testing..

remember it will take many hours to fully test 16 GB (i use 12 hours
for a SHORT test of 1 GB....that is, one pass is *not* enough, not
nearly enough..)

--
palladium
Have a lot of fun..
Reply With Quote
  #5 (permalink)  
Old 01-Nov-2009, 03:14
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: memtest option on boot

Actually it does make sense to have the memtest available in your GRUB menu when booting from HD instead of always having to search for your openSUSE CD/DVD.

I also don't see the necessity to boot from CD in order to free memory, if you boot from CD there will also be some memory used by the respective bootloader (isolinux AFAIK).

But the real reason for me answering here is the fact, that it is an interesting and also very easy task to accomplish.

A) Grab your openSUSE CD/DVD and search for the file "memtest", I found it in the "boot/i386/loader"

B) As root, copy the file to your /boot directory

C) As root, backup your menu.lst and edit it with a text editor of your choice.

- Copy your main boot entry to the end of the file without the "initrd"-line (won't be needed)

- Change the first two lines accordingly, giving it a unique name and Title (I called it Memory test)

- Change the "kernel"-line by replacing anything starting from "vmlinuz- ........." with "memtest"

- Save the file

You're done, on next reboot you will have an extra entry running memtest.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #6 (permalink)  
Old 01-Nov-2009, 04:13
palladium
Guest
 
Posts: n/a
Default Re: memtest option on boot

Akoellh wrote:
> Actually it does make sense to have the memtest available in your GRUB
> menu when booting from HD instead of always having to search for your
> openSUSE CD/DVD.


i agree..just (for me) a LOT easier to say what i said, than _try_ to
tell how to add memtest to the boot menu....

on the other hand it is a lot easier to do it from grub than _try_ to
find the install media (mine _lives_ on to of the machine...always...i
can see it: openSUSE 10.3, double sided DVD, came with the December
2007 Linux Magazine, a little over two years ago..)

hey, what about posting your how-to the how-to forum, and/or the SDB ??

--
palladium
Have a lot of fun..
Reply With Quote
  #7 (permalink)  
Old 01-Nov-2009, 04:20
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: memtest option on boot

Quote:
Originally Posted by palladium View Post
hey, what about posting your how-to the how-to forum, and/or the SDB ??
In order to have some more information actually nearly nobody is reading?

I don't think so.

P.S.

I "created" this howto by searching google on how Debian/Ubuntu handle their memtest-entries in Grub (it is default there IIRC) and it was 2 minutes of "work" to find the binary on the DVD and modify the menu.lst accordingly.

So the basic information was already there, actually searching for it solved the issue.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #8 (permalink)  
Old 01-Nov-2009, 04:53
Chrysantine's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: European Union
Posts: 1,587
Chrysantine has a spectacular reputation aura aboutChrysantine has a spectacular reputation aura aboutChrysantine has a spectacular reputation aura aboutChrysantine has a spectacular reputation aura about
Default Re: memtest option on boot

There's no need for hacking anything, if you install the memtest86+ package in 11.0, 11.1 or 11.2 it will automatically add the necessary line to grub.

su -c "zypper in memtest86+"

Reboot and behold the new memtest.
__________________
:: save me from myself I can't relate
:: we're mouth to mouth and still I suffocate
:: there's nothing left inside for me to break
:: save me from myself ..
Reply With Quote
  #9 (permalink)  
Old 01-Nov-2009, 05:04
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: memtest option on boot

D.A.M.N., I searched for memtest and didn't find anything, because this was my first idea.

But after having a look into root's .bash_history, the reason is obvious:

Code:
zypper se -s memtets
Head => Desk


(OTOH, now the "HowTo" is completely obsolete, no matter where to "publish" it.)
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #10 (permalink)  
Old 02-Nov-2009, 01:03
palladium
Guest
 
Posts: n/a
Default Re: memtest option on boot

> (OTOH, now the "HowTo" is completely obsolete, no matter where to
> "publish" it.)


cool!

--
palladium
Have a lot of fun..
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2