Unable to recover disk space Mac OS X EI Capitan I deleted one partition on my mac and now I am not able to recover that space.  diskutil list shows below output. Here I see total space is 500 GB and size of Yosemite(installed El Capitan on it) is 248 GB. So where is remaining 250 GB.





sudo  fdisk  /dev/disk0

Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE 1023 254  63 - 1023 254  63 [         1 -  976773167] &lt;Unknown ID&gt;
 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    

sudo  gpt  -r  show  /dev/disk0

      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  488816512         
  489226152  485912608      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  975138760    1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
  976408296     364839         
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header
If backup is available then remove the recovery HD, resize the main volume to fill the remaining available space (since it appears the recovery HD is what is in the way of resizing) and then recreate the recovery HD with whatever you're comfortable with (suggestion https://github.com/MagerValp/Create-Recovery-Partition-Installer )