Resize .dmg file

I have a .dmg file named myfiles.dmg. It has 4gb capacity and has 1 gb available. I increased the size of it to 6gb.


Why does the mounted dmg which is "myfiles" still show 4 gb capacity and 1 gb available when I get info on "myfiles" in disk utility, while the "myfiles.dmg" shows a 6gb capacity when I get info on "myfiles.dmg" ?


I would think that the resizing to 6gb would be reflected in both.


Thanks

iMac, Mac OS X (10.7.3), late 2009

Posted on Mar 17, 2012 9:48 PM

Reply
4 replies

Mar 18, 2012 4:33 AM in response to mrokloricred37

I played with this a little with a test .dmg file similar to yours. There may be a problem with Disk Utility's Resize function, but you can work around it.


Resizing the .dmg image file and resizing its contained partition are separate procedures. You can see them both if you click on the little triangle in Disk Utility's Resize window:

.

User uploaded file

.



After doing this, you see the following. The button to resize both the image and the partition is selected by default, which is what you want:

.User uploaded file

.

However after clicking the Resize button, my result was the same as yours - only the .dmg file was resized, not the contained partition.


To try to fix this, I did the following. Mount the image by double-clicking the .dmg file, select the .dmg file (upper icon) in the left pane of disk utility, and click the Partition tab. I was then able to pull down the lower-right corner of the partition graphic to fill the entire space.

.

User uploaded file

This increased the size of the partition to the same size as the image file. I then clicked Apply.

When I later checked the mounted partition in Get Info, it reported the new larger size of 5GB.

Mar 18, 2012 8:38 AM in response to jsd2

That seemed to do it.


I apologize that this is a different question:


Once the partition fills the entire space it seems there is no way to "pull the shade back up". So, if the disk image (myfiles.dmg) was 6 gb and the partition (myfiles) had 4gb and was increased to fill the partition of 6gb, you couldn't decrease the partition (my files) to 5 gb by pulling up the shade?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Resize .dmg file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.