*Rescuing GRUB when it's gone because of partition table modification:*
This is only possible when your boot partition is not damaged. For example,
if you have deleted the /boot partition from your disk it will work.
Follow the steps below:

Enter the Linux DVD/CD (any Linux CD/DVD will work)

 * Select rescue mode if there's no rescue mode then select text mode and
type linux rescue then Enter
 * Skip media test
 * Enable Network interface: select no
 * Next>Next
 * Type the following commands

 # chroot /mnt/sysimage
# grub
# root (hd0, X)
// hd0 means first hard disk, X is any value for example X=0 means C
drive(1st primary partition c:), X=1 (means 2nd primary partition) X=4
(means D drive or partition after last primary partition)

 * Continue changing value of X and give that command until you see
something like this:
"filesystem 0x83 or ext3"

* When this comes proceed to the next command
# setup (hd0)

This commands install grub in active primary partition of First hard disk.
Then type

# quit
# exit

And instantly eject the DVD to boot from hard-disk and it's fixed.

For who are more advanced follow this (Does not require DVD/CD, if you see
grub prompt starting the computer and it does not boot):
GRUB> root (hd0, X)

// Same as the previous one continue giving this command until you see
"filesystem 0x83 or ext3" when you get this message remember(or write down)
the value of X which is needed later
GRUB> cat /boot/grub/menu.lst

Here you will be able to see the boot menu configuration

# type the commands same as there after title "Fedora Core" except the
command root (hd0, X) which is shown

It will be like this:
GRUB> kernel /vmliuz-2.6.23.1-42.fc8 ro ...........
Use tab for completion and accuracy


Second command will be like this
GRUB> initrd /initrd -****fcX.img  // * and X will be different for
different versions
And finally type this command which will lead you
GRUB> boot

The system will boot smoothly. After it is booted then you make little
changes to /boot/grub/menu.lst file to boot always from correct partition.
To do this just change the line after
"Title Fedora Core 8..."
 * There you wiil replace root (hd0, X) with the correct value of X if you
don't know how to edit see it from quoted texts below which was a previous
post.


-- 
Thanks & Regards
Sunil Naikwadi
9820668120

"Think positive in life always and look for opportunities when u can help
Others."


[Non-text portions of this message have been removed]

Reply via email to