Click to See Complete Forum and Search --> : /dev/lp0 does not exist


Gaccm
09-24-2002, 11:00 PM
I have a printer that atteches at /dev/lp0 and a while ago it was working fine. I had set it up using CUPS and the KDE wizard. The problem now is that KDE doesn't see any device on /dev/lp0. So I can't print at all. I have the modules parport.o and parport_pc.o insmoded did I forget something else needed?

askrieger
09-25-2002, 01:07 AM
It might still be there. From a console, su to root. pick a small ascii test file. Type cat ~/small_test_file >/dev/lp0. The printer should print the file.

Gaccm
09-25-2002, 01:32 AM
nope:
# cat delme > /dev/lp0
bash: /dev/lp0: No such device
# ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 Apr 14 2001 /dev/lp0

askrieger
09-25-2002, 01:36 AM
I assume that the printer is turned is plugged in, turned on, and all that good stuff.

mdwatts
09-25-2002, 06:03 AM
Could be a permission problem.

Try as root

chmod 660 /dev/lp0

askrieger
09-25-2002, 02:05 PM
If that were the case, he would have gotten a "permission denied" instead of a "No such device".

askrieger
09-25-2002, 02:22 PM
Okay, the printer is probably turned on. I tried the su, cat trick with the printer off and it just never came back from the cat rather than telling me that it didn't exist. I'm not about to start unplugging cables to see whether that gives me a "no such device", but you might try checking your connections.

I suspect, though that an unplugged cable, would just give you the same catatonic response I got, because the computer is still just waiting for a handshake. in your case the computer seems sure that you don't have a printer.

Is your printer still listed in the places it should be, like printcap? Does it still have a /var/spool/ directory?

bwkaz
09-25-2002, 06:17 PM
Does modprobe lp (as root) help?

When I load up support for /dev/printers/0 (which is the destination of my /dev/lp0 symlink; I use devfs), it loads three kernel modules -- parport, lp, and parport_pc. If you used insmod instead of modprobe on parport_pc, then it's possible that it didn't load up lp, or it might be that it thought it didn't need to. Try loading it manually.

Gaccm
09-26-2002, 04:13 PM
thx, i had forgetten to build lp as a module, i knew i had screwed something up at the kernel level.