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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-08-2003, 07:23 PM
|
#1
|
Member
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511
Rep:
|
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
|
|
|
08-08-2003, 08:47 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
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
|
|
|
08-08-2003, 11:30 PM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-09-2003, 11:18 AM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
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?
|
|
|
08-09-2003, 11:30 AM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-09-2003, 05:55 PM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
08-09-2003, 11:15 PM
|
#7
|
Member
Registered: Feb 2003
Posts: 484
Rep:
|
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.
|
|
|
08-10-2003, 12:34 AM
|
#8
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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 08:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|