LinuxQuestions.org
Visit Jeremy's Blog.
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 12-31-2005, 11:08 AM   #1
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Rep: Reputation: 30
Grub Error13 Question


Hi,
I use Mandriva 2006 and installed DSL linux in another partition.

If I use the Grub v0.91 that came with DSL it will boot.

If I add DSL to Mandriva's Grub v0.97 menu.lst and try to Boot DSL I get an "error 13:invalid or unsupported executable format" message.

Are the two versions not compatible?

Thank you.
 
Old 12-31-2005, 04:56 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
More info needed:
Did Mandriva boot before you put in DSL?
Where did you install grub during DSL install?
When you boot into DSL, so you see a grub screen or does it go straight to DSL?
Can you still boot into Mandriva?
 
Old 12-31-2005, 05:22 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Sound like you are booting DSL indirectly by chainloading but has not arranged DSL to replicate its Grub inside its root partition.
 
Old 12-31-2005, 06:41 PM   #4
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
Quote:
Did Mandriva boot before you put in DSL?
Where did you install grub during DSL install?
When you boot into DSL, so you see a grub screen or does it go straight to DSL?
Can you still boot into Mandriva?
Yes Mandriva always boots.So does Kate2.2,puppy,and as of 20 minutes ago the shiny new Mandriva 2006.1

I installed grub into the DSL partition using the installer.

When first installed/rebooted and I saw the grub screen with DSL and xp available.Both booted.

I used the disc1 of mandriva in rescue mode and reinstalled bootloader to switch back to my old menu.lst

Quote:
Sound like you are booting DSL indirectly by chainloading but has not arranged DSL to replicate its Grub inside its root partition.
Yes I am.
The other distros I installed grub to the distros partition then used rescue cd to switch back to mandrakes menu.lst and add:
title name (hd?,?)
root (hd?,?)
chainloader +1
No I dont think I know how to replicate grub in DSL?I dont think I had to do this before.Is it easy to do?

Thank you.
 
Old 12-31-2005, 07:08 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I use chainloading to boot 85 out of 103 systems and can tell you chainloading only works if the system has a boot loader inside its root partition.

You can replicate any Linux's boot loader, say with root at partition hdc9 by
Code:
grub-install /dev/hdc9
if it uses Grub as the boot loader.

For Lilo as boot loader the instruction is
Code:
lilo -b /dev/hdc9
You can save a lot of hassle by pre-arranging one Grub menu.lst to boot all empty partitions you got. (take a look at my menu.lst in above link which still have 20 empty partitions).

Also you should learn to get into an unbootable Linux by Live CD instead of relying on the installlation CD. Detail again in Section C3 of the above link.

Happy Multi-booting
 
Old 12-31-2005, 08:02 PM   #6
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
WOW,what a menu.lst!
Thanks for the link also.Thats a lot of information for me to absorb.
That is a very good idea.pre partition and arrange the menu.lst in advance.
I will go to the mandriva I edit the /grub/menu.lst with and from console, grub-install /dev/hdb5(DSL=hdb5).Hopefully it will boot.If not i'll keep reading.

Thank you
 
Old 12-31-2005, 09:37 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Hats off to Saikee for the most in-depth material that I have seen on GRUB and multi-booting. You deserve some sort of prize....!!!!!
 
Old 12-31-2005, 10:30 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I am passing on information I learn from the forum, no different to any of you guys.

Happy new year to all
 
Old 01-01-2006, 08:15 PM   #9
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
I am almost embarrassed to admit after all the excellent info I have been given I still cant get it to boot.AAARRRGGGHHH.

I am using a knoppix live cd now and tried to install grub as per saikee instruction in C3.I get the following response in a console.I dont know what it means.

knoppix@ttyp0[knoppix]$ su
root@ttyp0[knoppix]# mkdir /mnt/hdb9
mkdir: cannot create directory `/mnt/hdb9': File exists
root@ttyp0[knoppix]# mount /dev/hdb9 /mnt/hdb9
root@ttyp0[knoppix]# chroot /mnt/hdb9
root@Knoppix:/# grub-install /dev/hdb9
df: /: can't find mount point.
df: /boot: can't find mount point.
: Not found or not a block device.

Thank you for any information

UPDATE:I forgot to say after I typed "grub-install /dev/hdb9" from mandriva console I no longer get a grub 13 error.When I choose dsl to boot, screen blanks for a second and returns to boot screen with timer reset?

Last edited by PipeDreams; 01-01-2006 at 09:12 PM.
 
Old 01-02-2006, 08:18 AM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Lets get one thing clear first

You must nominate one Grub in the MBR. I was under the impression that was Mandriva's Grub 0.97. So stick to it.

Issuing grub-install /dev/hdb9 inside Mandriva = ask Grub there to install itself in device partition hdb9. So when you choose to boot to hdb9 Grub boots istelf back!!! It is like two mirrors glued back to back. Whichever way you turn it you only see yourself. Got it?

Now the cure
----------------------------
Since your DSL has been identified in hdb9. The alternative of using grub-install is the Grub shell.

You can invoke the Grub shell in Mandriva and ask the Grub 0.97 to do the leg work for you as follow
Code:
grub
root (hd1,8)
setup (hd1,8)
exit
If hdb is your 2nd disk then hdb9 is (hd1,8) to Grub, as it counts from 0.

The above commands instruct Mandriva's Grub 0.97 to use the version 0.91 information from (hd1,8) root partition and setup the Grub 0.91 inside it. (I know DSL uses Grub 0.91 and Mandriva uses 0.97 version as I got them both)

grub-install is not as robust as the Grub shell. I usually go for the latter when the first one has difficulties.
 
Old 01-02-2006, 08:53 PM   #11
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
That worked!
I am using at the moment DSL which I just booted from mandrivas menu.lst at start-up.

I understand what I did now.I'm laughing at myself.The DSL partition DID boot but it booted an exact copy of mandrivas grub that I just put there.How funny.

Saikee,your last reply answered a few more questions for me also.
My mystery of the GRUB bootloader is starting to fade away.

Thank you very much.
 
Old 01-03-2006, 03:19 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You are welcome.

I enjoyed the back-to-back mirror too as I have committed the same mistake before.
 
  


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
Please help me fix GRUB - error13 nyheat Linux - Newbie 8 08-31-2005 06:45 PM
grub question...? matthewa Linux From Scratch 2 06-06-2005 04:08 PM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 02:51 PM
grub question feetyouwell Linux - Software 2 11-15-2004 04:27 PM
a question about grub!! lom Linux - Newbie 5 10-07-2003 10:43 PM


All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration