Need help reinstalling GRUB after installing Windows OS
I have a multiboot machine which used to run Debian Etch and Windows XP, and without saying, I often had to reinstall Windows XP after which I will have to reinstall GRUB again. I often used OpenSolaris LiveCD which has a GRUB prompt when booted. I pressed 'c' to go into the command prompt of GRUB and did a 'find /boot/grub/stage1' for which I got a partition like (hdX,Y). Then I did a 'root (hdX,Y)' and 'setup (hd0)' and GRUB would get installed.
Sometimes, I used to boot into Ubuntu live and do a 'grub-install /dev/sda' to fix it. But now with recent versions of Ubuntu and Debian Lenny these well-documented procedures do not seem to work.
When I do a 'find /boot/grub/stage1' in the grub prompt, it gives a 'file not found error' and when i do a 'grub-install' command it says it can't find the '/boot/grub/stage1 and etc. etc.'. But the files are there safe in the linux partition, which I confirmed by booting into the LiveCD and mounting the partition.
How to install GRUB now? I noticed that these problems weren't there with older versions of distros. Has something changed in newer distros that I am unaware of?
Thanks in advance.