SCO-printer device

Jonathan Bayer jbayer at ispi.COM
Sat Apr 13 01:21:35 AEST 1991


iheitla at cs.vu.nl (Ilja Heitlager) writes:

>First a tested the port as described in (>>>>the very clear<<<< hmmmm) sysadmin
>manual.
>I found out that the standerd printer port was attached to /dev/lp1, and so
>while assuming that /dev/lp was a link to /dev/lp0, I linked /dev/lp to /dev/lp1Then /dev/lp /dev/lp0 /dev/lp1 all three had 3 links.  So (>>> very stupid, this is not very joung readers <<<) I did "rm /dev/lp /dev/lp0" and lost my printer
>device.
>So how can I get it back????

>hwconfig gives:
>	name=parallel base=0x3BC offset=0x2 vec=07 dma=- unit=1 
>	>>> Missing base/finish address in hex format 0x????

>while typing "date > /dev/lp1" answers:
>	/dev/lp1: cannot create.

>again what should I do to get it back?


Type the following command:

	l /dev/lp*

you should get a line (or more than one line) looking something like:

c-w--w--w-   2 bin      bin        6,  0 Sep 21  1990 /dev/lp

The important number is: --->---> ^^^
This is the Major Device Number.

If you don't have any printer devices left then type:

	grep lp0 /etc/perms/*

and you should get the following line:

/etc/perms/inst:RTS	c222	bin/bin		1	./dev/lp0	6/0

The Major Device Number is:	--------->--------->-------->---->---> ^^

	
To recreate your printer ports type the following, replacing the question 
mark with the Major Device Number from above. 

mknod  /dev/lp 	c  ?  0
mknod  /dev/lp1 c  ?  1
mknod  /dev/lp2 c  ?  2

ln /dev/lp /dev/lp0



Good Luck.


JB
-- 
Jonathan Bayer		Intelligent Software Products, Inc.
(201) 245-5922		500 Oakwood Ave.
jbayer at ispi.COM		Roselle Park, NJ   07204    



More information about the Comp.unix mailing list