grub reinstall from rescue CD
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
"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:
mount -t ext3 /dev/hda3 /beanbag
Do whatever editing is necessary to /beanbag/boot/grub/grub.conf
chroot to your / partition:
Be prepared. Create a LifeBoat CD.
I got back my linux without a scratch :)
Which one is the rescue CD?
I know this is somwhat of an old topic but....
JAILBAIT....I would greatly appreciate your help in this matter...
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!!
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?!
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?
"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.
Didn't get that error message(??).
So how do I mount boot properly? (It's mounted alright, but not as /boot)
"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:
mount -t ext3 /dev/hda1 /boot
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 ;)
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)
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.
|All times are GMT -5. The time now is 04:30 PM.|