Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Increase mounted disk size at real time



Laxmilal Menaria wrote:

>I have created a dmg file of my java application, and its working fine
>on OSX. But now I got one issue related to dmg size, because we should
>provide size of mounted disk before creating dmg. But my application
>copy files at current location, may be they are bigger than mounted
>disk size. so it will give exception, so can I increase size at
>realtime.

No, you can't usually increase the size of a dmg file.

However, I think 'hdiutil' can calculate the size of the dmg to create from
the size of the dir that's initially copied onto it.  Read the hdiutil man
page for the complete details of its 'create' command.

If you still can't get that to work, then create a dmg that's a good
percentage larger than the files, say 25%, copy the files onto it, then run
'hdiutil' again and convert that dmg to a compressed dmg.  That will
eliminate all the extra empty space, as well as compressing the data.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.