I had a similar problem. Only fix I found was to get the XP CD. Overwrite current windows install. And then use Disk Management on Windows to delete the Linux partitions. In my case I reinstalled linux, but I see your friend doesn’t want to perform the last step.
A rule of thumb - install Windows, then linux distro. Keep that in mind if you have any reinstalling to do.
Actually, sina_saeedi82, I think what you want to do is keep both Windows XP and Suse 11.2. You only wanted to remove Suse because you thought it was preventing you from booting Windows. Correct?
If so, could you post a listing of the grub boot options:
so we can make sure it contains an entry to chain boot Windows XP?
I anticipate all you have to do is remove the boot flag from /dev/sda1. To do that use cfdisk from a root console or gparted when you get into Suse. For cfdisk run:
Use up - down arrow keys to select partition; left-right arrow keys to choose menu item.
Select sda1, select boot and press Enter. Make sure the flag on sda1 has gone. Save the details to the partition table by selecting ‘write’ and then Enter then type ‘yes’ and Enter. The only problem may be retaining the flag on the extended partition sda2 which cfdisk may not do. Post another fdisk -l if you use cfdisk.
BTW: gpart is for guessing partitions from the file system structure when you have to ignore the partition table completely.
Sorry to be slightly in disagreement but I think the OP now wants to retain both systems. I have several similar setups where GRUB is installed to sda2 (an extended partition), which has the boot flag set, Suse on an extended partition within sda2 and Windows on sda1 with no boot flag set.
If the OP does what you suggest, I think you can only boot Windows.
There is also the problem that Windows writes a Windows signature to the MBR (as distinct from the AA55 signature at the end of the MBR) and, if grub is installed there, the Windows signature is borked. That is how I understood it. Does anybody disagree with this?
I guess the OP should spell out what he really wants.