Here is the additional info you requested:
clarks-imac:~ clark$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *960.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage iMac OSX 927.3 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS iMac OSX +927.0 GB disk1
Logical Volume on disk0s2
1E336067-9D1F-420E-BEA8-8627B08D99D3
Unlocked Encrypted
clarks-imac:~ clark$ diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group A448A397-80E2-4372-940B-4E0DEC7846A3
=========================================================
Name: iMac OSX
Status: Online
Size: 927337639936 B (927.3 GB)
Free Space: 12546048 B (12.5 MB)
|
+-< Physical Volume 714A4831-3FB4-4AC1-8EA5-CACEED76C8CE
| ----------------------------------------------------
| Index: 0
| Disk: disk0s2
| Status: Online
| Size: 927337639936 B (927.3 GB)
|
+-> Logical Volume Family 5E055ADE-DC25-4330-8F12-0AB1B9BED049
----------------------------------------------------------
Encryption Type: AES-XTS
Encryption Status: Unlocked
Conversion Status: Complete
High Level Queries: Fully Secure
| Passphrase Required
| Accepts New Users
| Has Visible Users
| Has Volume Key
|
+-> Logical Volume 1E336067-9D1F-420E-BEA8-8627B08D99D3
---------------------------------------------------
Disk: disk1
Status: Online
Size (Total): 926968578048 B (927.0 GB)
Revertible: Yes (unlock and decryption required)
LV Name: iMac OSX
Volume Name: iMac OSX
Content Hint: Apple_HFS
==========================================================
I first tried this:
sudo fdisk -e /dev/disk0
p
setpid 4
07
flag 4
p
write
y
I was unable to write so I booted from an external drive. At that point I think those commands were successful.
Then I tried to synchronize them using gdisk after reading this: http://sidecar.twocanoes.com/forums/index.php?p=/discussion/770/bootcamp-partiti on-not-shown-in-startup-pane-after-maver…
Throughout all my misadventure, I was never able to change the results of fdisk and gpt. I printed out their contents when I started and they haven't changed.
Thinking back, I wonder if I was actually able to change the partition size. When I went into DU, I dragged the bootcamp partition from something like 30GB to around 80GB. DU worked on it for a while, but when it was done the size had not changed.
I am unsure now at what point I was able to boot from the Bootcamp drive. I'm sorry I am so vague. I worked on this for hours yesterday and I don't have good notes. My browser history shows the dozens and dozens of web sites I visited. ARGGG!
I never used Windows Disk Management.
Neither the gdisk 't' command nor the gdisk 'd' command work. They only allow me to change the first 3 partitions, not the 4th which is Bootcamp. See below:
Command (? for help): p
Disk /dev/disk0: 1875385008 sectors, 894.3 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 581992C7-3743-44D8-9945-2616020AAAE9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1875384974
Partitions will be aligned on 8-sector boundaries
Total free space is 62499477 sectors (29.8 GiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 1811615967 863.7 GiB AF05 iMac OSX
3 1811615968 1812885503 619.9 MiB AB00 Recovery HD
4 1812885504 1875384319 29.8 GiB FFFF BOOTCAMP
Command (? for help): t
Partition number (1-3):
==============================================================
Do you think it would be best to just delete the bootcamp partition. I can have a new Win 7 loaded back in an hour. And I have a complete backup of my files there. If so, what would be the best way to do this? I should note that Bootcamp Assistant no longer knows there is a bootcamp partition, so deleting it with BA is not an option. The only way I know to delete it is using DU. Note, I just checked and it does not appear that DU is working either. It no longer shows the bootcamp drive either! ARGGGG.
I have a complete Time Machine backup. And I have backups of my critical data folders, but I am going to do a complete using Carbon Copy Cloner. I think I see a fresh install in my very near future.
Thanks again for all your help!
One other thing. Three months ago I replaced the HD in my early 2009 iMac with a SSD. Since then my computer locks up for 20 or 30 seconds when it is first booted or woken after sleep. You have any idea what causes this? If I am going to have to reinstall, I might as well try to fix this problem too.