CD multisession remastering with cdrecord


Forum: Other Help Topics
Topic: CD multisession remastering with cdrecord
started by: clacker

Posted by clacker on Aug. 06 2004,02:40
I've been able to write a multisession CD in cdrecord and it works fine.  I thought I'd share, since it was only from reading here that I know what I know.  The first track on the CD was a straight copy of DSL version 0.7.3 which I made with the following commands:

Code Sample
sudo su
mkdir newcd
cp -Rp /cdrom/KNOPPIX newcd
mkisofs -J -r -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -o mydsl.iso newcd
cdrecord blank=fast dev=0,1,0
cdrecord -v dev=0,1,0 -multi mydsl.iso


your dev number might be different.  You can find it by issuing the cdrecord -scanbus command.  I used the cdrecord blank=fast dev=0,1,0 command first because I was using a CD-RW.  I read on this board how great they are, and they've really saved me money (I was throwing away a lot of disks).  The -multi switch leaves the cd open for more writing, even though you see cdrecord fixating the cd.

Now make the rest of your CD.  I only wanted to add an /optional directory to the root directory to store my dsl files so I could load them on demand.  Make another iso file using the mkisofs command, but now use the -C and -M switches.  You can get the start and end values to type in after the -C switch by using the

cdrecord -msinfo dev=0,1,0

command.  Again, your device might be different (mine happened to be 0,35778).  The -M switch makes an iso that is a continuation of the previous one (put your device number after the -M).  I did the following:

Code Sample
cdrecord -msinfo dev=0,1,0
rm -rf /newcd/*
cp -r /mnt/hda1/optional newcd
mkisofs -J -r -C 0,35778 -M 0,1,0 -o second.iso newcd
cdrecord -v dev=0,1,0 -eject second.iso


I hope this helps making multisession CDs with cdrecord.  You could have also done any remastering you wanted in the first section if you wanted.  I used it a few times to copy the remaster I had worked out already and added dsl files to the /optional directory.

Posted by ke4nt1 on Aug. 06 2004,04:37
Yes, this works fine in cdrecord...  Very well, in fact...

As you can tell from all the syntax and multiple commands,
this technique is NOT for the new linux user...

( I'm printing this thread out myself, just for reference. )  :)
Good Work !

The GUI tools I've tried don't do a great job of this type of burning...

I've also use the -C and -M commands to burn a second .ISO to the cdr.
All cdrecord needs is that start sector number...

Quote
The -multi switch leaves the cd open for more writing, even though you see cdrecord fixating the cd.


The activity I see here is the drive writing the lead-out, closing the Session,
and preparing for the next Session...

I don't know if there is a limit to the number of sessions you can write,
or that a cdr/cdrw drive will detect/read...

Posted by clacker on Aug. 06 2004,05:42
Quote
I don't know if there is a limit to the number of sessions you can write,
or that a cdr/cdrw drive will detect/read...


There is, I believe the maximum number of tracks is 99, due to the minimum size a track can be.

I've written 5 tracks to the same CD, during which time I rebooted twice using that same CD.  I used the -C and -M switches for all but the first iso, and the -multi switch for cdrecord.  I also made an iso with a directory I had already burned to the CD (/optional) and emelfm shows the files from the second directory exist within the first.

Posted by ke4nt1 on Aug. 06 2004,05:58
At the studio ( my DAY job ) ,
I frequently have to make multisession masters for various music clients
who want to add web links, mpeg-1videos, flash, lyrics,
and autoplay functions to the tail end of their mastered audio cd's...  
Usually for the windows platform, occasionally some mac links for flash...

Building them in the linux environment is cool, but ultimately, they have to be
previewed and tested in a M$ box before approval and replication...

Are you aware of any autoplay utilities for linux?
( obviously, for autorun in M$ , and short of hand-coding the executables?

Do you mind if I save your portion of this thread
for later use in how-to's and docs?

73
ke4nt

Posted by clacker on Aug. 06 2004,13:55
No, I don't mind.  It would be an honor to become part of the documentation.
Posted by RoGuE_StreaK on Aug. 06 2004,23:30
Good work Clacker.  Haven't tried it yet (my last attempts to make a CD under DSL failed miserably, I think mainly 'cause I didn't know which device was my burner - thanks for the "cdrecord -scanbus" tip!), but looks promising, and reads clearly enough for even someone like me :D
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.