[Nelug] Sharing CD-ROM over Samba on Fedora 9

Brian Ronald brian at ppcis.org
Sun May 25 22:18:16 UTC 2008

On Sun, 25 May 2008 07:45:47 +0100 Daniel Tweedy
<daniel.tweedy at gmail.com> wrote:
> There isn't a /cdrom folder no

This will basically be what the problem is.  If the folder you're
sharing doesn't exist, network users won't be able to access it.

Insert a CD-ROM into your system and see what directory, if any, the
contents of the CD-ROM are mounted in.  Your setup assumes /cdrom,
which is likely not to be the case.  I'm assuming you're familiar with
how UNIX-like operating systems (including Linux) mount volumes into
directories rather than using drive letters or other volume
identifiers.  If you're not familiar with this, read up on it here:

Some distributions (such as Ubuntu, which I'm using) create a folder
in /media which is named like the CD-ROM's volume label.  Thus, if I
insert my Sony Ericsson phone driver CD, I end up with the files being
located in /media/Pc-Suite - which is a complete pest for sharing,
since every CD-ROM gets mounted in a different directory and I can't be
expected to write a share definition for every CD-ROM I might want to

If this is the case, then you're going to have to alter the behaviour
of the automatic mounter that your distribution. This might not be
easy, and if you can't get it to work you could instead try disabling
the thing and using pre- and post-exec scripts to do the mounting
predictably, as first suggested by Tim.

An alternative in my case is to simply share /media in its entirety.
Only hiccough there is that I might not want all of my removable
volumes sharing - especially the one on which I keep my GPG secret key!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/durham/attachments/20080525/c61f25ba/attachment.pgp 

More information about the Nelug mailing list