Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Mac › HOWTO:Extend a Mac Partition
New Posts  All Forums:Forum Nav:

HOWTO:Extend a Mac Partition

post #1 of 15
Thread Starter 
Took me over 5 hours to find this. I knew there had to be a way.
Ok, lets say you're like me and you have 2 partitions on 1 hard drive....

Partition 1 = Windows 240GB
Partition 2 = OS X 10GB

Notice how OS X partition only has 10GB? I realized I needed ALOT more then just 10GB but it seemed like the only way to fix this was to shrink Windows, reinstall OSX into the unnalocated space once you uninstall OSX. Pain in the ass, because I have my hackintosh already working and running. Took me all day to do it.

1) The first step to making that 10GB into 50GB, WITHOUT having to spend $50+ of a :turd: piece of software you'll only use once, is to boot into Windows Vista/7.

If you wish to use your favorite piece of partition software, figure out the next few steps in your software. Its not very hard. All we're going to do is shrink the Windows partition and then format the unnalocated space to FAT32.

2)If you're using Windows Vista or 7, right click on Computer in the Windows orb on the start bar, and open up Manager. From Manager, click on Disk Management. Then right click on your Windows partition and click shrink. Shrink it to your little hearts desire (I chose to shrink to 200GB)

Now, according to Disk Manager it should look like this...
Partition 1 - Windows 200GB
Unallocated Space 50GB
Partition 2 - OS X 10GB

3)Now what we want to do is format that Unallocated Space to FAT32. In Windows Vista or 7, right click on it and then Simple Volume. Then click "Don't Assign drive letter or path". Change NTFS to FAT32 and then tick off Quick Format.

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

Now everyone should be following along here regardless of what software or OS they used

4) Boot into OSX like normally.
NOTE: Your account should have a password on it, if not, temporarily set one by going into System -> Accounts.

5) Go into Finder -> Search for 'Disk Utility'. Right click on the Partition 2 (OS X) and then Get Info. Write down or leave the window off to the side so you can see what the Identifier is - should be along the lines of 'disk0s2' or 'disk1s2' depending on how your drive is formatted. Do the same thing for the newly formated FAT32 partition also which should be like 'disk0s3' or 'disk1s3'

6)Go into Finder again -> Search for 'Terminal'.

7)In the terminal, type the following command.
sudo diskutil mergePartitions "Journaled HFS+" New disk1s2 disk1s3

Now this is where is becomes a little hectic. Depending on what your disk partitions are, MAKE SURE YOU'RE DOING THIS RIGHT. For me, disk1s2 was my OS X Partition and disk1s3 was my FAT32 partition that we made.
Once you are 110% POSITIVELY SURE YOU HAVE IT CORRECT, DOUBLE CHECK IF YOU HAVE TO, hit Enter.

The partitions should merge together and bam - you have an additional 40GB added to your OS X.
Took me FOREVER. Seems like no one has really done this before without using some silly $50+ software or just reinstalling.

EDIT:
You could try using DiskUtility, but it didn't work for me no matter what I did. If it works for you, it works for you.
Edited by OmegaNemesis28 - 7/24/09 at 12:58am
    
CPUMotherboardGraphicsRAM
Intel Xeon W3520 i7 4.0ghz EVGA X58 Classified Visiontek 6990 GSkill 6GB DDR3 Pi 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 60GB SSD ; 2x 1TB ; 2x 2TB Samsung BluRay Burner Windows 7 Ultimate 64x 3x Dell U2311H 23" 1080p IPS 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard SilverStone Strider 1000w Modular Power Supply Lian Li V2000 Plus Logitech G9 Gaming Laser Mouse 
Mouse Pad
Cyba Sniper Tracer (Acrylic Glass) 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Xeon W3520 i7 4.0ghz EVGA X58 Classified Visiontek 6990 GSkill 6GB DDR3 Pi 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 60GB SSD ; 2x 1TB ; 2x 2TB Samsung BluRay Burner Windows 7 Ultimate 64x 3x Dell U2311H 23" 1080p IPS 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard SilverStone Strider 1000w Modular Power Supply Lian Li V2000 Plus Logitech G9 Gaming Laser Mouse 
Mouse Pad
Cyba Sniper Tracer (Acrylic Glass) 
  hide details  
Reply
post #2 of 15
Repost.
 
