Re: Creating dmg on 10.5 and 10.6
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Fri, Jun 4, 2010 at 11:08 PM, Rakesh Singhal <rakesh.singhal@gmail.com> wrote:
I am creating one image using following command on 10.6 intel:
hdiutil create -layout SPUD -megabytes 600 -fs HFS+ -volname myimage myimage.dmg
then I mount it using
hdiutil attach -quiet -owners on myimage.dmg
Now I copy my data to mounted volume (/Volumes/myimage). The size of my data is around 950 MB and I am able to copy the complete data in this image.
No you're not. 950 MB doesn't fit into 600 MB unless you're compressing it as you copy it. A 600 MB disk image will be able to store 600 MB less 64 sectors for the partition table (since it's a SPUD layout) and less HFS+ filesystem overhead.
I checked the size of image in finder and it is 629.1 MB.
That's base 10. You'll find it's exactly 600 MiB (base 2) which is what you asked for.
Do I need to modify command in 10.5 to get same result as in 10.6, if it is possible?
You need to find out why your copy command is saying it has worked when it hasn't. You should consider using the "srcfolder" parameter which will cause hdiutil to pick the size for you and copy the files. Kind regards, Chris _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chris Suter