Contribute  :  Advanced Search  :  Directory  :  Forum  :  FAQ's  :  My Downloads  :  Links  :  Polls  
AFP548 Changing the world one server at a time.
Welcome to AFP548
Thursday, July 29 2010 @ 09:38 am MDT
   

Resizing Partitions at Last!

TipsAs of 10.4.6, if you've got a GPT partitioned disk, you can use diskutil from the command line to resize volumes...

nigelkersten@zombie: ~ $ diskutil resizeVolume
Disk Utility Tool
Usage:  diskutil resizeVolume [Mount Point|Disk Identifier|Device Node] size
        <part1Format part1Name part1Size> <part2Format part2Name part2Size> ...
Non-destructively resize a disk. You may increase or decrease its size.
When decreasing size, you may optionally supply a list of new partitions to create.
Ownership of the affected disk is required.
Valid partition sizes are in the format of <number><size>.
Valid sizes are B(ytes), K(ilobytes), M(egabytes), G(igabytes), T(erabytes)
Example: 10G (10 gigabytes), 4.23T (4.23 terabytes), 5M (5 megabytes)
resizeVolume is only supported on GPT media with a Journaled HFS+ filesystem.
A size of "limits" will print the range of valid values for the current filesystem.
Example: diskutil resizeVolume disk1s3  10G
         JHFS+ HDX1 5G MS-DOS HDX2 5G
Valid filesystems: "Case-sensitive HFS+" "Journaled HFS+" "Case-sensitive Journaled HFS+" 
"HFS+" "HFS" "MS-DOS FAT32"  "MS-DOS FAT16" "MS-DOS" "MS-DOS FAT12" "UFS" "Linux" "Swap" 

Story Options

Advertising

Resizing Partitions at Last! | 23 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Resizing Partitions at Last!
Authored by: Anonymous on Thursday, April 06 2006 @ 06:10 am MDT
GPT is for Guid Partition Table. It was introduced by Intel and is used on Mac
Intel's disks.

the standard partition style before Mac Intel was APT (Apple Partition Table)

regards

Didier.
Resizing Partitions at Last!
Authored by: wjlyerly on Thursday, April 06 2006 @ 09:54 am MDT
Is there a way to delete partitions? Doesn't seem obvious from the help text.
I had reparitioned my drive to install XP the third party way, but BootCamp
has shown up before I had a chance. However, BootCamp won't run unless I
have one big partition. Looks like I can't go back to one partition without
wiping the disk.
Resizing Partitions at Last!
Authored by: boli on Sunday, April 09 2006 @ 10:06 am MDT
Other news:

1.) 10.4.6's disk utility allows to format disks with GPT
2.) a PPC mac can boot off a GPT disk with 10.4.6

i just did both of those things on my PPC mac (quad G5). sweet.
Resizing Partitions at Last!
Authored by: boli on Sunday, April 09 2006 @ 10:12 am MDT
i couldn't get resizing to work at this time... :-/

[Quadzilla:/Volumes] boli% diskutil resizeVolume /Volumes/ bonsai 5G
Started resizing on disk disk3s2 bonsai
Verifying
Resizing Volume

Resizing encountered error No space left on device (28) on disk disk3s2 bonsai


i did check the minimum and maximum size beforehand:

[Quadzilla:/Volumes] boli% diskutil resizeVolume /Volumes/ bonsai limits
For device disk3s2 bonsai:
Current size: 79716450304 bytes
Minimum size: 3515957248 bytes
Maximum size: 79716450304 bytes


There's only 2.27 GiB of data on that disk, and according to iDefrag there's no data beyond block 756709 (that's byte 3099480064 with 4 KiB blocks).
Resizing Partitions at Last!
Authored by: khyros on Sunday, August 27 2006 @ 10:33 pm MDT
I have a problem with this resizing thing!

I used bootcamp to resize my single-volume HD into a 70gb and a smaller
5gb partition. Instead of installing windows, I used disk util to format the
volume as HFS+.

I then decided to merge back to partition into a single Volumen (the 5gb was
empty) but bootcamp refused to recognise the partition so it wouldn't merge
them.

diskutil resizeVolume did not work because of this second 5gb partition
(disk0s3) being present.

I used gpt to delete the 5gb partition and I now have about 5gb of free
unpartioned space on my hard drive. However, diskutil resizeVolume still
refuses to adjust the size of my main macintosh volume (disk0s2)

I really don't know what to do. I installed tiger like 3 days ago and i don't
really want to go thorugh all the installation process again :S