Re: Dead parallel port (/dev messup)



On Wed, 12 Jul 2006 20:31:07 +0200, kaczfan staggered into the Black Sun
and said:
Dances With Crows wrote:
kaczfan wrote:
I have ACCIDENTALY erased all the contents of /dev directory
This is yet another reason to use udev. Device nodes are dynamically
created when udev's running, so
Yeah, i'd probably have to add a cron task to do it automatically :>
It's definitely better solution, but I'm short on time and don't want
to play with kernel configuration now.

Eh? udevd runs in userspace, unlike devfs. udevd watches /sys , and
you need kernel support for sysfs, but if you're using 2.6, you've
almost certainly got sysfs available. No kernel config needed, and your
distro's package for udev should include a mostly sensible set of rules
in /etc/udev/ .

when I echo to /dev/parport0 or /dev/lp0, I get
bash: /dev/parport0: no such device
"modprobe lp". This module should be modprobed automagically
whenever a char device with major 6 is accessed in any way, but if
your modules.conf (or modprobe.conf) file is mangled, that may not be
I've followed your advice (the module wouldn't load automatically,
although modules.conf and modprobe.conf don't seem suspicious) and the
result is that now echoing to lp0 works fine, but parport0 still
results with 'no such device'

You need to have ppdev modprobed for the /dev/parport? devices to
function. That's "alias char-major-99 ppdev" in modules.conf. Ah well,
HTH,

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
.


Quantcast