Re: Dead parallel port (/dev messup)



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
.



Relevant Pages

  • Re: Dead parallel port (/dev messup)
    ... This is yet another reason to use udev. ... required for "raw parport access" isn't lp, ... Modprobe that one too. ... This is either a Feature or confusing, depending on your point of view. ...
    (comp.os.linux.hardware)
  • Re: Which Linux distribution would work with my system
    ... though parport peripherals are too slow. ... modprobe is better than insmod in most cases because it pulls in all the ... "old" drives use ppa, "new" drives use imm. ...
    (comp.os.linux.misc)
  • pp scanner
    ... pre-install pt_drv modprobe -k parport ... Apr 20 14:10:40 localhost modprobe: modprobe: Can't locate module ... Apr 20 14:11:55 localhost kernel: ppdev: user-space parallel port ...
    (Fedora)
  • RE: parport and irq question
    ... # modprobe parport_pc ... parport: PnPBIOS parport detected. ... Why don't parport1 and p2 get an IRQ and DMA (and therefore ECP/EPP and all the ... 0xc400 belongs to parport1 (see automatic detection above). ...
    (Linux-Kernel)
  • [patch 08/10] parport: ieee1284 fixes and cleanups
    ... Make drivers that use directly PC parport HW depend on PARPORT_PC ... your computer's parallel port. ... config PARIDE_PARPORT ...
    (Linux-Kernel)