If your really did this then you removed part of windows.
sudo grub-install /dev/sda1
The difference is sda where the MBR or Master Boot Record is and the PBR or partition boot record. (Windows may call it something else). See this site while mostly Vista it helps to understand how windows works:
http://www.multibooters.co.uk/multiboot.html
You need to run the XP repairs.
You can do it with windows repair disk or testdisk:
Restore PBR boot sector for windows from linux using testdisk
http://sourceforge.net/apps/mediawik...ms:Boot_Sector
Check disk from CD - WinXP recovery console - menu shown with example
http://kb.wisc.edu/helpdesk/page.php?id=5097
This is all the commands - you should only have to run fixboot, If you run fixMBR you will have to reinstall grub to sda.
To run the Recovery Console from the Windows XP startup disks or the Windows XP CD-ROM, follow these steps:
1. Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD-ROM drive, and then restart the computer.
Click to select any options that are required to start the computer from the CD-ROM drive if you are prompted.
2. When the "Welcome to Setup" screen appears, press R to start the Recovery Console.
3. If you have a dual-boot or multiple-boot computer, select the installation that you must access from the Recovery Console.
4. When you are prompted, type the Administrator password. If the administrator password is blank, just press ENTER.
5. At the command prompt, type this commands one at a time.
FIXMBR C:
FIXBOOT C:
COPY [CDDRIVE]:\I386\NTLDR C:\
COPY [CDDRIVE]:\I386\NTDETECT.COM C:\
BOOTCFG /rebuild
Bookmarks