LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to copy a CD to CD?? (https://www.linuxquestions.org/questions/linux-software-2/how-to-copy-a-cd-to-cd-80286/)

yenonn 08-08-2003 07:23 PM

how to copy a CD to CD??
 
hi,

i am currently trying to copy a CD to another CD... how?
i tried "roaster" (i almost forget the name of the software... but, it is shipped with the RH9 package...)??, but, it failed....
any how-to or guidances?? before that, when i am a windows user, i am using nero to burn my CD... it is pretty straight forward and easy to get the way......anyway, pls advise.... thanks...

cheers,
yenonn

jailbait 08-08-2003 08:47 PM

I use a three step process to copy a CD to another CD. I use the command line.

1. Copy the first CD to a hard disk using the cp command.

2. Use the mkisofs command to create an iso image file.

3. Use the cdrecord command to burn the iso image file to a CD-R
or CD-RW

MasterC 08-08-2003 11:30 PM

You can do it in what will appear to be a 1 step:
dd if=/dev/cdrom conv=noerror | cdrecord dev=x,x,x speed=x -v -eject -
Don't miss that last -

And the:
dev=x,x,x
Is substituted with what you get for your device from:
cdrecord -scanbus

HTH

Cool

jailbait 08-09-2003 11:18 AM

MasterC,

In the command:
dd if=/dev/cdrom conv=noerror | cdrecord dev=x,x,x speed=x -v -eject -

is there some intermediate temporary file? What logic keeps dd from trying to read from the CD while cdrecord is writing to the CD?

MasterC 08-09-2003 11:30 AM

stdout is the 'intermediate' file. That's where - comes in on the end of cdrecord. The - says "take from stdin".

dd does read. It reads from the source cd in the /dev/cdrom slot. The above does assume 2 drives, 1 burner and 1 source. ;)

Cool

moses 08-09-2003 05:55 PM

All of the above assume that you have a data CD, not an audio CD.
The following does too:
if you have only one drive use MasterC's method, but output to
hard drive first:
Code:

dd if=/dev/cdrom of=/tmp/cd_image
cdrecord dev=x,x,x speed=y -v /tmp/cd_image

Of course, /tmp needs to have 650 or 700 MB free space.

emetib 08-09-2003 11:15 PM

i have set up a script for making mine. i use it to copy disks for others. haven't given it a shot for music cd's, but i think that it would work.

#!/bin/bash
dd if=/dev/hdd | cdrecord -v speed=12 dev=0,0,0 fs=8m -data - &&
diff -r /cdrom /cdrom1

i put the diff command there just to be sure that they have copied correctly.

if your going to use it, make it exe and then put in in bin. call it what ever you want, mine is cpcd, then all you have to do is to type that at the cmd line.

cheers.

Electro 08-10-2003 12:34 AM

For audio CDs, you need to use cdda2wav or paranoia. The command is the samething like the dd. Read the manual pages for either cdda2wav or paranoia.


All times are GMT -5. The time now is 11:54 PM.