cdrom and multisession

Hi,
I'm writing a program for simple backups on cdroms, and it's supposed to use
command-line tools (cdrecord). I've burned a cd with -multi flag and two
sessions, but mounting the cd (on the same drive) shows me only the first
burn. How can I see the second burn?

Thanks,
Luca

--
Luca Ferrari,
fluca1978 [at] infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Luca Ferrari [ Mo, 23 August 2004 15:15 ] [ ID #72703 ]

Re: cdrom and multisession

On Monday 23 August 2004 15:15 Luca Ferrari's cat walking on the keyboard
wrote:

> Hi,
> I'm writing a program for simple backups on cdroms, and it's supposed to
> use command-line tools (cdrecord). I've burned a cd with -multi flag and
> two sessions, but mounting the cd (on the same drive) shows me only the
> first burn. How can I see the second burn?

Ok, it was simple after all! A command line like the following:
mount -t iso9660 -o session=3 /dev/cdrecorder /media/cdrecorder/
works correctly showing the third written data. Nevertheless I don't find this
a smart approach, and I'd like to know if there's another way to add data to
a cdrom making it possible to easily read it with a single mount. Otherwise,
how can I iterate automatically on all the session of a cd to search for a
specific file?

Thanks,
Luca


--
Luca Ferrari,
fluca1978 [at] infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Luca Ferrari [ Di, 24 August 2004 17:44 ] [ ID #72712 ]

Re: cdrom and multisession

Luca Ferrari said:
> On Monday 23 August 2004 15:15 Luca Ferrari's cat walking on the keyboard
> wrote:
>
>> Hi,
>> I'm writing a program for simple backups on cdroms, and it's supposed to
>> use command-line tools (cdrecord). I've burned a cd with -multi flag and
>> two sessions, but mounting the cd (on the same drive) shows me only the
>> first burn. How can I see the second burn?
>
> Ok, it was simple after all! A command line like the following:
> mount -t iso9660 -o session=3 /dev/cdrecorder /media/cdrecorder/
> works correctly showing the third written data. Nevertheless I don't find
> this a smart approach, and I'd like to know if there's another way to add
> data to a cdrom making it possible to easily read it with a single mount.

Use a rewritable aproach?

> Otherwise, how can I iterate automatically on all the session of a cd to
> search for a specific file?

How can you write a program if you don't know how to use a loop to iterate
through a set or increment an integer to a maximum value?

First you'll need to know the number of sessions on your CD, or make your
program guess with an 'or die' (or equiv) if mounting fails.

Not really quite sure what you are trying to ask us here. Are we doing
your homework again?

--
Scott
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Scott Taylor [ Di, 24 August 2004 18:11 ] [ ID #72713 ]

Re: cdrom and multisession

On Tuesday 24 August 2004 18:11 Scott Taylor's cat walking on the keybo=
ard
wrote:


Hi Scott,
I'm not asking you to do my homework, just a suggestion.


>
> Use a rewritable aproach?
>

I believe this will imply to dump the original content, add the new and=

rewrite it all. If so, I don't like it, otherwise please explain what y=
ou're
thinking about.


> > Otherwise, how can I iterate automatically on all the session of a =
cd to
> > search for a specific file?
>


> How can you write a program if you don't know how to use a loop to it=
erate
> through a set or increment an integer to a maximum value?
>

Who said that? Do you think I'm not able to iterate other a set of valu=
es? Did
you understand that from my e-mail address?


> First you'll need to know the number of sessions on your CD, or make =
your
> program guess with an 'or die' (or equiv) if mounting fails.
>

That's what I was thinking. Imagine I've got a cd in the driver, and I =
don't
know how many sessions are there in the cd, but I know that the cd cont=
ains,
in one of the session, a file I want to read. What I was asking here is=
if
there is a way to know how many session are present, thus to easily ite=
rate
without making my program to try mounting the cd and stopping at the fi=
rst
fail, to reach the file I'm looking for. I'd like to do this in bash.

>Not really quite sure what you are trying to ask us here. =A0

If you don't know the answer, please don't post.

Luca


--
Luca Ferrari,
fluca1978 [at] infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Luca Ferrari [ Di, 24 August 2004 18:29 ] [ ID #72714 ]

Re: cdrom and multisession

Luca Ferrari wrote:
> On Tuesday 24 August 2004 18:11 Scott Taylor's cat walking on the keyboard
> wrote:

>>Use a rewritable aproach?
> I believe this will imply to dump the original content, add the new and
> rewrite it all. If so, I don't like it, otherwise please explain what you're
> thinking about.
I think that he meant to use CDRW rather than CDR (about 5 times the cost
per disc) They may get around the proglem of sessions being closed.

that having been said, have you carefully read the --multi
flag on cdrecored man page??

> If you don't know the answer, please don't post.
If you don't want guesses, start paying consultancy fees.

--
Stephen Samuel +1(604)876-0426 samuel [at] bcgreen.com
http://www.bcgreen.com/~samuel/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Stephen Samuel [ Mi, 25 August 2004 20:51 ] [ ID #72722 ]

Re: cdrom and multisession add2cd script

Try USING this wonderful script add2cd

just doing add2cd folderincd=3Dfolderinharddrive
burns automagycally a start or multisession CD

http://www.compunauta.com/forums/linux/grabarcds/img/add2cd

Or So easy: try this
is at spanish but command line is universal

root [at] gus:/tmp/ >mkisofs -J -L -l -r -gui -M 0,0,0 -C `cdrecord dev=3D0,=
0,0
-msinfo` /tmp/cosasparaagregar/ | cdrecord dev=3D0,0,0 speed=3D32 -v -f=
orce
driveropts=3Dburnfree fs=3D16000000 -data -multi -eject -

http://www.compunauta.com/forums/linux/grabarcds/multisesion .html

Another examples

http://www.compunauta.com/forums/linux/grabarcds/

El Lunes 23 Agosto 2004 19:15, Luca Ferrari escribi=F3:
> Hi,
> I'm writing a program for simple backups on cdroms, and it's supposed=
to
> use command-line tools (cdrecord). I've burned a cd with -multi flag =
and
> two sessions, but mounting the cd (on the same drive) shows me only t=
he
> first burn. How can I see the second burn?
>
> Thanks,
> Luca

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Gustavo Guillermo [ Fr, 27 August 2004 03:54 ] [ ID #72724 ]
Linux » gmane.linux.admin » cdrom and multisession

Vorheriges Thema: DVD Writers
Nächstes Thema: pcl & images