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: 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:
http://lists.apple.com/mailman/options/xcode-users/david_litwin%40bigfix
.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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >hdiutil corrupting a file (From: "Jeremy Todd" <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.