Saturday, February 2, 2008

OSX Cmd: Copy & Burn DVD/CD

I would like to copy DVD/CD image on Mac OS X. I don't want to install something like Toast since it's also install other craps that I don't need. Disk Utility comes with Mac OS X doesn't create ISO images. It's only can burn it. Tried to find out if there another way to do this on Mac OS X (Leopard in my case) without need installation others application. I found below useful command.

Copy DVD/CD

Typical way to duplicate DVD/CD is to make an ISO image. ISO9600 compliant bit-wise copy of content of an optical disc that allow it to be used on any operating system. You can burn this ISO image to any number of disk and use them anywhere, on any machine.

On Mac OS X, an ISO image can be create using hdiutil command. Below command will automaticaly create .iso file name Photo2008.iso on current directory.

hdiutil makehybrid -o {image_name} {image_source}

eg: hdiutil makehybrid -o Photo2008 /Volume/Photo2008

Note: /Volume/Photo2008 is a DVD


You can also use additional options below.

hdiutil makehybrid -o {image_name} {image_source} [filesystem] -verbose

[filesystem]
Option: -hfs, -iso, -joliet, -udf

-verbose
To see all the operation details.




Burn DVD/CD

Following command to burns the image created to available optical media and verifies the burn.

hdiutil burn {image_source}

eg: hdiutil burn Photo2008.iso


You can also use additional options below.

hdiutil burn {image_source} -speed [x_speed] -testburn -noeject -noverifyburn -verbose

-speed
[x_speed] option: 1, 2, 3 ...., 8, max. This depend how many CPU your DVD/CD drive have. If specified 4, means the drive will be instructed burn at "4x speed". If no -speed specified "max" is the default speed.

-testburn
Don't turn on laser (laser defaults to on).

-noeject
Do not eject disc after burning. The default is to eject the disc.

-noverifyburn
Do not verify disc contents after burn. The default is to verify.

-verbose
To see all the operation details.


No comments: