LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2003, 07:23 PM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
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
 
Old 08-08-2003, 08:47 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
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
 
Old 08-08-2003, 11:30 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 08-09-2003, 11:18 AM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
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?
 
Old 08-09-2003, 11:30 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 08-09-2003, 05:55 PM   #6
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
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.
 
Old 08-09-2003, 11:15 PM   #7
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
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.
 
Old 08-10-2003, 12:34 AM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy from a cd gamor Linux - Newbie 8 11-08-2005 08:28 PM
How do I copy bograt Linux - General 1 03-05-2005 04:08 PM
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 09:25 AM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM
how to copy a cd safrout Linux - General 6 05-08-2002 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration