LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-18-2008, 07:49 PM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Rep: Reputation: 32
Creating an ISO from an audio cd with dd


Is it possible to create an ISO from an audio cd with the command dd? If so, please, let me know how?

Thanks,
Glore2002.-
 
Old 09-18-2008, 08:48 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
The same way as you do with a cdrom I think (dd if=/dev/cdrom of=/tmp/file.iso)
dd copies block by block, so it should not care of the nature of the cd, could be audio cd, video cd, photo cd, video game cd... whatever

Last edited by keefaz; 09-18-2008 at 08:50 PM.
 
Old 09-18-2008, 08:53 PM   #3
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
I don't know what it is you need, but with K3B you can "rip" an audio CD and create mp3 / ogg / whatever files from an audio CD.
These files can later be burned on a new disk with K3B.

I *think* that theoretically it is impossible to copy directly from an audio CD with dd, as there are no data sectors on it. The format of an audio CD is different, like a stream without checksums etc.
 
Old 09-18-2008, 08:55 PM   #4
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by keefaz View Post
The same way as you do with a cdrom I think (dd if=/dev/cdrom of=/tmp/file.iso)
dd copies block by block, so it should not care of the nature of the cd, could be audio cd, video cd, photo cd, video game cd... whatever
Thanks keefaz for your answer.

What you said is what I thought but when I do that, I get the following message:

Code:
dd: reading `/dev/cdrom': Input/output error
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00227296 s, 0.0 kB/s
Glore2002.-
 
Old 09-18-2008, 08:57 PM   #5
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by niels.horn View Post
I don't know what it is you need, but with K3B you can "rip" an audio CD and create mp3 / ogg / whatever files from an audio CD.
These files can later be burned on a new disk with K3B.

I *think* that theoretically it is impossible to copy directly from an audio CD with dd, as there are no data sectors on it. The format of an audio CD is different, like a stream without checksums etc.
Thanks niels.horn.

I think you're right. So I will go back to k3b.

Glore2002.-
 
Old 09-18-2008, 09:11 PM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
I think you are right niels.horn

I suggest use: cdparanoia -vsQ
this will copy the CD tracks in current directory, then you can make a CD audio from those tracks. Or use k3b
 
Old 09-18-2008, 09:50 PM   #7
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by keefaz View Post
I think you are right niels.horn

I suggest use: cdparanoia -vsQ
this will copy the CD tracks in current directory, then you can make a CD audio from those tracks. Or use k3b
Nice tip!

I've used:

Code:
cdparanoia -B -- "-12"
This outputs each track on a different file. From track 1 up to track 12.

Is there a way to convert them to mp3 directly when extracting the tracks?

Thank you!
Glore2002.-
 
Old 09-18-2008, 10:38 PM   #8
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
You will need lame for that. I recommend using rubyripper instead. http://code.google.com/p/rubyripper/
 
Old 09-18-2008, 11:19 PM   #9
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Audio CDs don't contain filesystems. They actually resemble phono tracks, which spiral inward and have gaps to mark the track boundaries.
 
Old 09-19-2008, 03:53 AM   #10
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I say the best tool for this is cdrdao:
Code:
cdrdao read-cd --device /dev/cdrom --datafile image.bin
 
1 members found this post helpful.
Old 09-19-2008, 11:04 AM   #11
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H View Post
I say the best tool for this is cdrdao:
Code:
cdrdao read-cd --device /dev/cdrom --datafile image.bin
I am sure I am missing something (parameter or so) but when I execute:

Code:
cdrdao read-cd --device /dev/cdrom --datafile image.bin
It displays the following error message:

Code:
ERROR: Missing toc-file.
This happens with both, Audio and Data CDs.

Thanks,
Glore2002.-
 
Old 09-19-2008, 02:02 PM   #12
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Try leaving out the '--datafile', and this will only work for audio cds.
You can use dd, but you will NOT get an iso. Why ? Because audio CDs don't have a filesystem, and it's .iso because it has iso9660 filesystem, not the case for audio CDs.
 
Old 09-20-2008, 05:29 PM   #13
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by H_TeXMeX_H View Post
Try leaving out the '--datafile', and this will only work for audio cds.
You can use dd, but you will NOT get an iso. Why ? Because audio CDs don't have a filesystem, and it's .iso because it has iso9660 filesystem, not the case for audio CDs.
Thanks for your reply!

Once I have the image, are this commands fine to burn that image to an empty CD?

$> cdrdao write --device /dev/cdrom image.bin

Glore2002.-

Glore2002.-

Last edited by glore2002; 09-20-2008 at 06:49 PM.
 
Old 09-21-2008, 04:32 AM   #14
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Yes, I think that would work, but instead of 'image.bin' you should use the name of the toc file.
 
Old 09-21-2008, 10:01 AM   #15
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Thumbs up Conclusion.

Thanks H_TeXMeX_H for your suggestion.

Finally, as a conclusion, I will tell you what worked for me.

I've used the following commands to create and to record an image CD or DVD. This works for audio as well as for data.

a) To create image:

Code:
$> cdrdao read-cd -v 2 --device 1,0,0 --read-raw --datafile imagen.bin imagen.toc
b) To record image:

Code:
$> cdrdao write -v 2 --device 1,0,0 --speed 4 --buffers 64 imagen.toc

Thanks to all of you for helping me.

Glore2002.-
 
  


Reply

Tags
audio, cd, cli, conversion, copy


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
Creating DVD ISO from CD ISO subhranath Suse/Novell 3 01-18-2006 03:37 AM
creating my own ISO distribution hcclnoodles Linux - Software 1 01-07-2006 09:59 AM
creating an iso? quaylet Linux - Software 3 05-20-2005 11:06 PM
Creating ISO from CD iqbal Linux - Newbie 2 05-20-2005 04:09 PM
Creating ISO from CD terry_truitt Red Hat 5 08-31-2003 11:17 PM


All times are GMT -5. The time now is 11:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration