Simple enough.
1) Reinstall the Windows MBR (master boot record).
2) Use fdisk to remove the Linux partition.
3) Use the Windows disk manager to merge the partitions.
Since this will change the system signature pretty significantly, Windows will have to re-authenticate itself with Microsoft on the next boot.
rubberman
Posting Maven
2,571 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 52
Isn't it sufficient to remove CentOS partition and to resize Win 7 one with Win 7 Disk Management tool?
No, because CentOS (and other Linux distros) replace the windows MBR/bootloader with an alternative bootloader like Grub or Grub2. So simply removing the CentOS partition and resizing the Windows 7 partition isn't enough.
As rubberman has already stated, you first need to boot into windows and restore the Windows MBR before using a disk management/partitioning tool to remove the CentOS partition and resize the Windows 7 partition.
JasonHippy
Practically a Posting Shark
862 posts since Jan 2009
Reputation Points: 615
Solved Threads: 146
Skill Endorsements: 5
How can i edit pictures in ubuntu?
Please don't hijack other people's threads. You can use GIMP or something.
jbennet
Moderator
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29