reading files from a CD-ROM

Bruno Wolff III bruno at wolff.to
Mon Oct 16 15:49:24 UTC 2006


On Sat, Oct 14, 2006 at 17:28:26 -0700,
  Globe Trotter <itsme_410 at yahoo.com> wrote:
> Hi,
> 
> How do I read files from my CD-ROM in my program? For instance, previously, I
> would perhaps mount my CD and type 
> 
> %mount /media/cdrom
> 
> and then proceed to read using:
> 
> fopen("/media/cdrom/filenames.txt","r");
> 
> But this was during the days whwn fstab worked for Fedora Core 4? What do I do
> now. Same goes with /media/usb etc.
> 
> Any help, please?

You can still do things that way if you have created /media/cdrom and have
an appropiate entry in fstab added manually. Currently that's what I do.
However, there is probably a better way to do this using udev rules; I just
haven't started looking into what it would take to change things from
the current behavior where cd's get mounted using a name from the label
on the CD.




More information about the fedora-list mailing list