cdrom and multisession

cdrom and multisession

am 23.08.2004 15:15:20 von Luca Ferrari

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@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: cdrom and multisession

am 24.08.2004 17:44:27 von Luca Ferrari

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@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: cdrom and multisession

am 24.08.2004 18:11:40 von Scott Taylor

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: cdrom and multisession

am 24.08.2004 18:29:44 von Luca Ferrari

On Tuesday 24 August 2004 18:11 Scott Taylor's cat walking on the keybo=
ard =20
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=
=20
rewrite it all. If so, I don't like it, otherwise please explain what y=
ou're=20
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=20
you understand that from my e-mail address?=20


> 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=20
know how many sessions are there in the cd, but I know that the cd cont=
ains,=20
in one of the session, a file I want to read. What I was asking here is=
if=20
there is a way to know how many session are present, thus to easily ite=
rate=20
without making my program to try mounting the cd and stopping at the fi=
rst=20
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


--=20
Luca Ferrari,
fluca1978@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: cdrom and multisession

am 25.08.2004 20:51:25 von Stephen Samuel

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@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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: cdrom and multisession add2cd script

am 27.08.2004 03:54:40 von Gustavo Guillermo

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@gus:/tmp/ >mkisofs -J -L -l -r -gui -M 0,0,0 -C `cdrecord dev=3D0,=
0,0=20
-msinfo` /tmp/cosasparaagregar/ | cdrecord dev=3D0,0,0 speed=3D32 -v -f=
orce=20
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html