clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: 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.
|