HP Pavilion G6
(9 items)
 
 
CPUMotherboardGraphicsRAM
AMD FX-8320 4.014GHz (223x18) Gigabyte 990FX-UD3 XFX HD7870 Double D 2x4Gb G.skill Sniper DDR3 1784MHz 
Hard DriveHard DriveOSMonitor
Mushkin Chronos 240Gb 2x WD 750Gb Black Windows 7 Professional Acer 24" 1920x1200 
KeyboardPowerCaseMouse
Razer Lycosa  NZXT PP-600 NZXT Tempest (Modded Green) Razer Diamondback 
Mouse PadAudio
Razer eXactMat Creative X-Fi XtremeGamer 
CPUMotherboardGraphicsRAM
AMD A8-4500 HP Laptop Board AMD A8-4500 2x4Gb Corsair DDR3 1600Mhz 
Hard DriveOptical DriveOSMonitor
Corsair 256Gb Force LX SSD HP Slim DVD Drive Windows 8 (Start is Back) 15.6"  
Audio
Onboard Altec Lansing 
  hide details  
Reply
 
HP Pavilion G6
(9 items)
 
 
CPUMotherboardGraphicsRAM
AMD FX-8320 4.014GHz (223x18) Gigabyte 990FX-UD3 XFX HD7870 Double D 2x4Gb G.skill Sniper DDR3 1784MHz 
Hard DriveHard DriveOSMonitor
Mushkin Chronos 240Gb 2x WD 750Gb Black Windows 7 Professional Acer 24" 1920x1200 
KeyboardPowerCaseMouse
Razer Lycosa  NZXT PP-600 NZXT Tempest (Modded Green) Razer Diamondback 
Mouse PadAudio
Razer eXactMat Creative X-Fi XtremeGamer 
CPUMotherboardGraphicsRAM
AMD A8-4500 HP Laptop Board AMD A8-4500 2x4Gb Corsair DDR3 1600Mhz 
Hard DriveOptical DriveOSMonitor
Corsair 256Gb Force LX SSD HP Slim DVD Drive Windows 8 (Start is Back) 15.6"  
Audio
Onboard Altec Lansing 
  hide details  
Reply
post #3 of 15
Quote:
Originally Posted by Kamikaze127 View Post


...what?

Omega, thanks for the writeup. I may have to do this someday.
Time Sink
(21 items)
 
 
CPUMotherboardGraphicsRAM
Intel 2500k ASUS Sabertooth Z77 EVGA GTX 670 FTW G.Skill Ripjaws 8GB (2x4GB) DDR3 1600 
Hard DriveHard DriveHard DriveCooling
Samsung F3 1TB Crucial C300 128GB Corsair Force GT 60GB Noctua NH-U12P 
OSOSMonitorMonitor
Windows 8.1 Professional x64 Apple OS X Mavericks HP ZR24w LG IPS226V 
KeyboardPowerCaseMouse
Razer BlackWidow Seasonic X750 Lian-Li PC-A05B Logitech M500 
Mouse PadAudioAudioAudio
Mionix Propus 380 Zero USB DAC (2009 Version) Emotiva Pro airmotiv 4 Beyerdynamic DT990 600ohm 
Audio
Shure SRH-840 
  hide details  
Reply
Time Sink
(21 items)
 
 
CPUMotherboardGraphicsRAM
Intel 2500k ASUS Sabertooth Z77 EVGA GTX 670 FTW G.Skill Ripjaws 8GB (2x4GB) DDR3 1600 
Hard DriveHard DriveHard DriveCooling
Samsung F3 1TB Crucial C300 128GB Corsair Force GT 60GB Noctua NH-U12P 
OSOSMonitorMonitor
Windows 8.1 Professional x64 Apple OS X Mavericks HP ZR24w LG IPS226V 
KeyboardPowerCaseMouse
Razer BlackWidow Seasonic X750 Lian-Li PC-A05B Logitech M500 
Mouse PadAudioAudioAudio
Mionix Propus 380 Zero USB DAC (2009 Version) Emotiva Pro airmotiv 4 Beyerdynamic DT990 600ohm 
Audio
Shure SRH-840 
  hide details  
Reply
post #4 of 15
Quote:
Originally Posted by Kamikaze127 View Post


