Originally Posted by nigelc
I Have a system with Windoze XP on the first drive and Fedora core 5 on the second. The windoze has a worms and viruses. I want to re-install the windows. I have copied the mbr with dd if=dev/sda of=/home/ewok/boot.mbr bs=512 count=1 Is that all I need to get the grub to work again? Or do I just need to run grub.
That will indeed make a copy of the mbr, but you will still need a way to get into Fedora after Windows is installed. One way to do it is simply install grub on a floppy.
I don't recall if the FC5 boot CD has an option to boot the existing install.
To put grub on a floppy:
dd if=/dev/sda of=/dev/fd0 bs=512 count=1
root (hdX,Y) --replace X,Y with the drive #, partition #
where /boot is mounted, remembering that grub counts from zero.
If /boot is on sda2, then, it will be (hd0,1)