LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2009, 10:06 AM   #1
Coolmax
LQ Newbie
 
Registered: Jul 2009
Location: Poland
Distribution: openSUSE, Debian
Posts: 15

Rep: Reputation: 0
Some questions about ripping CD-Extra


Hello,
I spent a three days searching for ways to rip CD-Extra (aka CD-Plus or Enhanced CD). Cdrdao may do that, but it rip only one session. I know that with --session option like this:
Code:
cdrdao read-cd --device /dev/sr0 --driver generic-mmc-raw --read-raw --session xx --datafile image.bin image.toc
I can rip also second - data session. Is there anyway fo create 1:1 copy of all sessions in CD-Extra to one bin and toc file? Also is possible to make iso image of data session with dd? Suppose situation like this:
Code:
mateusz2@susek:~> cdinfo
CD Info 1.1 | (c) 1996-98 Gerd Knorr & Heiko Ei�feldt
__________________________________
track list (1 - 11)
 nr: msf      lba      ctrl adr  type
  1: 00:02:00 (000000) 0x0 0x1 audio
  2: 03:17:18 (014643) 0x0 0x1 audio
  3: 06:44:70 (030220) 0x0 0x1 audio
  4: 09:56:18 (044568) 0x0 0x1 audio
  5: 13:37:51 (061176) 0x0 0x1 audio
  6: 17:01:06 (076431) 0x0 0x1 audio
  7: 20:37:71 (092696) 0x0 0x1 audio
  8: 24:01:01 (107926) 0x0 0x1 audio
  9: 27:25:70 (123295) 0x0 0x1 audio
 10: 30:34:73 (137473) 0x0 0x1 audio
 11: 36:44:59 (165209) 0x4 0x1 data
170: 41:49:06 (188031) 0x4 0x1 data  (leadout)
[cut]
results of cdrecord and cdrdao were same except that cdrdao doesn't include 2 seconds pregap in time of tracks' start. In the example below data session starts at 165209th sector. One sector has 2048 bytes (2352 in raw mode, please correct me if I'm wrong). So
Code:
dd bs=2048 skip=165208 if=/dev/sr0 of=image.iso conv=sync,notrunc
should produce iso image of data session. I noticed that this image and image created by k3b have same size. But both are useless - in mount I had "wrong fs type...". They can't be open in UltraISO or in WinRar under Windows. In another cd-extra I must pass in skip= two or three more sectors than shows int ouput by these tools.

--
Thanks in advance, Mat.

Last edited by Coolmax; 08-20-2009 at 10:39 AM.
 
Old 08-21-2009, 07:05 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
There's no real way to make an 1:1 (as with dd, for example) of cdaudio tracks. That's why on a music studio you need a master copy to produce clones of an audio cd. If you only have the audio tracks (it doesn't matter cd extra or cd audio), then you need to rip them. I suggest using cdda2wav (which originally forked from cdparanoia but today is much better updated and maintained). The data track can be copied as usual, using dd or whatever tool you prefer.
 
Old 08-22-2009, 07:56 AM   #3
Coolmax
LQ Newbie
 
Registered: Jul 2009
Location: Poland
Distribution: openSUSE, Debian
Posts: 15

Original Poster
Rep: Reputation: 0
OK, but first command seems to make good copy of both audio and data session. What a shame that there is no option to make copy of all sessions to one .bin file. Could you give me an example with dd? I made a lot of tries to do that, but none of them are working.
 
Old 08-22-2009, 08:12 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
You'd first need a means to access individual tracks, cdfs can do that. Once done that, dd'ing the data track from there is just as always.

As for what regards to .bin files, what's so special about them? There are commercial tools that are capable to extract in a single file all the contents of cd-extra, but it's not an iso file or something that can be sanely used for anything, it's just a custom package format that doesn't follow any standard. Some of them will use a package file to store separate wave rips of the audio tracks + an iso file for the data track. Some others will use some custom flac+cue+iso format probably, it only makes sense. But since there's really no standard you could very well rip the audio, extract the iso track, and package everything into a 7z file and name it .bin, there would be absolutely no difference.

Last edited by i92guboj; 08-22-2009 at 08:13 AM.
 
  


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
Grip Riping question d33pdream Linux - Software 9 11-16-2008 03:41 AM
ps3 music riping cobra1981 Linux - Games 0 07-23-2007 01:05 PM
Problems w/ DVD riping tymanthius Linux - Software 2 11-25-2005 12:28 PM
Questions about 'extra'! bigapple Programming 2 07-04-2005 10:58 PM
Riping cd .iso phatboyz Linux - General 2 11-02-2004 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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