OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Duplicate a CD/DVD-ROM via the command line


Post Reply New Thread Subscribe

 
Thread Tools
gatorparrots
Guest
 
Posts: n/a

If you need to create a personal backup copy of a CD-ROM or DVD, it's fairly simple to do so in the terminal. First, insert the CD-ROM/DVD to be copied into your drive. When the Finder mounts it, take note of the path (especially the title of the disc). (You can also get this information via df if you are working totally without the GUI.)

Next, unmount the disc:
hdiutil unmount "/Volumes/nameofcd"
It should report its progress like so:
Code:
hdiutil: unmount: LetIOKitSettleDown: (timed out).
"disk3s1s9" unmounted successfully.
Next, copy the disc to your hard disk using the CD/DVD Master format (use whatever disk3xxxx name was returned above in the following command):
hdiutil convert /dev/disk3s1s9 -format UDTO -o "~/Desktop/nameofcd"
Its progress will look something like this:
Code:
Preparing imaging engine...
Reading Apple_HFS (0)...
..........................................................................
Terminating imaging engine...
Elapsed Time: 17m 21.578s
 (2 tasks, weight 100)
File size: 678428672 bytes
Sectors processed: 1325056, 1325056 copied
Speed: 636.1Kbytes/sec
created: nameofcd.dmg
Eject the disc from the drive and run this command: hdiutil burn "nameofcd.dmg" -noverifyburn -noeject

It will prompt you for a disc, insert one and it will burn your disc:
Code:
Please insert a disc: 
Starting
Initializing
Saving temporary image
Opening session
Writing track
............................................................................
Finishing writing
............................................................................
QUOTE Thanks

Post Reply New Thread Subscribe


« Finding disk usage by file type | List your installed applications »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
CD/DVD problems imstillatwork Apple Desktops 3 02-26-2004 10:35 PM
Help finding a dvd rom for a powerbook g3/266 b3d2004 Apple Notebooks 0 12-25-2003 10:59 PM

All times are GMT -4. The time now is 08:29 PM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?