BOOTCAMP partition not showing up on Mac OSX after resize
I have a 2007 20" iMac with a 320GB hard disk, 36GB of which was assigned to a Windows Bootcamp partition. I used the Disk Utility in El Capitan to decrease the size of the Mac partition to allow more space on the Windows partition but after I did that, the Boot Camp partition was no longer available. I tried various approaches to rectify this issue from a couple of different forums but have just succeeded in making things worse. I couldn't boot into the Mac Recovery partition so I removed that and now the Bootcamp partition is not even visible in Disk Utility:
This is what I get with a couple of the Disk Utility commands:
imac:~ scott$ sudo gpt -vv -r show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=320072933376; sectorsize=512; blocks=625142448
gpt show: /dev/disk0: PMBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: Sec GPT at sector 625142447
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 624470624 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
624880264 262151
625142415 32 Sec GPT table
625142447 1 Sec GPT header
imac:~ scott$ sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 38913/255/63 [625142448 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 625142447] <Unknown ID>
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
Is there any way to recover my Windows partition or have I messed it up too much? I'm getting a new Mac next week and was hoping to backup and restore both the Mac and Windows partitions.
Windows 7