Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 06-05-2003, 01:27 PM   #1
Guybrush
Triple-A Player
 
Join Date: May 2003
Location: homeless
Posts: 111
Question howto create iso from cdrom?

how can i create an iso image from a cdrom?
i have tried:
mkisofs -r -o image.iso /Volumes/Test

that creates a correct iso but not an exact one on one copy..

if have also tried: dd if=/dev/disk1 of=image.iso
but that doesnt even create a valid iso and gives an error on the end.
Guybrush is offline   Reply With Quote
Old 06-05-2003, 02:29 PM   #2
nosaj56
Triple-A Player
 
Join Date: Jul 2002
Location: Louisiana
Posts: 208
Do you have to use the Terminal? Iso's can be made with DiskCopy. Just drag the cd onto DiskCopy and image it as a DVD/CD Master. This will produce a .cdr.dmg file. Rename the .cdr.dmg to .iso .
nosaj56 is offline   Reply With Quote
Old 06-05-2003, 05:40 PM   #3
Guybrush
Triple-A Player
 
Join Date: May 2003
Location: homeless
Posts: 111
renaming the .dmg to .iso wont work, i want the iso (iso 9660 format) to be readeable under windows.

it doesnt have to be in terminal tho, thought it might be easier todo..
Guybrush is offline   Reply With Quote
Old 06-05-2003, 06:08 PM   #4
Guybrush
Triple-A Player
 
Join Date: May 2003
Location: homeless
Posts: 111
if i choose file->new image from device and select the cdrom it works, but works on Data CD's only tho

but doesnt seem to work on audio cd's
Guybrush is offline   Reply With Quote
Old 06-05-2003, 06:11 PM   #5
nosaj56
Triple-A Player
 
Join Date: Jul 2002
Location: Louisiana
Posts: 208
Try
Code:
mkisofs -J -r -o name_of_my_image.iso data_dir(where my files are)
So, it looks like you just need to add a "-J".

P.S.: This syntax is from this hint.
nosaj56 is offline   Reply With Quote
Old 06-05-2003, 06:29 PM   #6
Guybrush
Triple-A Player
 
Join Date: May 2003
Location: homeless
Posts: 111
that works yes, but it will only make a image of the files it sees in finder or ls, it will not be an exact 1 on 1 copy.

I want to backup an audio cd, and i used that command but it created an iso file with only the AIFF files while there's also a player.exe on the cd.

Also when i mount the iso in windows it will not autoplay because its not a 1 on 1 copy.
Guybrush is offline   Reply With Quote
Old 06-05-2003, 06:37 PM   #7
nosaj56
Triple-A Player
 
Join Date: Jul 2002
Location: Louisiana
Posts: 208
I found this:

1. Using Disk Copy, make a disk image file of the original CD.
(Disk Copy will see invisible files and include them in the image.)
You end up with a .dmg file.

But if you try to burn the .dmg file it still won't come out correct because the
.dmg file will be treated the same by Toast as a CD would and the invisible
files won't be burned correctly. A big waste of CDs and time.

And you can't burn a .dmg file using DiskCopy for the same reason!

There is an additional step that needs to be taken before
this kind of CD can be burned by Toast correctly.

2. You must convert the .dmg image file to a .cdr image file
using DiskCopy.

Here is how you do that:

A. Open disk copy.
B. Select "Convert Image" from the file menu.
C. Using the open dialogue box, navigate to the .dmg file and select it. You get a save dialogue box.
D. In the save dialogue box. name the new file.
E. At the bottom of the save dialogue box, select DVD/CD master on the Image Format popup menu.
F. Save the new image.

DiskCopy pain in the butt warning.

What you get when you convert a .dmg image is a file with two file designations in a row.

A file that has both .dmg.cdr at the end of the name.

Example: MYFILE.dmg

becomes MYFILE.dmg.cdr

After being converted.

It's a good file, but if you try to burn it you will get an error every time
and waste CDs. You need to change the file designation to one that will
work to burn the CD. To do that simply go to the file select the name and
delete the .dmg from the name.

You end up with: MY FILE.cdr

It's that simple. You can now use Toast to burn a useable CD.

Now, try renaming your .cdr to .iso. (?)
nosaj56 is offline   Reply With Quote
Old 06-06-2003, 10:36 AM   #8
bluehz
MVP
 
Join Date: Jan 2002
Posts: 1,562
I have often wondered what would be a similar item to the .dmg for file distribution - say if I wanted to send a disk image to a pc friend. Would this technique work for that. Send an .iso to friend on PC and have it act similar to .dmg on Mac?
bluehz is offline   Reply With Quote
Old 09-14-2004, 07:09 PM   #9
magicbob
Prospect
 
Join Date: Mar 2004
Posts: 7
where is diskcopy?

the only diskcopy i found is a classic application. is there a os x version? where is it?
magicbob is offline   Reply With Quote
Old 09-14-2004, 07:28 PM   #10
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Disk Copy was only in Jaguar and before.. in Panther it was folded into Disk Utility.
yellow is offline   Reply With Quote
Old 12-08-2004, 08:25 PM   #11
tji
Triple-A Player
 
Join Date: Aug 2003
Location: Mountain View, CA
Posts: 183
Quote:
Originally Posted by Guybrush
how can i create an iso image from a cdrom?
if have also tried: dd if=/dev/disk1 of=image.iso
but that doesnt even create a valid iso and gives an error on the end.

sorry to resurrect a very old thread.. But, I'm wondering the same thing.

On linux systems, I can do a "dd if=/dev/hdc of=image.iso", and get an iso image of the cd.


I tried to do it similarly in MacOS X, but the image appeared to be corrupt and wouldn't mount. I tried both if=/dev/disk1 and if=/dev/rdisk1, with no luck.

Is there some way to do this in OS X?
tji is offline   Reply With Quote
Old 12-08-2004, 09:30 PM   #12
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,854
Directions

Trevor
trevor is online now   Reply With Quote
Old 12-13-2004, 03:12 PM   #13
tji
Triple-A Player
 
Join Date: Aug 2003
Location: Mountain View, CA
Posts: 183
Quote:
Originally Posted by trevor
Directions

Trevor

Thanks for the pointer. I think my problem before was that I forgot to unmount the cdrom... dumb.
tji is offline   Reply With Quote
Reply


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

Forum Jump



All times are GMT -5. The time now is 06:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.