[ILUG] Devfs ?
Colm Buckley
colm at tuatha.org
Fri Jan 18 11:37:33 GMT 2002
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.
More information about the ILUG
mailing list