Re: Dead parallel port (/dev messup)
- From: Dances With Crows <danSPANceswitTRAPhcrows@xxxxxxxxx>
- Date: Wed, 12 Jul 2006 13:08:00 -0500
On Wed, 12 Jul 2006 19:10:32 +0200, kaczfan staggered into the Black Sun
and said:
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 it's harder to accidentally rm -f /dev/*
..
I have eventually copied the whole structure from some bootable cd and
regenerated missing nodes, BUT I have a problem with the parallel port.
when I echo to /dev/parport0 or /dev/lp0, I get
bash: /dev/parport0: no such device
Do you have parport, parport_pc , and lp loaded? "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 happening. The module
required for "raw parport access" isn't lp, but something else.
Modprobe that one too.
c 6 0 for lp0 (and, as I have just found out, /dev/par0)
c 99 0 for parport0
Is it significant that there are (at least) two files linked to the
same node?
Nah. If you have /dev/blah (b 3 1) and /dev/foo (b 3 1) , both device
nodes refer to the same physical device (usually known as /dev/hda1).
This is either a Feature or confusing, depending on your point of view.
It didn't require any explicit modprobes before, was just working ok;
I have tried modprobing parport and parport_pc (without parameters),
but it doesn't seem to change anything.
Check to see if lp is loaded. 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
.
- Follow-Ups:
- Re: Dead parallel port (/dev messup)
- From: kaczfan
- Re: Dead parallel port (/dev messup)
- References:
- Dead parallel port (/dev messup)
- From: kaczfan
- Dead parallel port (/dev messup)
- Prev by Date: Dead parallel port (/dev messup)
- Next by Date: Re: Dead parallel port (/dev messup)
- Previous by thread: Dead parallel port (/dev messup)
- Next by thread: Re: Dead parallel port (/dev messup)
- Index(es):
Relevant Pages
|