Re: cdrom and multisession

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux