🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #388

Re: SCO-printer device

#388
From: Jonathan Bayer
Date: Fri, 12 Apr 1991 15:21
60 lines
2123 bytes
iheitla@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@ispi.COM		Roselle Park, NJ   07204    
Technical Details
Message-ID: <4800@gumby.Altos.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!zorch!vsi1!altos!gumby!clp
References: <4784@gumby.Altos.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!zorch!vsi1!altos!gumby!clp
From: jbayer@ispi.COM (Jonathan Bayer)
Newsgroups: comp.unix
Subject: Re: SCO-printer device
Keywords: printer SCO
Message-ID: <4800@gumby.Altos.COM>
Date: 12 Apr 91 15:21:35 GMT
References: <4784@gumby.Altos.COM>
Sender: clp@gumby.Altos.COM
Organization: Intelligent Software Products, Inc.
Lines: 60
Approved: clp@altos.com