LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-29-2002, 11:25 AM   #1
jboo
LQ Newbie
 
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9

Rep: Reputation: 0
Angry GRUB not reinstalling


So I have a RedHat 7.2 load on my machine. I have a VFAT partition where was gonna put my Win32 apps and run WINE to play Star Craft on Linux, cool huh? Right, well anyway, I figured out that it would be a lot better to load Win9x onto one of the VFAT parts to help WINE out, so last night I installed Win9x onto one of the VFAT parts to give WINE some help....

Of course, GRUB doesn't work since Windows overwrote the MBR, but I can't boot to anything.. Linux boot disk to the rescue. I boot to the disk, chroot /mnt/sysimage and then try to :

/mnt/sysimage/sbin/grub-install /dev/hda

and get

/sbin/grub: Not found

I KNOW that i am in the right dir. I know I am running grub-install right because when I run it with no arguments, it gives me the help menu, but when I try to run it with arguments and devices, etc, I get the previous error. Any advice?


-jboo
 
Old 01-29-2002, 11:44 AM   #2
alfie
Debian Developer
 
Registered: Jan 2002
Location: Vienna / Austria / Europe / Earth / Milky Way
Distribution: Debian
Posts: 22

Rep: Reputation: 15
Re: GRUB not reinstalling

Quote:
Originally posted by jboo
Linux boot disk to the rescue. I boot to the disk, chroot /mnt/sysimage and then try to :

/mnt/sysimage/sbin/grub-install /dev/hda

and get

/sbin/grub: Not found
I'm a little bitt puzzled. You say you chroot to /mnt/sysimage but call grub-install with /mnt/sysimage/sbin/grub-install? Something isn't working right here. When you chroot to /mnt/sysimage you should be able to call grub-install through /sbin/grub-install directly.

So I guess your chroot hasn't worked. Did you take a look at the grub-install script? After all, it's just a script. It calls grub (yes, that /sbin/grub path is hardcoded into that script) - you can easily copy that script over to some tmp directory and tweak it there.

Or you try to find out why your chroot hasn't worked - there might be several reasons for that.

HTH,
Alfie
 
Old 01-29-2002, 01:16 PM   #3
jboo
LQ Newbie
 
Registered: Jan 2002
Location: Texarkana, TX/AR
Distribution: Fedora Core 1
Posts: 9

Original Poster
Rep: Reputation: 0
Well, now I have edited the grub-install file and setup the correct paths.. when I run it now I get

Probing devies to guess BIOS drives. This may take a long time.
/dev/hda does not have any corresponding BIOS drive.

BIOS drive? unfamiliar with that term. I know what they mean seperately, but not together... help...

jboo
 
Old 09-17-2003, 10:07 PM   #4
wwniba
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Linux boot disk to the rescue

run:
>grub
grub>root (hd0,7) //the number 7 is my linux boot partition mark
grub>setup (hd0)
grub>quit

reboot your computer then everything is OK.
 
Old 02-09-2005, 11:59 PM   #5
p_garyali
LQ Newbie
 
Registered: Feb 2005
Location: Bangalore, India
Distribution: Red Hat 9
Posts: 1

Rep: Reputation: 0
Post What is the boot partition mark

Hello,

I am facing a simliar problem. I had to reinstall my WindowsXP and that overwrote the MBR.

I have a small doubt,

>Linux boot disk to the rescue

>run:
>>grub
>grub>root (hd0,7) //the number 7 is my linux boot partition mark
>grub>setup (hd0)
>grub>quit

>reboot your computer then everything is OK

How do I find the linux boot partition mark on my system. On my machine the linux partition is shown as /dev/hda5. Does that mean my linux boot partition on hd0 is 5 and hence I should use root (hd0, 5) .

Thanks,

- Gary
 
Old 10-02-2005, 10:55 AM   #6
dreamydinesh
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
GRUB install directly through command-line

Hello everyone!
One of my friends (who lost that command now!) had got a command line for installing GRUB directly from the RH 9 Distro CDs, which directly put the GRUB (If it was lost after the MBR got cleared, because we reinstalled our windows, for both 98 or XP) on to it's place right working for us.

Does anyone have any idea of this? Please help.

I right am running Fedora Core 2. Provide equivalent commands for it too!

Regards,
:: DreamyDinesh ::
 
  


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
reinstalling grub. greythorne Ubuntu 23 12-03-2005 01:51 AM
reinstalling GRUB 0perat0r Linux - Newbie 7 05-02-2005 02:30 PM
Reinstalling grub darkangel29 Linux - Newbie 3 04-03-2005 05:53 PM
reinstalling grub ELconkestador Linux - Software 1 02-12-2005 10:22 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 04:03 AM


All times are GMT -5. The time now is 05:39 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