Re: Creating dmg on 10.5 and 10.6
Re: Creating dmg on 10.5 and 10.6
- Subject: Re: Creating dmg on 10.5 and 10.6
- From: Rakesh Singhal <email@hidden>
- Date: Sat, 5 Jun 2010 17:12:46 +0530
Hi Chris,
That is fine about showing 629 MB (600*1024*1024), difference of base 10 and base 2. I am using "ditto -rsrc -V src_file dst_file", does it do any compression and copy the data. When I burn it on DVD, it maintains the size.
I have tried "srcfolder" option and I can create compressed image. But when I burn this image on DVD, it expands to equivalent of size of data (around 1 GB).
Hi Stphane,
Thanks I will try -fsargs with 10.5 and see what happens.
Hi Axel,
If I mount images created on both 10.5 and 10.6, the size data is same but image size is different as I mentioned. I will check with "xattr -l <file>" but how is it going to help me.
Regards,
Rakesh
On Sat, Jun 5, 2010 at 5:24 AM, Chris Suter
<email@hidden> wrote:
On Fri, Jun 4, 2010 at 11:08 PM, Rakesh Singhal
<
email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden