• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating dmg on 10.5 and 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating dmg on 10.5 and 10.6


  • Subject: Re: Creating dmg on 10.5 and 10.6
  • From: Stéphane Sudre <email@hidden>
  • Date: Fri, 4 Jun 2010 15:24:49 +0200


On 10-06-04, at 15:08, Rakesh Singhal wrote:

Hi all,

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. Finally I unmount it using

hdiutil detach -quiet /Volumes/myimage -force

I checked the size of image in finder and it is 629.1 MB.

If I follow the same procedure on same machine but on 10.5.x, it is not able to copy the same data (950 MB). I need to create image of around 1000 MB to copy this data. I am running all these commands in a script.

I would like to know what is the difference in 10.5 and 10.6 in creating image using same command. Does it compress the data in 10.6 or some layout difference?
Do I need to modify command in 10.5 to get same result as in 10.6, if it is possible?


Please let me know if I am wrong somewhere.

Based on experience, depending on the OS version, when you create a 10 MB disk image with Disk Utility, you can either get 50 KB of available space or 9.something MB. This has been addressed in the latest Snow Leopard version IIRC.


This was due to the default FileSystem settings.

Check -fsargs to see if using some additional arguments could help on your version of Mac OS X 10.5.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Creating dmg on 10.5 and 10.6 (From: Rakesh Singhal <email@hidden>)

  • Prev by Date: Creating dmg on 10.5 and 10.6
  • Next by Date: Re: Creating dmg on 10.5 and 10.6
  • Previous by thread: Creating dmg on 10.5 and 10.6
  • Next by thread: Re: Creating dmg on 10.5 and 10.6
  • Index(es):
    • Date
    • Thread