Should I use .img or .dmg for archives?

When I used the classic Mac OS, I used to archive all my projects using .img and .smi files mainly using Shrinkwrap.

It was a great way to package up my work and ensure I had everything required to carry on where I left off. It was one file which was either obviously complete or incomplete. I could compress them so they were often substantially smaller than the original and I could fit many more on my backup medium. When I needed to examine or work on one part of them, a double click would mount them and let me examine or open the contents.

I learnt to be wary of archives containing self decompression code like the .smi files. When Apple changes (as it has a tedious habit of doing) the OS or cpu this renders such files inaccessable.

OSX has made my old images unusable and I would like to avoid this again.

One, I'd like to know how to reliably open and convert my old archives and turn them into OSX .img or .dmg archives. Disk Utility is supposed to do this but in practice doesn't or does it in such an obtuse way as to render it useless.

More than that I'd like to know what is the essential difference between .img and .dmg as well as .toast and out of all those which is most reliable and likely to be future proof as well as accessable from PC computers.

Please share your experiences and thoughts on best tactics.

Beaut iMac G5 2Ghz + G4 400 AGP upgraded to G4 1000 that bombs all the time, Mac OS X (10.4.6)

Posted on May 11, 2006 4:38 AM

Reply
6 replies

May 11, 2006 5:20 AM in response to Peter Breis1

Hi Peter,
Welcome to the Apple User Forum!

I've had good success with Toast burning ISO "Hybrid" CD's.
The Direct CD format is easy to work with and reliably for cross platform work.
Just a drag & drop of the files, much like a big floppy disk except when you delete the files, you won't get the disk space back unless you're using CD-RW disks.

Stuffit Deluxe is a good OSX compression utility we use everyday, (mostly for encryption). I would recommend the product from a reliability standpoint.

About your older files:
I would open all your files in OS9 and place them in a folder you can access easily in OSX, like the desktop.
Unless we're talking about several hundred Gigs of data, I'd stay away from the compression stuff. It takes time to compress & uncompress. The cost of DVD's should by less than the time involved waiting for the compression/uncompression. Another thing is the chance the compression may corrput the file, or upgraded versions (over time) may be needed to use the files. I've found it's better to not use a compression application for Archived data.
Hope this helps.

May 11, 2006 9:09 AM in response to Vipir

Thanks for the reply but this was not quite what I meant.

I do use Toast and make hybrid CD/DVDs but I am really referring to the files I archive on them.

.img and .dmg "bundle" the work to ensure you have 100% of what you started with and not lost a stray file that you didn't notice or didn't copy.

Whilst you can compress them they are still double-clickable so that you can quickly open them and see the contents, down to thumbnails and graphics to check if it is the right one. All this without even decompressing them or moving the contents back onto your Hard Drive which only makes another copy.

Stuffit has always been unreliable both in the way it works, the constant format changes when Alladin "upgraded" it, and the way it could appear to safely compress but corrupt the contents. Apple and most users are now abandoning it in favor of .zip and .dmg archives.

It didn't pass neatly over the internet either, a few more years and it will be gone.

I would strongly advise against using its encryption as well. The few times I used it, a small glitch rendered access impossible.

I no longer have easy access to OS9 as the version running on my older machine got badly corrupted and I have not bothered reinstalling it. Besides I am talking about a lot of material scattered through my archives which tends to pop up on short notice but I still need access.

This is work over a long period of time. All neatly wrapped up in mainly .smi files and containing full production notes and screen grabs of cover pages as clippings so I could quickly examine the job without fully decompressing them and starting up software.

May 12, 2006 9:35 AM in response to Peter Breis1

Hi, Peter.

1. You wrote:
"One, I'd like to know how to reliably open and convert my old archives and turn them into OSX .img or .dmg archives. Disk Utility is supposed to do this but in practice doesn't or does it in such an obtuse way as to render it useless."
It may be possible to either mount or convert your old Shrinkwrap .img and .smi files using DropDMG. This utility, as far as I know, is essentially a GUI (graphical user interface) to the hdiutil command in Terminal, which has support for some obsolete formats.

Disk Utility — again to the best of my knowledge as I do not have old Shrinkwrap files with which to test — won't deal with these files natively. While the disk image functions in Disk Utility are also provided by hdiutil, Disk Utility only provides access, via is GUI, to a small subset of the functions in hdiutil.

There is no Mac OS X version of Shrinkwrap and current versions of StuffIt Expander do not support the .img or .smi formats. One must use an older version, e.g. StuffIt 7 — perhaps earlier — under Classic. Classic requires Mac OS 9.1,with version 9.2.2 recommended, especially under Tiger.

2. You wrote:
"what is the essential difference between .img and .dmg as well as .toast and out of all those which is most reliable and likely to be future proof as well as accessible from PC computers."
The original .img format is obsolete, as you've learned, though that extension is sometimes still used as an extension for disk images, which should properly carry the .dmg extension. The primary difference between .dmg and earlier formats is how resource forks are handled.

From what I can glean, the .toast disk image format is similar to the DVD/CD-R Master (.cdr) format. It's a disk image format created by Roxio Toast.

