Arne Z

Q: Can´t get my full Space back

Hey guys, my Problem is that i had a second Partition for Windows 10 on my internal drive and i deleted it via the Disk Utility and not via the Bootcamp Assistant.

 

Now i can´t get the free Space back for my OS-X partition because it should be not journaled - what i don´t think - and i can´t partition it...

 

This is what i tried - i tried to get it via Recovery and fsck but that does not help too...

 

Arnes-MacBook-Pro:~ Zanter$ diskutil list

/dev/disk0 (internal, physical):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *121.3 GB   disk0

   1:                        EFI EFI                     209.7 MB   disk0s1

   2:          Apple_CoreStorage MacSSD                  80.4 GB    disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

   4:                  Apple_HFS DATA                    7.9 GB     disk0s4

   5:                        EFI NO NAME                 104.9 MB   disk0s5

   6:         Microsoft Reserved                         16.8 MB    disk0s6

   7:                  Apple_HFS OHNE TITEL              5.5 GB     disk0s7

   8:                  Apple_HFS Ohne Titel              25.8 GB    disk0s8

/dev/disk1 (internal, virtual):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:                  Apple_HFS MacSSD                 +80.0 GB    disk1

                                 Logical Volume on disk0s2

                                 F84885BB-D2CE-4EEF-8AFF-937D40E0E6D4

                                 Unencrypted

Arnes-MacBook-Pro:~ Zanter$ diskutil eraseVolume HFS+ Blank /dev/disk0s4

Started erase on disk0s4 DATA

Unmounting disk

Erasing

Initialized /dev/rdisk0s4 as a 7 GB case-insensitive HFS Plus volume

Mounting disk

Finished erase on disk0s4 Blank

Arnes-MacBook-Pro:~ Zanter$ diskutil eraseVolume HFS+ Blank /dev/disk0s7

Started erase on disk0s7 OHNE TITEL

Unmounting disk

Erasing

Initialized /dev/rdisk0s7 as a 5 GB case-insensitive HFS Plus volume

Mounting disk

Finished erase on disk0s7 Blank

Arnes-MacBook-Pro:~ Zanter$ diskutil eraseVolume HFS+ Blank /dev/disk0s8

Started erase on disk0s8 Ohne Titel

Unmounting disk

Erasing

Initialized /dev/rdisk0s8 as a 24 GB case-insensitive HFS Plus volume

Mounting disk

Finished erase on disk0s8 Blank

Arnes-MacBook-Pro:~ Zanter$ diskutil mergePartitions HFS+ Lion disk0s2 disk0s4

The chosen disk does not support resizing.

Do you wish to format instead? (y/N) n

Merge canceled

Arnes-MacBook-Pro:~ Zanter$

 

Thanks you!

MacBook Pro (Retina, 13-inch,Early 2015), OS X El Capitan (10.11.3)

Posted on Feb 3, 2016 9:15 AM

Close

