LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-06-2011, 06:18 AM   #1
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: 6
Grub 2: bsd command does not exist


Hello,
I am trying to run Memtest86+ on my Linux computer. I use Grub 2, and Memtest86+'s core is located in /boot/memtest86plus/memtest.bin file.

Menu entry from /boot/grub/grub.cfg:

Code:
menuentry "Memtest86+" {
        set root=('hd0,1')
        insmod bsd
        netbsd /boot/memtest86plus/memtest.bin
}
Error displayed after I try to boot to Memtest86+:
Code:
error: unknown command 'netbsd'
It seems to be pretty newbie error, but I can't find any documentation covering this problem.

If I use linux16 instead of netbsd, computer just restarts without any error.

Sorry if I'm posting to wrong Forum, as this particularly seems to be related to NetBSD.

Thanks for your time,

Skyer

Last edited by Skyer; 08-06-2011 at 06:22 AM.
 
Old 08-06-2011, 06:58 AM   #2
EmaRsk
Member
 
Registered: Mar 2006
Distribution: Funtoo
Posts: 77

Rep: Reputation: 21
You seem to have copy-pasted from instructions meant for netbsd.
You have linux on msdos-type partitions, so you won't need "insmod bsd", maybe "insmod part_msdos" and "insmod ext2". And try
Code:
linux /boot/memtest86plus/memtest.bin
Also, try
Code:
set root='(hd0,1)'
or
Code:
set root='(hd0,msdos1)'
(My entries are formatted like this.)

Also, if you use debian or ubuntu, you can simply
Code:
sudo update-grub
 
Old 08-06-2011, 03:29 PM   #3
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
Thanks for your post.
However, it does not work. Setting root does not help, adding part_msdos and/or ext2 module neither. I can't use

Code:
linux /boot/memtest86plus/memtest.bin
as zImage does not support 32bit boot.

Skyer
 
Old 08-07-2011, 04:02 AM   #4
EmaRsk
Member
 
Registered: Mar 2006
Distribution: Funtoo
Posts: 77

Rep: Reputation: 21
Google says that it's a resolved memtest86+ bug:
https://bugs.launchpad.net/ubuntu/+s...6+/+bug/424506
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539907

Just update memtest86+ and it should work again.
 
Old 08-07-2011, 04:45 AM   #5
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
Thanks for your reply,
I have Memtest86+ 4.20 installed, and Grub 1.99~rc1. I am not sure if there are any newer versions available currently, but I'll check it.
 
Old 08-10-2011, 06:28 AM   #6
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
Bump.

I have made no progress so far, I have both Grub and Memtest86+ updated to newest versions.

Skyer
 
Old 08-11-2011, 03:29 AM   #7
EmaRsk
Member
 
Registered: Mar 2006
Distribution: Funtoo
Posts: 77

Rep: Reputation: 21
I'm on debian squeeze here, with grub version 1.98+20100804-14 and memtest86+ version 4.20-1~bpo60+1 (from the backports repo) and everything works fine.
My grub.cfg entry:
Code:
menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set 7dc5b57f-640a-4c40-bcfb-4a916182ad8c
        linux16 /boot/memtest86+.bin
}
I confirm that I need to use "linux16" because "linux" doesn't work.
By the way, I didn't need to fiddle manually with grub.cfg: the entry was automatically added after installing memtest86+.
 
Old 08-11-2011, 07:00 AM   #8
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
Thanks for your post.
Hmm, that's weird. It still reboots here without any error/warning.

Memtest86+ was not detected on my computer, so I had to write it's entry by hand in custom script file.

Code:
menuentry "Memtest86+" {
        insmod part_msdos
        insmod ext2
        set root=('hd0,msdos1')
        search --no-floppy --fs-uuid --set=root 6b22c36c-a120-4395-82ee-2a9bca6b51a7
        echo    'Loading Memtest86+ ...'
        linux16 /boot/memtest86plus/memtest.bin
}
Quote:
By the way, I didn't need to fiddle manually with grub.cfg: the entry was automatically added after installing memtest86+.
I don't use Debian, but as far as I know, probably grub-mkconfig was called by apt during installation. Do you have Memtest86+'s entry in custom script, or did OS prober find it?

Skyer

Last edited by Skyer; 08-11-2011 at 07:09 AM.
 
Old 08-12-2011, 03:00 AM   #9
EmaRsk
Member
 
Registered: Mar 2006
Distribution: Funtoo
Posts: 77

Rep: Reputation: 21
Quote:
Originally Posted by Skyer View Post
Do you have Memtest86+'s entry in custom script, or did OS prober find it?
I didn't need to edit or do anything. I just installed memtest86+ and everything was taken care automatically: memtest86+ itself installs a template for update-grub, which is called by the package manager.

Assuming that the path, the disk numbers and the UUIDs are correct, I see only two differences between your setup and mine :
  • the echo line
  • you have '(hd0,msdos2)' instead of ('hd0,msdos2')
  • you have "--set 7dc5b57f-640a-4c40-bcfb-4a916182ad8c" instead of "--set=root 7dc5b57f-640a-4c40-bcfb-4a916182ad8c"

I'm not sure if any of these is relevant, though
If everything fails you could always put sysresccd or grml on a USB stick and run memtest from there.
 
Old 08-12-2011, 03:52 AM   #10
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
Well,
the echo line should not be a problem.

Quote:
Originally Posted by EmaRsk View Post
  • you have '(hd0,msdos2)' instead of ('hd0,msdos2')
Changing position of apostrophes didn't change anything.

Quote:
Originally Posted by EmaRsk View Post
  • you have "--set 7dc5b57f-640a-4c40-bcfb-4a916182ad8c" instead of "--set=root 7dc5b57f-640a-4c40-bcfb-4a916182ad8c"
(The difference is inverse, I have --set=root). Deleting "=root" part results in error: no argument given.

I am starting to think that this is rather a typo problem, than some software/configuration one.


Skyer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GrUB: Selected Disk Does not Exist Ekpyrotic Linux - General 51 01-23-2009 04:15 AM
One BSD co-exist with another in the same disk? saikee *BSD 2 12-05-2005 08:24 AM
FC4 grub doesn't exist? pyre Linux - Newbie 3 10-14-2005 03:58 PM
Grub.conf doesn't exist robyduck Fedora 4 11-14-2004 02:19 PM
Linux partition doesn't exist under BSD! acid_kewpie *BSD 16 02-12-2004 12:13 AM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration