LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   grub reinstall from rescue CD (http://www.linuxquestions.org/questions/linux-software-2/grub-reinstall-from-rescue-cd-198641/)

shashikanth 06-28-2004 08:41 AM

grub reinstall from rescue CD
 
Hii,

I'm new to linux and in trouble.

I installed XP and it has removed my GRUB and I can't boot linux.
I tried to reinstall GRUB using the Fedora Core2 install CD. But it did not install it, saying something like "no Kernel files are modified. Setup did not modify the bootloader".

Now I need to re install GRUB from the linux rescue CD. How do I do that??
I'm a newbee, distressed by Microsoft.

thnx and regards
shashi

jailbait 06-28-2004 04:06 PM

"Now I need to re install GRUB from the linux rescue CD. How do I do that??"

Boot the rescue CD.
mount your Linux / partition, for example:
mkdir /beanbag
mount -t ext3 /dev/hda3 /beanbag

Do whatever editing is necessary to /beanbag/boot/grub/grub.conf
chroot to your / partition:
chroot /beanbag

install grub:
grub-install /dev/hda

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

shashikanth 06-29-2004 11:55 AM

Thanx Steve,

I got back my linux without a scratch :)

linmix 06-29-2004 01:39 PM

Which one is the rescue CD?

Tangz 07-11-2004 10:36 PM

I know this is somwhat of an old topic but....
 
JAILBAIT....I would greatly appreciate your help in this matter...

http://www.linuxquestions.org/questi...hreadid=203909

I have almost the same exact issue but for some reason when I tried what you posted here...

I am able to mkdir /beanbag
unable to mount with "mount -t ext3 /dev/hdg3 /beanbag"
Linux drive is hdg
It says that/dev/hdg3 is not a valid block device... please help me by posting in the topic above...thank you very much!!

Tangz

linmix 07-15-2004 02:19 AM

Did the /beanbag thing, chroot to /dev/hda10 (automounted by slack liveCD) and ran the grub install /dev/hda.

Now when I reboot I get a grub prompt?!
Code:

grub >
What did I do wrong? What should I type to get back into my system?

linmix 07-18-2004 10:31 AM

It occurred tome that the problem might be derived from the fact that I have a separate /boot partition, so that when I chroot /boot is still not available. Would copying /boot under the root partition do the trick or should I do anything else?

jailbait 07-18-2004 10:52 AM

"It occurred tome that the problem might be derived from the fact that I have a separate /boot partition, so that when I chroot /boot is still not available. Would copying /boot under the root partition do the trick or should I do anything else?"

You should mount /boot between the chroot and grub-install commands.

"Did the /beanbag thing, chroot to /dev/hda10 (automounted by slack liveCD) and ran the grub install /dev/hda."

If /boot is a separate partition then you should have got an error message when you did grub-install because grub-install cannot find grub.conf.

---------------------------
Steve Stites

linmix 07-18-2004 03:04 PM

Didn't get that error message(??).

So how do I mount boot properly? (It's mounted alright, but not as /boot)

jailbait 07-18-2004 03:32 PM

"So how do I mount boot properly? (It's mounted alright, but not as /boot)"

I don't see how it could be already mounted. What is it mounted as?

Suppose that /boot is /dev/hda1 and is an ext3 file system. Then the
commands to straighten out /boot are:
umount /dev/hda1
mount -t ext3 /dev/hda1 /boot

-----------------
Steve Stites

linmix 07-18-2004 03:36 PM

Right, that's what I meant: it is mounted as a regular partition (hda?).

So I umount it and mount it again as /boot ... let's see if that does it for me or if there's still something else ;)

linmix 08-05-2004 02:36 AM

It appears theproblem might be I don't have a grub.conf file. I've written one but grub doesn't recognise/find it. Where should it be located (remember I have a seperate /boot partition - dunno if that changes anything)

fred22 08-22-2004 04:40 AM

To add to this I have done the simlar things.

1> Installed xp over a previous version of win2000(which was running harmoniously with fedora core 2)

2> Ran the fedora rescue disk and mounted fedora core 2 on /mnt/sysimage

3> chroot /mnt/sysimage

4> grub-install /dev/hda (tried running su before as well)

Now at boot time grub starts(sort of) a blinking cursor, with some blind navigation I found a fedora selection and pressed enter..............
Grub now claims that it cannot find the specified kernel image!? I believe hence why I get a blinking cursor, because the splash image is on the partition with the kernel.

I might add these notes as well
linux is installed in /dev/hda8 xp in /dev/hda1.
Also linux is broken up into several partitions.
/
/usr
/home
/tmp

helpppp....!!

Thanks heaps.

-M@


All times are GMT -5. The time now is 06:39 AM.