hello
THere are 2 issues i want to put light on in this doubt.
ISSUE 2 is more interesting....pls read on..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ISSUE 1: THe general issue
Mr. x has dual boot windows + linux, with say grub loader loading the MBR. His windows goes corrupt and he decides to reformat Windows.
Due to that the windows installtn takes over grub and he cant boot linux via grub(has to use boot disk made during installation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
ISSUE 2:
I am facing this problem and its a bit weird one. (very eager to know wht exactly has happened)
SOmehow there was problem with my grub loader, when i started to boot the box...a DISK FAILURE error occured. Luckily i could boot into linux using the boot disk but cudnt boot into windows xp coz i hadnt made any boot disk. I decided to get XP repaired using boot disk. SO i got XP installtn bootable CD and put it inside after making the 1st boot device as CDROM....Verfying DMI pool data...
Booting from ATAPI CDROM
PRess any key to boot from CD......If i press enter it boots frm cd and xp cd installtn starts...but if i dont do anything...
auto boots from my hdd and GRUB LOADS!!!!!...howzzzzat?..this happens only when i put in xp cd only, otherwise it gives a disk boot faailure or i hv to boot from floppy.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~PLs tell the general way to address issue 1, will the configurtn of grub.conf help? if yes how?
pls explain the issue2, i am confused, is it that all grub files are fine, MBR needs just some trigger using xp bootable cd rom...???
help would be highly appreciated...
thank you in advance
amogh.

1) All that needs to be done it to use the floppy to boot into GNU/Linux and then reinstall the grub boot loader with:
# grub-install /dev/hda2) If a key isn't pressed when "Press any key to boot from CD...." appears then it will then go on to boot from the next device listed in your BIOS, probably it will try the floppy and failing that eventually the hard drive. This is completely normal behaviour. If you needs to repair you XP install, try running "fixmbr" and "fixboot" from the recovery console which you can get to when booting off the xp CD. This should fix windoze for you. If it doesn't reinstall wundoze over thetop of itself. Oce youhve a working xp install, boot GNU/Linux with the floppy and reinstall grub with the command given above.
thx 3Dave,
the issue2 ws solved on running grub-install...
i hv one more doubt now...1. Will grub-install work if lilo is the current bootloader and that i am not bothered about keeping lilo??
2. Also is there any parallel command to restore lilo if restoring lilo is a concern?...are there any chngs that are to be made to grub.conf then? or it just takes directly the current dual boot configuration from lilo.conf?thx very much,
amogh
1) Installing grub will automatically overwrite lilo or any other bootloader that you may have in your MBR. 2) You can restore lilo with the lilo command...and it will just overwrite grub. You will have to make sure that your grub.conf file is correct as it wont take any settings from lilo.conf. Safest way would be to install it to a floppy (grub-install /dev/fd0) and try that first before writing it to your MBR.