Q: Can´t get my full Space back

  • All replies
  • Helpful answers

  • by Loner T,

    Loner T Loner T Feb 3, 2016 10:59 AM in response to Arne Z
    Level 7 (23,898 points)
    Safari
    Feb 3, 2016 10:59 AM in response to Arne Z

    The simplest and safest method to get your disk space back is

     

    1. Backup OSX and all your files - Use Time Machine to back up or restore your Mac - Apple Support .

    2. Boot into Internet Recovery (Command+Opt+R) - OS X: About OS X Recovery - Apple Support .

    3. Click on Utilties -> Disk Utility and Erase your internal whole disk.

    4. Restore OSX and your files - Use Time Machine to back up or restore your Mac - Apple Support .

     

    This requires a separate external disk which can accommodate TM backup - Backup disks you can use with Time Machine - Apple Support .

  • by Arne Z,

    Arne Z Arne Z Feb 3, 2016 2:04 PM in response to Loner T
    Level 1 (0 points)
    Feb 3, 2016 2:04 PM in response to Loner T

    I only have an external SSD, i don´t have enough free Space, is there another method?

  • by Loner T,

    Loner T Loner T Feb 3, 2016 2:08 PM in response to Arne Z
    Level 7 (23,898 points)
    Safari
    Feb 3, 2016 2:08 PM in response to Arne Z

    Yes, there is another method. Can you post the output of

     

    diskutil cs list

     

    Do you have FileValult2 enabled?

  • by Arne Z,

    Arne Z Arne Z Feb 4, 2016 2:24 AM in response to Loner T
    Level 1 (0 points)
    Feb 4, 2016 2:24 AM in response to Loner T

    Here, FileVault is off.

     

    Arnes-MacBook-Pro:~ Zanter$ diskutil cs list

    CoreStorage logical volume groups (1 found)

    |

    +-- Logical Volume Group 09493E59-3008-48DC-9C32-A0697FEB7780

        =========================================================

        Name:         MacSSD

        Status:       Online

        Size:         80371269632 B (80.4 GB)

        Free Space:   18948096 B (18.9 MB)

        |

        +-< Physical Volume 084ADC73-A2FB-48C9-AB8D-ADAD43D33A61

        |   ----------------------------------------------------

        |   Index:    0

        |   Disk:     disk0s2

        |   Status:   Online

        |   Size:     80371269632 B (80.4 GB)

        |

        +-> Logical Volume Family 26AECEB9-171A-489E-9FC2-6ACBF5B9304B

            ----------------------------------------------------------

            Encryption Type:         None

            |

            +-> Logical Volume F84885BB-D2CE-4EEF-8AFF-937D40E0E6D4

                ---------------------------------------------------

                Disk:                  disk1

                Status:                Online

                Size (Total):          80000000000 B (80.0 GB)

                Revertible:            Yes (no decryption required)

                LV Name:               MacSSD

                Volume Name:           MacSSD

                Content Hint:          Apple_HFS

    Arnes-MacBook-Pro:~ Zanter$

  • by Loner T,

    Loner T Loner T Feb 4, 2016 3:03 AM in response to Arne Z
    Level 7 (23,898 points)
    Safari
    Feb 4, 2016 3:03 AM in response to Arne Z

    1. Revert CS to JHFS+ so that a mergePartitions can be used.

         diskutil cs revert F84885BB-D2CE-4EEF-8AFF-937D40E0E6D4

     

     

    2. Merge partitions. This will also destroy Recovery HD. It can be rebuilt by re-installing OS X which will not alter your non-OSX files. The order of disks is critical in the following command. Please see the diskutil mergePartitions help later in the reply.

     

         diskutil mergePartitions jhfs+ "Macintosh HD" disk0s2 disk0s8

    diskutil mergePartitions

    Usage:  diskutil mergePartitions [force] format name

            DiskIdentifier|DeviceNode DiskIdentifier|DeviceNode

     

    Merge two or more pre-existing partitions into one.  The first disk parameter

    is the starting partition; the second disk parameter is the ending partition;

    this given range of two or more partitions will be merged into one.

     

    All partitions in the range, except for the first one, must be unmountable.

     

    All data on merged partitions other than the first will be lost; data on the

    first partition will be lost as well if the "force" argument is given.

     

    If "force" is not given, and the first partition has a resizable file system

    (e.g. JHFS+), it will be grown in a data-preserving manner, even if a different

    file system is specified (in fact, your file system and volume name parameters

    are both ignored in this case). If "force" is not given, and the first

    partition is not resizable, you will be prompted if you want to erase.

     

    If "force" is given, the first partition is always formatted. You should

    do this if you wish to reformat to a new file system type.

     

    Merged partitions are required to be ordered sequentially on disk.

    See diskutil list for the actual on-disk ordering; BSD slice identifiers

    may in certain circumstances not always be in numerical order but the

    top-to-bottom order given by diskutil list is always the on-disk order.

     

    Ownership of the affected disk is required.

     

    Example: diskutil mergePartitions JHFS+ NewName disk3s4 disk3s7

             This example will merge all partitions *BETWEEN* disk3s4 and disk3s7,

             preserving data on disk3s4 but destroying data on disk3s5, disk3s6,

             disk3s7 and any invisible free space partitions between those disks;

             disk3s4 will be grown to cover the full space if possible.

     

    3. Your current layout was created because you had external storage connected to the Mac when trying to run BC Assistant and partition your disk. Do not connect any external storage to the Mac, unless it is requested by BC Assistant. The 104MB Windows EFI is a result of such storage being connected.

  • by Arne Z,

    Arne Z Arne Z Feb 4, 2016 3:38 AM in response to Loner T
    Level 1 (0 points)
    Feb 4, 2016 3:38 AM in response to Loner T

    Same Problem...

     

    Arnes-MacBook-Pro:~ Zanter$ diskutil cs revert F84885BB-D2CE-4EEF-8AFF-937D40E0E6D4

    Started CoreStorage operation on disk1 MacSSD

    Switching partition from Core Storage type to original type

    Reclaiming space formerly used by Core Storage metadata

    Even though the disk is now fully reverted, you should reboot soon to re-mount your reverted disk from the actual original partition

    Removing Physical Volume

    Destroying Logical Volume Group

    Remounting former Physical Volume as normal disk

    Core Storage LV UUID: F84885BB-D2CE-4EEF-8AFF-937D40E0E6D4

    Core Storage disk: disk0s2

    Finished CoreStorage operation on disk1 MacSSD

    Arnes-MacBook-Pro:~ Zanter$ diskutil mergePartitions jhfs+ "Macintosh HD" disk0s2 disk0s8

    The chosen disk does not support resizing.

    Do you wish to format instead? (y/N) n

    Merge canceled

    Arnes-MacBook-Pro:~ Zanter$

  • by Loner T,

    Loner T Loner T Feb 4, 2016 4:56 AM in response to Arne Z
    Level 7 (23,898 points)
    Safari
    Feb 4, 2016 4:56 AM in response to Arne Z

    Please reboot first. After reboot, post the output of diskutil list.

  • by Arne Z,

    Arne Z Arne Z Feb 4, 2016 10:13 AM in response to Loner T
    Level 1 (0 points)
    Feb 4, 2016 10:13 AM in response to Loner T

    Arnes-MacBook-Pro:~ Zanter$ diskutil list

    /dev/disk0 (internal, physical):

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *121.3 GB   disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:                  Apple_HFS MacSSD                  80.4 GB    disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:                  Apple_HFS Blank                   7.9 GB     disk0s4

       5:                        EFI NO NAME                 104.9 MB   disk0s5

       6:         Microsoft Reserved                         16.8 MB    disk0s6

       7:                  Apple_HFS Blank                   5.5 GB     disk0s7

       8:                  Apple_HFS Blank                   25.8 GB    disk0s8

    Arnes-MacBook-Pro:~ Zanter$ diskutil mergePartitions jhfs+ "Macintosh HD" disk0s2 disk0s8

    Merging partitions into a new partition

         Start partition: disk0s2 MacSSD

         Finish partition: disk0s8 Blank

     

    Merging partitions encountered error "MediaKit reports partition (map) too small; if you recently grew your whole-disk, you should run whole-disk repair (-5341)".

    The erase will not occur.

    Arnes-MacBook-Pro:~ Zanter$

     

    Now the "Blank" partitions are away but the Main Partition is still 80GB...

  • by Loner T,

    Loner T Loner T Feb 4, 2016 10:36 AM in response to Arne Z
    Level 7 (23,898 points)
    Safari
    Feb 4, 2016 10:36 AM in response to Arne Z

    Let us convert all of them to Free Space.

     

    diskutil eraseVolume free Free disk0s3

    diskutil eraseVolume free Free disk0s4

    diskutil eraseVolume free Free disk0s5

    diskutil eraseVolume free Free disk0s6

    diskutil eraseVolume free Free disk0s7

    diskutil eraseVolume free Free disk0s8

     

    Now run Disk Utility and extend Macintosh HD to the maximum size. Once it covers the entire disk, re-install OSX to get Recovery HD back.

  • by Arne Z,

    Arne Z Arne Z Feb 17, 2016 3:22 PM in response to Loner T
    Level 1 (0 points)
    Feb 17, 2016 3:22 PM in response to Loner T

    So i just got another Problem like this, i installed my Windows Drive new on my internal SSD and i tried to delete the OSXRESERVED partition where the ISO File from Bootcamp was on to get these 8 GB back. I could not combine these 8 GB with my OS X Partition so i tried diskutil eraseVolume free Free disk0s4 (That was the ISO Partition) to get the free space back and now the whole partition is away and i cannot find it...

  • by Loner T,

    Loner T Loner T Feb 17, 2016 5:34 PM in response to Arne Z
    Level 7 (23,898 points)
    Safari
    Feb 17, 2016 5:34 PM in response to Arne Z

    Can you post the output of

     

    diskutil list

    sudo gpt -vv -r show /dev/disk0