*BSD News Article 28725


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!wupost!gumby!yale!yale.edu!nigel.msen.com!zib-berlin.de!irz401!uriah!not-for-mail
From: j@uriah.sax.de (J Wunsch)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Trashed my tty00/01 files. Help!
Date: 25 Mar 1994 19:27:41 +0100
Organization: Private U**X site; member IN e.V.
Lines: 27
Message-ID: <2mvaetINN1h9@bonnie.sax.de>
References: <081304Z11031994@anon.penet.fi>
NNTP-Posting-Host: bonnie.sax.de

an68849@anon.penet.fi (Luciferl) writes:


>  Sorry for the anon server - my news site won't distribute non-local.

>  I've managed to trash my tty00 and tty01 files and for some reason can't get
>the makedev to work. I'd just extract them from the bin distribution, but
>I obviously only need these two tiny little file. Can someone tell me how to
>get just these two out of the 40 part gz files or (better) where I can grab
>them in the net?

You can mknod them yourself without the distribution files. You forgot
to mention which system you're running. For FreeBSD, the default major
numbers are 8 for the com driver and 28 for the newer sio driver.

mknod /dev/tty00 c ${major} 0
mknod /dev/tty01 c ${major} 1

chown root.tty /dev/tty0*
chmod 600 /dev/tty0*

This should do it.
-- 
cheers, J"org                             work:    joerg_wunsch@tcd-dresden.de
                                          private:   joerg_wunsch@uriah.sax.de
Steinbach's Guideline for Systems Programming:
        Never test for an error condition you don't know how to handle.