On topic: I always just resize my partitions via Disk Utility. Never failed me
Boxxy Minaj
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 2600K @4.8GHZ ASUS P8P67 Pro MSI Twin Frozr II HD6870 1GB 16GB Kingston HyperX DDR3-1600 
Hard DriveCoolingOSMonitor
1TB WD Black + 6TB in storage Corsair H50 Mac OS X 10.7.2 21.5 ASUS VH222 + 40" Samsung HDTV 
KeyboardPowerCaseMouse
Logitech G15 Antec Earthwatts 750w Lian-Li A05N Logitech Performance MX 
Mouse PadAudio
Razer Exactmat (control side) Griffin iMic + Altec Lansing Octaine 7 
  hide details  
Reply
Boxxy Minaj
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 2600K @4.8GHZ ASUS P8P67 Pro MSI Twin Frozr II HD6870 1GB 16GB Kingston HyperX DDR3-1600 
Hard DriveCoolingOSMonitor
1TB WD Black + 6TB in storage Corsair H50 Mac OS X 10.7.2 21.5 ASUS VH222 + 40" Samsung HDTV 
KeyboardPowerCaseMouse
Logitech G15 Antec Earthwatts 750w Lian-Li A05N Logitech Performance MX 
Mouse PadAudio
Razer Exactmat (control side) Griffin iMic + Altec Lansing Octaine 7 
  hide details  
Reply
post #5 of 15
Thread Starter 
Quote:
Originally Posted by reberto View Post
On topic: I always just resize my partitions via Disk Utility. Never failed me
It won't work if you have Windows and Mac dual booting. If you use disk utility alone that was it has to reformat one way or another. I tried looking everywhere for an alternative. This is the only possible way for my situation aside from using really stupid expensive software.
    
CPUMotherboardGraphicsRAM
Intel Xeon W3520 i7 4.0ghz EVGA X58 Classified Visiontek 6990 GSkill 6GB DDR3 Pi 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 60GB SSD ; 2x 1TB ; 2x 2TB Samsung BluRay Burner Windows 7 Ultimate 64x 3x Dell U2311H 23" 1080p IPS 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard SilverStone Strider 1000w Modular Power Supply Lian Li V2000 Plus Logitech G9 Gaming Laser Mouse 
Mouse Pad
Cyba Sniper Tracer (Acrylic Glass) 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Xeon W3520 i7 4.0ghz EVGA X58 Classified Visiontek 6990 GSkill 6GB DDR3 Pi 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 60GB SSD ; 2x 1TB ; 2x 2TB Samsung BluRay Burner Windows 7 Ultimate 64x 3x Dell U2311H 23" 1080p IPS 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard SilverStone Strider 1000w Modular Power Supply Lian Li V2000 Plus Logitech G9 Gaming Laser Mouse 
Mouse Pad
Cyba Sniper Tracer (Acrylic Glass) 
  hide details  
Reply
post #6 of 15
Quote:
Originally Posted by OmegaNemesis28 View Post
It won't work if you have Windows and Mac dual booting. If you use disk utility alone that was it has to reformat one way or another. I tried looking everywhere for an alternative. This is the only possible way for my situation aside from using really stupid expensive software.
My Macbook Pro runs both Vista and OS X, I use disk utility all the time to adjust the space of the Vista partition. You can also use the Boot Camp utility to adjust it
Boxxy Minaj
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 2600K @4.8GHZ ASUS P8P67 Pro MSI Twin Frozr II HD6870 1GB 16GB Kingston HyperX DDR3-1600 
Hard DriveCoolingOSMonitor
1TB WD Black + 6TB in storage Corsair H50 Mac OS X 10.7.2 21.5 ASUS VH222 + 40" Samsung HDTV 
KeyboardPowerCaseMouse
Logitech G15 Antec Earthwatts 750w Lian-Li A05N Logitech Performance MX 
Mouse PadAudio
Razer Exactmat (control side) Griffin iMic + Altec Lansing Octaine 7 
  hide details  
Reply
Boxxy Minaj
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 2600K @4.8GHZ ASUS P8P67 Pro MSI Twin Frozr II HD6870 1GB 16GB Kingston HyperX DDR3-1600 
Hard DriveCoolingOSMonitor
1TB WD Black + 6TB in storage Corsair H50 Mac OS X 10.7.2 21.5 ASUS VH222 + 40" Samsung HDTV 
KeyboardPowerCaseMouse
Logitech G15 Antec Earthwatts 750w Lian-Li A05N Logitech Performance MX 
Mouse PadAudio
Razer Exactmat (control side) Griffin iMic + Altec Lansing Octaine 7 
  hide details  
