how to expand bootcamp boot partition to previously existed NTFS data partition Some time ago I've partitioned my disk using this scheme: shrinked OS X partition, created NTFS data partition for Windows, then installed Windows on Bootcamp partition.

Recently I installed Parallels Desktop ("run Windows from the Boot Camp partition" mode) which, expectedly, ruined my data NTFS partition: Windows doesn't see it any more, there's just no disk shown under Windows; partition shows as "Unallocated" in Computer Management > Disk Management.

Now I want to split the data partition space between my Bootcamp disk and OS X partition [1], so I have only one partition for Bootcamp and another for OS X.

How can I resize bootcamp partition and OS X partitions without ruining either of them?
After resizing, I would also like to upgrade my OS X from 10.8.5 to latest Mavericks, which sounded impossible with two-Windows-partitions setup.

[1] -- as I didn't found a reliable way to have both Windows data partition and regularly update OS X without harming that partition (1, 2).
To share with other users facing a similar situation, here is how I solved the problem--and avoided completely reinstalling OS X and Windows. For reference, my OS X version was Mountain Lion when I started solving the problem--and I needed to upgrade to Mavericks in the end.


Back up Windows partition with WinClone to an external HDD
Run "Backup now" in Time Machine to make sure I have a latest backup of OS X partition
Under OS X Disk Utility, remove Windows system partition (which is typically labeled BOOTCAMP)
In OS X Recovery boot, remove OS X partition and create it from the scratch (make it use whole HDD space)
Install a clean OS X (my MBA 2011 allowed only Lion--if I remember correctly, it's fine as long as it's not a later release than my Time Machine backup)
Restore my OS X partition from Time Machine. It makes Recovery Partition disappear, we'll fix it in the next step
From AppStore, reinstall Mountain Lion. It's only needed to re-create the Recovery Partition.
Under OS X Disk Utility, manually create a FAT partition for Bootcamp following WinClone support article. WinClone will convert it into NTFS in the next step.
This is where you decide how HDD space will be split between OS X and Windows.
Restore Bootcamp partition from your backup (#1) to the Windows partition you created in #8.
Boot Windows under Bootcamp; it can run CHKDSK automatically, reporting that volume could be dirty--but didn't find any problems.
If you use Trackpad++, it needs to be reinstalled now. Boot Windows under Bootcamp, reinstall PowerPlan Assistant first, then Trackpad++.
Under OS X, re-create virtual machine in Parallels.
Upgrade to Mavericks.
Move to Bootcamp system partition all the data files that were originally stored on Windows data partition (provided you have their backup).


The only problem that's left at this point is that Parallels freezes VM when used in "all apps in one window" default mode (which is not Coherence, Fullscreen or Modality mode). Will seek solution for it later; at least it is stable for a week now in Coherence mode.

Before following the above sequence, I tried to recreate data partitition with Windows, converting the unallocated space that sized exactly like the lost partition. Failed: I found that there is a new partition which originally wasn't there: sized 620MB, but it didn't appear as recovery partition among Startup Disks on boot. Didn't try deleting it though, maybe it could help.