On Fri 18 Jan 2002 11:31, Breathnach, Proinnsias (Dublin) wrote:
> lrw-r--r-- date date size cdrom -> ../cdroms/cdrom0
Well, that's manky - it should be a link to "cdroms/cdrom0", not
"../cdroms/cdrom0".
> You also can't rm -f the damned thing to recreate it properly, which
> is a right PITA
This is what I don't understand. You should be able to... however,
it's almost definitely being recreated by devfsd, so you should poke
around in /etc/devfs to find the broken configuration file and fix
it. And file a bugreport.
On my (Debian) box, /etc/devfs/devfsd.conf contains the line:
REGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL symlink $devname cdrom
... which is what creates the /dev/cdrom symlink. (It means "when the
kernel or a module registers a CD-ROM device, create a link to the
device name from 'cdrom' in /dev"). You should have something
similar, or if Mandrake ships with an older devfsd, it might be in the
"symlinks" file or the "symlinks.d" directory under /etc/devfs.
I suggest having a good read of the devfsd documentation; it's
actually pretty elegant.
Colm
--
Colm Buckley : Systems Architect @ NewWorld Commerce
Business: +353 1 4334334 / colm at nwcgroup.com / http://www.nwcgroup.com/
Personal: +353 87 2469146 / colm at tuatha.org / http://www.tuatha.org/~colm/
There's something deeply unconvincing about an aftershave called Kevin.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!