LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How can I make an .iso file from a CD or DVD using the command line? (https://www.linuxquestions.org/questions/linux-general-1/how-can-i-make-an-iso-file-from-a-cd-or-dvd-using-the-command-line-563122/)

rm_-rf_windows 06-19-2007 11:39 PM

How can I make an .iso file from a CD or DVD using the command line?
 
I'm on FC6 and would like to burn an .iso file to my desktop from a CD (audio CD). I've tried two different commands which I found Googling around the Net:

Code:

[root@localhost Desktop]# dd if=/dev/cdrom of=/arttatum.iso
dd: reading `/dev/cdrom': Input/output error
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00840777 seconds, 0.0 kB/s
(...)
[root@localhost Desktop]# cat /dev/cdrom > /home/linux/Desktop/arttatum.iso
cat: /dev/cdrom: Input/output error
[root@localhost Desktop]# dd if=/dev/cdrom of=~/Desktop/arttatum.iso
dd: reading `/dev/cdrom': Input/output error
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.0278309 seconds, 0.0 kB/s
[root@localhost Desktop]#

They don't work.

The idea is to learn more about command line tools as well as about .iso files, burning CDs and DVDs... If I use the command line to make an .iso file, will the .iso file be an 'exact' copy of the CD or will it only be an exact copy if the CD is a non-commercial CD? How about DVDs?

How can I go about getting CD quality sound files on my computer (not compressed, not mp3) with the exact same format as CDs (for quality classical music recordings, for example)?

Any other useful tricks and tips?

Many thanks.

lpn1160 06-20-2007 12:29 AM

I don't know if this will work on audio cd's but give it a try:
dd if=/dev/hdc of=/home/name/audiocd.iso bs=2048 conv=notrunc

This assumes your cd drive is hdc, to check when it's mounted try df

For lossless audio rip your cd's to flac. A good program for this is grip.

good-luck

JZL240I-U 06-20-2007 07:46 AM

Since you are bent on learning, maybe you have some use for this old thread:

http://www.linuxquestions.org/questi...ad.php?t=53002

Also use the links provided in the thread.

P.S.: Use dd with the -v option, perhaps the verbose output better exlains the I/O error. BTW do you have writing rights in the directory where you gave the command in?

fitzov 06-20-2007 08:29 AM

cdrecord
 
One source on my desk says the most straightforward is

cdrecord -v dev=0,1,0 -isosize /dev/sdc0

which directly copies a source disk to a recordable disk.


All times are GMT -5. The time now is 01:23 AM.