Reply
post #7 of 15
Create a new partition on empty space and then use diskutil to merge the empty partition with the other hsf+. Simple as pie
Sexy Sandy
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k Gigabyte Z77x-UD5H Gigabyte hd 7850 Corsair Vengence 1600 
Hard DriveOptical DriveCoolingOS
c300 SSD rando Stock Windows 7 x64 Foreva 
MonitorKeyboardPowerCase
Dell S2209W 22" g510s Corsair AX850 CM HAF 932 
MouseMouse PadAudio
g500 desk samsung makes a good soundbar 
  hide details  
Reply
Sexy Sandy
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k Gigabyte Z77x-UD5H Gigabyte hd 7850 Corsair Vengence 1600 
Hard DriveOptical DriveCoolingOS
c300 SSD rando Stock Windows 7 x64 Foreva 
MonitorKeyboardPowerCase
Dell S2209W 22" g510s Corsair AX850 CM HAF 932 
MouseMouse PadAudio
g500 desk samsung makes a good soundbar 
  hide details  
Reply
post #8 of 15
Thread Starter 
Quote:
Originally Posted by reberto View Post
My Macbook Pro runs both Vista and OS X, I use disk utility all the time to adjust the space of the Vista partition. You can also use the Boot Camp utility to adjust it
Boot Camp was the only other thing I didn't try. I will admit. I couldn't find it to be honest.

Quote:
Originally Posted by ckybam3 View Post
Create a new partition on empty space and then use diskutil to merge the empty partition with the other hsf+. Simple as pie
Once again - I tried this. No go. Nadda. Didn't work. Tried about 20x over. I must have created dozens upon dozens of different partitions, moved partitions around like a puzzle 20 different times, hell I even removed my Win 7 partition to another drive just to see if maybe it was that somehow blocking it. Didn't work. I tried formating the empty partition to hfs+ too, didn't work. This was the only option for me. Maybe boot camp might of worked, but out of everything I tried - this was the only way.
    
CPUMotherboardGraphicsRAM
Intel Xeon W3520 i7 4.0ghz EVGA X58 Classified Visiontek 6990 GSkill 6GB DDR3 Pi 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 60GB SSD ; 2x 1TB ; 2x 2TB Samsung BluRay Burner Windows 7 Ultimate 64x 3x Dell U2311H 23" 1080p IPS 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard SilverStone Strider 1000w Modular Power Supply Lian Li V2000 Plus Logitech G9 Gaming Laser Mouse 
Mouse Pad
Cyba Sniper Tracer (Acrylic Glass) 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Xeon W3520 i7 4.0ghz EVGA X58 Classified Visiontek 6990 GSkill 6GB DDR3 Pi 
Hard DriveOptical DriveOSMonitor
2x OCZ Vertex 60GB SSD ; 2x 1TB ; 2x 2TB Samsung BluRay Burner Windows 7 Ultimate 64x 3x Dell U2311H 23" 1080p IPS 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard SilverStone Strider 1000w Modular Power Supply Lian Li V2000 Plus Logitech G9 Gaming Laser Mouse 
Mouse Pad
Cyba Sniper Tracer (Acrylic Glass) 
  hide details  
Reply
post #9 of 15
Had to register just to say THANK YOU!! This worked PERFECTLY as I couldn't find any other way to do this anywhere (even with the software)! Now I've got more space on my mac volume to use and it didn't even require me to restart! Thanks again!!
post #10 of 15
Damn! You need to warn people that the two partitions that are to be merged need to be adjacent partitions mad.gif

I had
disk1s2 - OS X
disk1s3 - Windows
disk1s4 - Linux
disk1s5 - Extra FAT32 partition

I did
sudo diskutil mergePartitions "Journaled HFS+" New disk1s2 disk1s5

And guess what? OS X partition grew to the size of the entire disk, eating up Windows and Linux partitions! They're gone! eek.gif

Is there ANYTHING I can do to recover at least the data on those partitions? I had a LOT of important stuff in there. worriedsmiley.gif

EDIT:
All of the data I want to restore are in the Windows partition that was formatted as NTFS, if that helps.
Edited by Appocalypse - 1/23/11 at 4:01am
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Mac
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Mac › HOWTO:Extend a Mac Partition