Your error points to 2 partitions are marked ‘active’, the use of fdisk as posted by dvhenry will tell us and can use same program to remove one active flag.
As suggested by lostFarmer you have 2 boot flags set, But first can you clarify exactly what you want to do?
Do you want to delete sda6 and sda7 leaving only windows?
No I dont want to delete my linux partitions. I only ant to fix this problem
Actually its not my problem I dont have Windows on my system
Its one of my friends problem
To be honest I would remove the flag from sda2 (which is your extended primary, not your /root partition)
then install GRUB to your MBR and use the grub boot loader.
Otherwise follow the instructions in the link I gave you.
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:
cat /boot/grub/menu.lst
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:
cfdisk /dev/sda
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.
IIRC you can have it either way.
I know the OP wants to keep both OS’s
When you install openSUSE on a windows machine it will switch the boot flag to the extended if that contains the / partition, but it does not write grub to the MBR
Tell you what. I’ll keep my head down and leave it to those that know more than I do.:shame: