iPietro

Q: How to erase free space in partition?

Hey guys,

 

I've got a little problem here. I wanted to partition my hard disk to try out the new Yosemite. The Macintosh HD that you see in the picture is for Mavericks and Macintosh HD 2 is for Yosemite. However, there is a third part of Free Space. Now, I'd like to include that free space into Macintosh HD 2.

How do I do that?

 

Thank you,

 

Pietro

Screen Shot 2015-01-25 at 11.48.48 AM.png

OS X Mavericks (10.9)

Posted on Jan 25, 2015 2:56 AM

Close

Q: How to erase free space in partition?

  • All replies
  • Helpful answers

Page 1 Next
  • by Eric Root,

    Eric Root Eric Root Jan 25, 2015 8:22 AM in response to iPietro
    Level 9 (70,250 points)
    iTunes
    Jan 25, 2015 8:22 AM in response to iPietro

    Boot into the Recovery Partition (command - R on a restart), open Disk Utility/Partition there, select the free space, and then use the - sign to delete it. At the bottom right of HD 2 you should see /////. Click and hold on that and drag it to the bottom.

  • by iPietro,

    iPietro iPietro Jan 26, 2015 5:46 AM in response to Eric Root
    Level 1 (0 points)
    Jan 26, 2015 5:46 AM in response to Eric Root

    It doesn't work, I can't even clic on the minus sign. I can use the delete button, though. Still, it doesn't let me resize it.

     

    I've tried to open the Disk Utility in Yosemite and it is a little better. However, it gives me this:

    [I know I shouldn't create a third partition, but it seems to be the only way to resize Macintosh HD 2]

    Screen Shot 2015-01-26 at 14.37.31.png

  • by keg55,

    keg55 keg55 Jan 26, 2015 6:01 AM in response to iPietro
    Level 6 (8,368 points)
    Mac OS X
    Jan 26, 2015 6:01 AM in response to iPietro

    You have a Logical Volume Group (LVG) with Logical Partitions within.

     

    Can you provide a screen shot from Terminal using this: diskutil cs list so we can see your LVG structure? We may be able to use the Terminal CoreStorage (cs) commands to delete/resize things.

     

    Also, is your volume encrypted by using FileVault 2?

  • by iPietro,

    iPietro iPietro Jan 26, 2015 5:56 AM in response to keg55
    Level 1 (0 points)
    Jan 26, 2015 5:56 AM in response to keg55

    There you go :-)

    Screen Shot 2015-01-26 at 14.55.23.png

  • by keg55,Helpful

    keg55 keg55 Jan 26, 2015 6:07 AM in response to iPietro
    Level 6 (8,368 points)
    Mac OS X
    Jan 26, 2015 6:07 AM in response to iPietro

    Thanks.

     

    So, the 1st thing I would do is decrypt your drive. So, turn OFF FileVault 2 via System Preferences/ Security & Privacy.

     

    Then, open Terminal and do the diskutil cs list command again. We should see something similar to what you showed before only Revertible:  Yes (unlock and decrytion required) should say just Yes. Please provide another screen shot of the diskutil cs list command.

     

    Did you use FileVault 2 when you had just Mavericks installed?

  • by iPietro,

    iPietro iPietro Jan 26, 2015 1:37 PM in response to keg55
    Level 1 (0 points)
    Jan 26, 2015 1:37 PM in response to keg55

    It has just finished decrypting… So here's the new screen. I'm not sure about Mavericks, but I don't think so (I'll check it as soon as I can tomorrow)

     

    Screen Shot 2015-01-26 at 22.34.44.png

  • by keg55,

    keg55 keg55 Jan 26, 2015 2:18 PM in response to iPietro
    Level 6 (8,368 points)
    Mac OS X
    Jan 26, 2015 2:18 PM in response to iPietro

    Thanks.

    As you can see, we can not revert the Logical Volume Group as seen with Revertible:    No.

     

    Do you have a back up of your data? Meaning, you have a back up of your Mavericks partition? Also, was your Mavericks partition encrypted with FileVault before you added the 2nd partition (Macintosh HD 2)?

     

    We will need to delete the LVG (Macintosh HD 2) but I don't know what will happen to the Macintosh HD as the whole LVG structure is whacky. And I don't want to tell you how to do that if it erases everything. What I think will happen is ONLY the Macintosh HD 2 will get deleted and the Macintosh HD will be left alone and will be fine. I'm just not sure.

     

    For example my Macbook Pro Retina has a 250GB FileVault 2 encrypted drive running Yosemite. When I go into Disk Utility, select the drive and Partition tab, I can add 1 partition which splits in half (no free space). So I have 2-125GB partitions. that look like the following in Disk Utility / Partition tab.

     

    Left pane of DU.

    Macintosh HD

         Macintosh HD

         Macintosh HD 2

     

    Right pane of DU.

    Macintosh HD

    Macintosh HD 2

     

    Yours is different where.... the left pane and right panes don't match up. Because of this I think we need to put your drive back the way it was with just Mavericks and without FileVault 2; then you can decide how/what to do to create a 2nd partition for OS X Yosemite.

    Left pane of DU

    Macintosh HD 2

         Macintosh HD 2

         Macintosh HD

     

    Right pane of DU

    Macintosh HD

    Macintosh HD 2

  • by iPietro,

    iPietro iPietro Jan 27, 2015 12:13 PM in response to keg55
    Level 1 (0 points)
    Jan 27, 2015 12:13 PM in response to keg55

    I'm using Mavericks right now and… what the heck? D:

     

    By the way, there's no Firevault here too.

    Screen Shot 2015-01-27 at 9.07.56 PM.png

  • by keg55,

    keg55 keg55 Jan 27, 2015 12:23 PM in response to iPietro
    Level 6 (8,368 points)
    Mac OS X
    Jan 27, 2015 12:23 PM in response to iPietro

    Stay in your Mavericks install and please provide a Disk Utility screen shot. One after clicking on your Mavericks partition and another after clicking on your Yosemite partition.

     

    I think we'll be able to delete your Yosemite partition and merge all the free space back into your Mavericks partition after seeing DU.

     

    The Terminal screen shot you just provided is very helpful!

  • by iPietro,

    iPietro iPietro Jan 27, 2015 12:59 PM in response to keg55
    Level 1 (0 points)
    Jan 27, 2015 12:59 PM in response to keg55

    Check this out! It's working, we did it!

     

    I don't even know how's that possible but Mavericks has just decided to work right!

    Well, thank you very much for your time, really appreciated :-)


    I just have a curiosity; do you think I can delete Macintosh HD from HD 2 later on? Or that would be a problem?

    Screen Shot 2015-01-27 at 9.42.45 PM.png

  • by keg55,

    keg55 keg55 Jan 27, 2015 1:42 PM in response to iPietro
    Level 6 (8,368 points)
    Mac OS X
    Jan 27, 2015 1:42 PM in response to iPietro

    iPietro wrote:

     

    I just have a curiosity; do you think I can delete Macintosh HD from HD 2 later on? Or that would be a problem?

    This is why I wanted to see the 2 screenshots. If the Macintosh HD 2 still shows up as a Logical Volume Group (LVG) then yes, we can delete that using Terminal and a diskutil cs command.

     

    So, let me know if that Macintosh HD 2 shows up as a Type of Logical Volume in Disk Utility when you select it. If it doesn't then you should be able to just delete it from DU using the '-' sign.

     

    I would think you want to keep your Macintosh HD since that has Mavericks. You want to get rid of Macintosh HD 2 and start over if you still want to try creating a Yosemite partition.

  • by iPietro,

    iPietro iPietro Jan 28, 2015 8:26 AM in response to keg55
    Level 1 (0 points)
    Jan 28, 2015 8:26 AM in response to keg55

    Okay, these are the two screens I've taken from Mavericks.

     

    No, I just have a partition because I wanted to check if some files and apps I worked with were still functioning on Yosemite. If everything is ok on Yosemite I'm just gonna get rid of Mavericks

    Screen Shot 2015-01-28 at 5.13.54 PM.pngScreen Shot 2015-01-28 at 5.14.08 PM.png

  • by babowa,

    babowa babowa Jan 28, 2015 9:17 AM in response to iPietro
    Level 7 (31,935 points)
    iPad
    Jan 28, 2015 9:17 AM in response to iPietro

    Just as a side note and cautionary FYI: You are getting dangerously close to running out of disk space on your Macintosh HD - it is just about full. It shows 15 GB free space remaining, which is about the minimum needed - ideally, you should have more for the OS to operate properly. Just keep that in mind when you're done with the current problem.

  • by keg55,

    keg55 keg55 Jan 28, 2015 9:28 AM in response to iPietro
    Level 6 (8,368 points)
    Mac OS X
    Jan 28, 2015 9:28 AM in response to iPietro

    Perfect!

     

    You no longer have any CoreStorage Logical Volumes and you can do whatever you want with your partitions. Just know that if your Mac is a portable (laptop), installing OS X Yosemite could convert that partition to a CoreStorage Logical Volume. But, as long as you don't enable Filevault, you can easily revert it back to the native format (like you see now) non-destructively by opening Terminal and issuing the following commands.

     

    diskutil cs list  <- At the bottom of that list you will see an indented Logical Volume with a string of letters/numbers/dashes. You need the disk1 value to the right of the Disk: entry.

     

    diskutil cs revert disk1 <- from the Logical Volume list this is the value in the Disk:   disk1 entry.

Page 1 Next