A brief history of Apple disk image formats can be found on this page.

As to "future proof," who can say? If I could predict the future, I'd have won Lotto several times over by now. If you want to use disk images, stick with .dmg but pay attention to changes in Mac OS X when future versions are introduced. My gut feeling is that .dmg is fairly future-proof.

Cross-platform compatibility does not come with disk images. That comes with archives, such as the UNIX .tar (Tape Archive) format, akin to .zip and StuffIt archives. The .tar archive has been around for ages. However, unlike disk images, archives must be unpacked: they don't simply mount.

The difficulties with disk images in a cross-platform environment comes from two facts:

• A disk image is a file that is, in essence, a virtual hard drive. Accordingly, when the disk image is created, it is written using a specific file system, i.e. a specification for how files are laid out on the disk. Macs and PCs use different — and generally incompatible — file systems:
• PCs running Windows do not read the Mac file systems "Mac OS Extended" (HFS+) or "Mac OS Extended (Journaled)" (HFS+J) without a third-party product like Mediafour's MacDrive for Windows installed on the Windows PC.

• Likewise, Mac OS X can read the Windows NTFS file system, but not write to such disks.

• Mac OS X can read-from and write-to disks using the Windows FAT32 file system, aka MS-DOS format, but this creates other issues for PC users (primarily due to Apple Double format) when PC users employ the disks on which Mac OS X users have saved files. Furthermore, Disk Utility under Tiger does not permit the creation of a disk image using the MS-DOS file system. Under Tiger, to create a disk image using the MS-DOS file system, one must either use hdiutil or using a third-party utility that provides a GUI to hdiutil.
• The disk images created on Macs are primarily for Macs. I've never tried mounting a disk image created on a Mac, even one using the MS-DOS file system, on a PC running windows.

When you create general disk images in Disk Utility, the disk image (.dmg) uses the "Mac OS Extended (Journaled)" file system, aka HFS+J. For information about file system journaling, see Mac OS X: About File System Journaling.

Using HFS+J for all disk images created by Disk Utility — whether Read/Write or Read-Only disk images — is a design bug I've reported to Apple. This is a design bug since the disk's journal file cannot be updated on a Read-Only image. This results in Console messages that unnerve the uninitiated. Disk Utility should use "Mac OS Extended" (HFS+) for Read-Only images and make HFS+J optional for Read/Write images.

There is one additional concern with disk images: bad sectors on hard drives. While generally rare, hard drives can develop bad sectors at any time. If a bad sector develops in the space occupied by a file,that file is corrupted and the data in it is usually irrevocably lost. Disk images are files: if a bad sector develops in the space occupied by a disk image, that disk image is corrupted and generally will no longer mount. This means all of the data in the disk image may be irrevocably lost. This is particularly true with encrypted disk images: bad sectors developing in the space occupied by an encrypted disk image means all the data in that encrypted disk image is lost. This is the "Achilles heel" of FileVault, which uses an encrypted, sparse disk image for one's Home folder.

While everyone should implement a comprehensive "Backup and Recovery" solution — such as the one I use — to protect their investment in their priceless data, good backups are essential if you archive data in disk images.

Hope this helps.

Good luck!

😉 Dr. Smoke
Author: Troubleshooting Mac® OS X

---
Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:

I may receive some form of compensation, financial or otherwise, from my recommendation or link.

May 12, 2006 1:46 PM in response to Dr. Smoke

Thank you indeed Dr Smoke that was an excellent and thorough reply.

I take it all on board with just one note that Roxio's .toast images can be dual platform. They certainly mount in OSX and OS9 with both a PC volume and Mac volume, often using common data. I have not tested what happens on a PC using Roxio's PC software, Easy CD & DVD Creator.

.iso files which are PC virtual volumes do mount and act like .dmg files on Macs, just without the niceties of layout and presentation that you get on the PC. Since the Mac is more forgiving in the way it handles Windows formats as well as its own, perhaps the PC formats are the way to go to provide greater long term archives.

Having learnt a little more about features in Toast that I had missed, I may experiment a bit more. Of course I will also follow up those links you provided.

Thank you again s:-)

May 12, 2006 5:35 PM in response to Peter Breis1

You're most welcome. Glad to help.

You wrote:
" that was an excellent and thorough reply."
Then you may want to mark it as Helpful by clicking the "Helpful" button in that post. 😉

The .toast format may be in their "Custom Hybrid" format. Discs burned in Toast's Custom Hybrid format are dual-platform. In researching this format once, I found the following in Toast Help:
"The Custom Hybrid format combines both ISO 9660 and Mac OS Standard (HFS) or Mac OS extended (HFS+) format on a single CD. Use this format to record CDs that can be read on a Macintosh computer and on a PC, with the Macintosh computer data visible only to Macintosh users and the ISO data visible only to other users. This allows Macintosh computer users to see the normal icons and window positions for the data, while maintaining complete compatibility with DOS/Windows systems (and others)."
Good luck!

😉 Dr. Smoke
Author: Troubleshooting Mac® OS X

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Should I use .img or .dmg for archives?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.