LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-12-2005, 12:07 PM   #1
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
Question 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?
 
Old 01-12-2005, 03:42 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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 -

Last edited by homey; 02-25-2005 at 10:08 AM.
 
Old 01-12-2005, 10:18 PM   #3
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Original Poster
Rep: Reputation: 30
-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.
 
Old 02-25-2005, 06:54 AM   #4
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
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
 
Old 02-25-2005, 10:06 AM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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 -
 
  


Reply



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
mounting a Multisession CD maginotjr Slackware 2 09-07-2005 12:51 PM
DVD-RW drive can't write a multisession dvd?? bruno buys Linux - Hardware 1 04-05-2005 09:38 AM
Upgrading a multisession CD sbaguz Linux - Software 1 09-07-2003 03:45 PM
multisession not complete sridharinfinity Linux - General 1 06-10-2003 05:43 AM
Multisession cds captgoodnight Linux - Software 0 01-28-2002 02:44 AM

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

All times are GMT -5. The time now is 11:36 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
Open Source Consulting | Domain Registration