LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GRUB not reinstalling (https://www.linuxquestions.org/questions/linux-software-2/grub-not-reinstalling-12981/)

jboo 01-29-2002 11:25 AM

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

alfie 01-29-2002 11:44 AM

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

jboo 01-29-2002 01:16 PM

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

wwniba 09-17-2003 10:07 PM

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.

p_garyali 02-09-2005 11:59 PM

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

dreamydinesh 10-02-2005 10:55 AM

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 ::


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