LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't write after first multisession... (https://www.linuxquestions.org/questions/linux-newbie-8/cant-write-after-first-multisession-276947/)

azucaro 01-12-2005 12:07 PM

Can't write after first multisession...
 
Having trouble writing multi-session cds.

I have tried K3b, gnome-toaster, Xcdroast, and gcombust of late, and none work for multi session. Single-session works fine, but when you enable multi you can't write any more data to the cd. It is most likely some underlying options or device specs are messed up (that's my guess). To aid others in possibly finding a solution, here is some more detailed info:

I am encountering a problem when trying to write a CD with multisession capability. I am using gcombust 0.1.54 on my Mandrake 10.0 (i386-compatible) machine. Gcombust uses cdrecord, and cdrecord is generating the error. The cd-rw I am using is a TDK CDRW101232. It is located at /dev/hdd.

Essentially, I can record one session onto a cd, but beyond that it says that the cd is not writeable. This is after attempting to find the next writable section of the cd with cdrecord –msinfo.I have searched all over the web and this forum for a solution, but have not encountered one at all. I am curious as to whether it is an option that I am not passing to cdrecord (or gcombust), or if it is something with my device configuration.

Any help is appreciated. If my problem is beyond your scope, any point in the right direction is also greatly appreciated! I have included the command line options that were generated by gcombust below.

Thank you in advance,

Ant Zucaro

-ISO image created using mkisofs 2.01a27 (i686-pc-linux-gnu). The command is as follows, and was successful:
mkisofs
-graft-points
-f
-R
-r
-l
-J
-o/home/ant/tmp/pics.iso
--
BackBay01042005/=/home/ant/Desktop/Pictures/BackBay01042005/
FirstLanding01102005/=/home/ant/Desktop/Pictures/FirstLanding01102005/
Graduation12172004/=/home/ant/Desktop/Pictures/Graduation12172004/
Jackson12082004/=/home/ant/Desktop/Pictures/Jackson12082004/
Norfolk12282004/=/home/ant/Desktop/Pictures/Norfolk12282004/
Orstead12282004/=/home/ant/Desktop/Pictures/Orstead12282004/
SandR010305/=/home/ant/Desktop/Pictures/SandR010305/

-The first burn was completed using cdrecord-clone 2.01a27-dvd (i686-pc-linux-gnu). It was successfully completed using the following command:
/usr/bin/cdrecord
-v
-eject
-pad
speed=12
dev=/dev/hdd
-dao
-multi
-data
/home/ant/tmp/pics.iso

-To test multisession capability, I attempt to burn one more file onto the disk. First I create another ISO file with the following command:
/usr/bin/mkisofs
-graft-points
-f
-R
-r
-l
-J
-o/home/ant/tmp/test.iso
--
TestFolder/=/home/ant/Desktop/TestFolder/

-I then attempt to burn the folder to the disk with:
/usr/bin/cdrecord
-v
-eject
-pad
speed=12
dev=/dev/hdd
-dao
-multi
/home/ant/tmp/test.iso

This gives me an error saying that it cannot find the next writeable address, and that the media "cannot be written in streaming mode anymore." I have tried scanning my bus to see if listing the device ID as numbers (bus, target, lun) would work, but this yielded no results (cdrecord tells me that my writer is on 1,1,0). Is there something that I am not doing with cdrecord or my device?

homey 01-12-2005 03:42 PM

This is how I use multi sessions and cdrecord. In this example, I am piping the output of mkisofs directly to cdrecord.
I am using the period ( . ) to indicate that I want to use my Present Working Directory.

Code:

All images must have "-multi" used on all cdrecord sessions.
The first mkisofs session is generated as normal.
Additional sessions must have the track number ( -C # ) included when generated.
        next=`cdrecord -msinfo dev=0,0,0`
        echo "Next Track is $next"
            mkisofs -R -J -o /home/myfiles.iso -C $next \
        -M /dev/cdrom -V "Vol1"  . |\
        cdrecord -v speed=4 dev=0,0,0 -eject -multi -data /home/myfiles.iso

To burn additional sessions directly to the cdrom....
        next=`cdrecord -msinfo dev=0,0,0`
        echo "Next Track is $next"
            mkisofs -R -J -C $next -M /dev/cdrom -V "Vol1"  . |\
        cdrecord -v speed=4 dev=0,0,0 -eject -multi -data -


azucaro 01-12-2005 10:18 PM

-msinfo
 
Thanks for your assistance and code. For the -msinfo option within it, it should return a pair of numbers indicating when a track started and ended. When I run -msinfo, it does not return the pair of numbers, but instead spits and error back at me about not being able to find the next writable section.

Emmanuel_uk 02-25-2005 06:54 AM

In mandrake 10.1 I wasted a few CD in K3b trying to do multissessions,
until I found out that using cdrecord vanilla 2.x still in k3b (available with the distro)
always worked (rather than cdrecord-dvd or whatever the default was)
It drove me crazy. Also, I always burn as root, it may or not matter

That is my humble newbee experience

homey 02-25-2005 10:06 AM

Hi azucaro,
Sorry, I didn't notice your response. :( I made a mistake having spaces in the line....
next = `cdrecord -msinfo dev=0,0,0`
It should be next=`cdrecord -msinfo dev=0,0,0`

I have redone the instructions to hopefully make them more clear.
Code:

# All images must have "-multi" used on all cdrecord sessions.

For example: I have two folders which I want to record.
I am going to use -graft-points so the folders are created
and all data is put inside them.

/mnt/tech/achome
/mnt/tech/aclinux

# The first mkisofs / cdrecord session is generated as normal.

cd /mnt/tech
mkisofs -R -J -graft-points "achome=./achome" |\
cdrecord -v dev=ATA:1,0,0 -multi -data -

# Additional sessions must have the track number ( -C # ) included when generated.
# This example makes an iso file before burning to the cdrom.

cd /mnt/tech
next=`cdrecord -msinfo dev=ATA:1,0,0`
echo "Next Track is $next"
mkisofs -R -J -o /home/mystuff.iso -C $next \
-M /dev/cdrom -graft-points "aclinux=./aclinux" |\
cdrecord -v dev=ATA:1,0,0 -eject -multi -data /home/mystuff.iso

# This example burns additional sessions directly to the cdrom
# without creating an iso image first.

cd /mnt/tech
next=`cdrecord -msinfo dev=ATA:1,0,0`
echo "Next Track is $next"
mkisofs -R -J -C $next -M /dev/cdrom -graft-points "aclinux=./aclinux" |\
cdrecord -v dev=ATA:1,0,0 -eject -multi -data -



All times are GMT -5. The time now is 06:57 PM.