LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2006, 10:15 AM   #1
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Rep: Reputation: 30
Another "GRUB Failed"Question


I have(had) a multi-boot box.I re-installed xp the other night and xp re-wrote the MBR.

This has happened before and I usually put my mandriva disk1 back in and rescue/re-install GRUB.

I try that this time and get returned:

exec of sh failed:exec format error
GRUB failed:at /usr/lib/libdrakx/bootloader.pm line 1509
<stdn> line1

The above is from memory maybe spacing errors sorry.

What I really need to do is install GRUB in the MBR and have it point to mandriva's boot/grub/menu.lst which is located at hdb1(hd1,0).

Can I do this with a live distro(knoppix)?

Thanks
 
Old 11-24-2006, 11:49 AM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
There is a way you could do this with a live cd. If the live cd has grub on it you can just install it as you
normally would. If not then you can mount your drive
somewhere and then sudo mount the device list into your
drive and chroot to it and preform the install.
LFS does this when your setting up grub

ill list steps below

if grub is on the live disk
Code:
 
root (hd1,0)  this is hdb1 in linux 

setup (hd1) you can do this but you must make sure that the
 boot loader in hd0 will look for grub here. or you change 
your bios to look on the second harddrive for the boot 
device.
if not then here is the steps for sudo mounting and all that

Code:
 
mount --bind /dev <where you mounted your system>/dev
^this command will populate dev with devices 
chroot into the enviorment and run GRUB 
go back up this post and look at grub instructions
that should get you though doing it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
"GRUB _" when booting, nothing but "ctrl+alt+del" functions rabidpencil Linux - Newbie 15 08-08-2006 10:20 AM
Failed installation took me to "GRUB" linuxharsha Linux - General 1 10-05-2004 09:20 AM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:54 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
Open Source Consulting | Domain Registration