RE: hdiutil corrupting a file
RE: hdiutil corrupting a file
- Subject: RE: hdiutil corrupting a file
- From: "David Litwin" <email@hidden>
- Date: Wed, 7 Feb 2007 11:10:27 -0800
- Thread-topic: hdiutil corrupting a file
I had a very similar problem and found a bug in hdiutil. Follow this
thread:
http://lists.apple.com/archives/xcode-users/2006/Aug/msg00003.html
and you will probably find the solution to your issue.
Dave
P.S. Note that I have since realized my solution isn't strictly correct
in that I use du -s and use the number of blocks as the size in Kbytes
for the sparse image. Blocks are not k, and in my case this was only
safe because it meant my sparse image was twice the size it needed to
be. You might prefer to change it to du -h and round up a bit.
-----Original Message-----
From: Jeremy Todd
Sent: Wednesday, February 07, 2007 9:14 AM
To: email@hidden
Subject: hdiutil corrupting a file
Hi,
I'm using hdiutil under OS X 10.4.8 on our build machine to create disk
images that contain our product installers. One of our installers is a
bundle which has a file called Contents/Resources/ReadMe.txt that's 3919
bytes with a data fork and no resource fork.
If I create a disk image using:
hdiutil create -srcfolder Installer.app -volname test DiskImageTest
-layout
NONE
Then I get a disk image which contains Installer.app. If I mount the
disk
image and drag the Installer.app to the desktop, it contains
Contents/Resources/ReadMe.txt which is 3919 bytes but all of its bytes
are
zeros.
Does anyone have an idea about what might cause this to happen?
Thanks for any assistance.
Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden