Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

DVD image manipulation via hdiutil UNIX
I recently used a pen drive to copy about 4GB of data from a Windows 2000 machine to my Mac. The idea was to back up this data on a DVD. Well, it turns out the Mac wrote the DVD using HFS+ instead of hybrid, so the Windows machine couldn't read it.

I thought you could select the format in Disk Utilities, but I couldn't find any way to do that. I eventually ripped the image off the DVD in Disk Utilities (creating a new image from the DVD), and converted it using the command line util hdiutil:
hdiutil makehybrid -o filename.iso -joliet -iso filename.dmg
This command converts the HFS+ format image (filename.dmg) to an ISO9660 image (named filename.iso), which can then be burned using Disk Utility.
  • Currently 3.57 / 5
  You rated: 4 / 5 (7 votes cast)

DVD image manipulation via hdiutil | 6 comments | Create New Account
Click here to return to the 'DVD image manipulation via hdiutil' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
DVD image manipulation via hdiutil
Authored by: bdjones on Aug 25, '05 12:20:54PM

you can choose the format from Disk Utilities but you have to make a blank image first then change it's format using Erase.

[ Reply to This | # ]
DVD image manipulation via hdiutil
Authored by: squirri on Aug 30, '05 03:58:46PM

This is one of those 'features' on all computer systems that really bugs me. Why can't we have the choice of optical formats on the FORMAT menu - or is that too obvious?

Having to create and then erase an image works but DOH!

[ Reply to This | # ]
`makehybrid` from source folder, and other tips
Authored by: lullabud on Aug 25, '05 02:54:38PM

The `makehybrid` switch is very useful. I use it in conjunction with -hide-hfs, -hide-joliet, the `setfile` command, and other switches to author hybrid software release CD's and it works very very well, best of all because it's scriptable which helps when you have to fine-tune the CD layout.

You can make a hybrid disk image straight from a folder though, so burning the disk then ripping the dmg is unnecessary. Simply use `hdiutil makehybrid /source/folder/name/ -o outputfile.iso`. For a DVD you may need to specify -format UDTO, but for CD's this isn't necessary.

To fine-tune the layout of the view settings for the disk when it is mounted in Mac OS, mount the resulting iso with `hditul attach -readwrite foo.iso`, change the view settings for the folders to what you want them to be (remember to select "This folder only"!), then unmount the disk image and burn normally. (This requires that you already have modified the folder view settings as "this folder only".)

[ Reply to This | # ]
DVD image manipulation via hdiutil
Authored by: silicontrip on Aug 25, '05 07:56:16PM
hdiutil can also burn the image:

hdiutil burn filename.dmg

[ Reply to This | # ]
DVD image manipulation via hdiutil
Authored by: Dr. Smoke on Oct 19, '05 10:57:15AM
"it turns out the Mac wrote the DVD using HFS+ instead of hybrid."
If you had burned the DVD from Finder with Mac OS X 10.3 or later, the disc would have been in Hybrid format. See "Mac OS X: Format of DVD-R discs burned in the Finder."

;-) Dr. Smoke
Author, Troubleshooting MacĀ® OS X

[ Reply to This | # ]
CD or DVD .dmg or folder converted to true ISO-9660 filesystem
Authored by: crypto7 on Aug 24, '07 09:02:57PM

Better yet, just drag the image file to your OS X Desktop and use:

hdiutil makehybrid -o ~/Desktop/<outfile> ~/Desktop/<source>

Why? Because it's -hfs, -iso, -joliet and -udf (you want a DVD, right?) all wrapped into one. Not much bigger, either - this is from typing "man hdiutil" in the Terminal:

"By default, if no filesystem is specified, the image will be created with all four filesystems as a hybrid image. The data area of the image is shared between all filesystems, and only directory information and volume meta-data are unique to each filesystem. This means that creating a cross-platform ISO9660/HFS+ hybrid has a minimal overhead when compared to a single filesystem image."

And better yet, <source> can be a folder.

[ Reply to This | # ]