I have an external USB DVD drive which I can mount successfully with sudo mount /dev/cdrom /media/cdrom. The trouble is the mount seems to fail when I change disks, and it gets really confused if I put a music CD in.
I've installed usbmount and rebooted but apart from creating /media/usb[0-7] it has had no effect at all. If I unplug and replug the drive (with a standard data DVD in it) nothing happens.
Is it possible to set it up so that any disc which is inserted is automatically mounted on /media/cdrom, so that my network share which points to that path will always see the disk in the drive?
It also seems to me that it's impossible to mount the drive if there is no disk in it, since there isn't a volume to mount. Is it possible to get round this, so Ubuntu is 'aware' of the drive and will mount a disk whenever it is inserted (even if there wasn't one there on boot)?
Any help would be much appreciated. I'm running Ubuntu Server.