Running Mountain Lion.
I added a partition with Disk Utility and then had second thoughts about it. I'd like to remove the partition i created, MacSSD2 and hand over its space back to MacSSD. As you can see, the "-" button is disabled even when i select the MacSSD2 partition.
This is the output from command line:
~ - Tue Aug 14 10:12:00: diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *512.1 GB disk0 1: EFI 209.7 MB disk0s1 2: Apple_HFS MacSSD 425.7 GB disk0s2 3: Apple_Boot Recovery HD 784.2 MB disk0s5 4: Apple_CoreStorage MacSSD 2 85.3 GB disk0s4 <--- Want to remove this 5: Apple_Boot Boot OS X 134.2 MB disk0s6 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS MacSSD2 *84.9 GB disk1 ~ - Tue Aug 14 10:18:33: sudo gpt -r show disk1 start size index contents 0 165900968
diskutil list(and point out which partition you want to delete) and
sudo gpt -r show disk0(or whichever disk number contains the partition - you can see this in the previous command's output; the latter command requires your password and shows the raw partition table).