Deleting a partition

Joined
May 18, 2007
Messages
42
Reaction score
0
Points
6
Okay, well, about a month ago I used a diskutil command I found to resize my main partition and create a partition for the windows OS. Well, I tried to resize the windows partition to a smaller size - say a few GB until I get a larger external HD. I couldn't resize it due to being unable to do so with FAT partitions.

Now I just want to delete this partition and make my os x partition the full size again. How can I do this??

thanks
 
Joined
Feb 16, 2008
Messages
17
Reaction score
0
Points
1
Location
Illinois
Your Mac's Specs
Black Macbook, 1gb RAM
Either one of two things. Either back up your important files and do a clean install or try the diskutil mergePartitions tool.

Just run "diskutil mergePartitions" as root and diskutil will explain in detail how to use it. This will allow you to give all the space back to "Macintosh HD".
 
OP
X
Joined
May 18, 2007
Messages
42
Reaction score
0
Points
6
Is there no other way; I wanted to avoid losing my data. I just recently did a clean install, and it was a pain backing everything up. Kind of. :Smirk:
 
Joined
Jul 15, 2007
Messages
989
Reaction score
19
Points
18
Location
Miami, Fl
Your Mac's Specs
15" 2.2GHz Santa Rosa Macbook Pro - 4GB Ram - 120GB HD OS X Leopard - Windows XP
are you running Tiger or Leopard
 
Joined
Feb 16, 2008
Messages
17
Reaction score
0
Points
1
Location
Illinois
Your Mac's Specs
Black Macbook, 1gb RAM
Is there no other way; I wanted to avoid losing my data. I just recently did a clean install, and it was a pain backing everything up. Kind of. :Smirk:

"diskutil mergePartitions" won't harm any of your data.
 
OP
X
Joined
May 18, 2007
Messages
42
Reaction score
0
Points
6
Really? Are you sure ;D

Usage: diskutil mergePartitions <format> <name> [Disk Identifier|Device Node]
[Disk Identifier|Device Node]
Merge partitions on a disk. All data on merged partitions will be lost.
Merged partitions are required to be ordered sequentially.
Ownership of the affected disk is required.
Format is the specific filesystem name you want to erase it as. (HFS+, etc.)
Name is the name of the final filesystem created.
The first device node is the start partition. Merging will start with this
partition. The second device node is the finish partition. Merging will
finish with this partition.
You cannot merge partitions on the boot disk.
Example: diskutil mergePartitions HFS+ NewName disk3s4 disk3s7
Note: This will merge all partitions *BETWEEN* disk3s4 and disk3s7!
This will destroy the data on disk3s4, disk3s5, disk3s6, disk3s7 and
any invisible free space partitions between those disks.
 
Joined
Feb 16, 2008
Messages
17
Reaction score
0
Points
1
Location
Illinois
Your Mac's Specs
Black Macbook, 1gb RAM
Really? Are you sure ;D

It's saying that the MERGED partitions will be formatted. Not the target partition which will regain size. You're also missing the big "*BETWEEN*" down there...

Maybe it's because you have a Tiger version. I'm running Leopard, so perhaps Apple changed the way mergePartitions works. If you don't want to use it, fine, but I used it and I'm still alive to tell the tale. So now your only options look like clean install (which isn't a big deal if you have an external hd...) or to try and find a different tool you think will work.

This is what I got:
-------------
macbook:~ nick$ diskutil mergePartitions
Disk Utility Tool
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. Both disk
parameters must of course be on the same whole-disk.
All data on merged partitions other than the first will be lost.
The first will be erased if it doesn't have a resizable type (e.g. JHFS+)
or if the "force" argument is given.
Merged partitions are required to be ordered sequentially on disk
(see diskutil list for the actual on-disk ordering).
Ownership of the affected disk is required.
The Format parameter is the specific filesystem name you want to erase it as
(e.g. HFS+, etc.). The Name parameter is the name of the final volume created.
Format and Name are ignored if the first partition is resizable.
Example: diskutil mergePartitions HFS+ NewName disk3s4 disk3s7
Note: This will merge all partitions *BETWEEN* disk3s4 and disk3s7!
This will destroy the data on disk3s5, disk3s6, disk3s7 and
any invisible free space partitions between those disks.
disk3s4 will be resized to cover the full space if possible.

---------------
 
OP
X
Joined
May 18, 2007
Messages
42
Reaction score
0
Points
6
I guess it changed in Leopard. Guess I'll clean install when I get my external HD.

Thanks for the help!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top