osx - Use free space on a Mac (with a SSD)

26
2014-06
  • Armand G.

    I have a MacBook Air with a 128GB SSD, I installed Yosemite on a second partition then removed it and now I have that: enter image description here 50GB of free space and I can't find how to give it to Macintosh HD (the partition), does anyone know how to do that?

  • Answers
  • Spiff

    Your screenshot shows that you're using a Core Storage logical volume group. If you didn't set this up intentionally yourself, you probably got it by enabling FileVault 2 full disk encryption. Which means your question comes down to the same thing as this one, and the answer for you is probably the same:

    How do I resize a FileVault 2 encrypted partition?

  • Nate

    You should be able to click and drag the bottom of the Macintosh HD partition downward to increase its size with the extra free space and then click apply to apply the changes without deleting the current partitions.

    If that does not work, an alternative option would be to back up the Macintosh HD partition with Time Machine and reset/erase the entire partition table. Then you can reinstall Mac OS X with the disk and use the backup to restore your current settings.


  • Related Question

    osx - Mac OS X 10.4: Non-destructively enlarge HFS+ partition
  • elcelista

    I have a MacBook running OS X 10.4.11. Some time ago I shrank my main hard disk partition in order to dual-boot with Linux, but now I am running out of space on the Macintosh partition, and I would like to remove the Linux partition and restore the Macintosh partition to its original size. I have been able to remove the Linux partition, but I cannot seem to merge the free space back into the Macintosh partition. Originally I used GParted to shrink the partition, but I cannot use GParted to restore the partition because GParted is unable to enlarge HFS+ partitions.

    Does anyone know how I can restore my HFS+ partition to its original size without losing my data or spending money on a commercial product?

    If I attempt to use diskutil to resize the partition (while booted from the OS X installation DVD), I get the following:

    # diskutil resizeVolume disk0s2 119690149888B
    Started resizing on disk disk0s2 Macintosh HD
    Verifying
    Resizing encountered error No space left on device (28) on disk

    The 119690149888 bytes value was listed as the maximum size in the output of the command diskutil resizeVolume disk0s2 limits.

    I found other instructions for what I want to do at http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp#Restoring_your_Mac_to_its_original_state, but this requires Boot Camp, which is no longer available for OS X 10.4.

    (This is almost the same problem as question 50317 "Resize HFS Partition", but on Mac OS X 10.4 the Disk Utility application cannot resize partitions non-destructively. When I attempt to re-partition it warns that all data will be lost.)


  • Related Answers
  • Chris Johnsen

    Can GParted rewrite the partition map (delete the linux partition and then resize the remaining HFS+ partition) without trying to enlarge the HFS+ filesystem? If so you might then be able to use diskutil to enlarge the HFS+ filesystem to fit the bounds of the newly grown partition.

    Before trying this (or even using any of the commercial software), you should make sure you have a full backup (that way you can just destructively redo the partition with Disk Utility and restore from your backup—plus get a ‘free’ defrag for your troubles).