From owner-freebsd-questions@FreeBSD.ORG Thu Aug 31 09:06:19 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91E3A16A4DE for ; Thu, 31 Aug 2006 09:06:19 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7FD443D55 for ; Thu, 31 Aug 2006 09:06:17 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k7V96FEY007135; Thu, 31 Aug 2006 12:06:16 +0300 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org, babak badaei Date: Thu, 31 Aug 2006 12:05:04 +0300 User-Agent: KMail/1.9.1 References: <20060831062951.62895.qmail@web55208.mail.re4.yahoo.com> In-Reply-To: <20060831062951.62895.qmail@web55208.mail.re4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608311205.05468.nvass@teledomenet.gr> Cc: Subject: Re: Any suggestion regarding /DEV wipe out on freebsd 4.7? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 09:06:19 -0000 On Thursday 31 August 2006 09:29, babak badaei wrote: > Hello, > > A few days ago I was not able to log into my machine using SSH. I got this > following message "Server refused to allocate pty". I was, somewhat > fortunately, able to log using SCP. So SCP works. The file system looked > good for the most part; until I checked out "/DEV". Almost everything was > GONE! Including MAKEDEV. Not sure what to do. > > Possible clue: Before this happened, last time I was actually logged in via > SSH, I ran a dropdb command on one of my postgres databases and got an > error message saying I did not have permission to "/DEV/NULL". Not sure > what to do, I set permissions to allow write on "NULL". I have done > "dropdb" many times before and had never seen that message. > > If anyone has any clue as do how I may restore /DEV; or how this could have > happened. I would appreciate your input. I am running freeBSD 4.7 with 2GB > of memory on an Intel Xeon machine. Only thing left in /DEV is a file for > each harddrive partition. > > Thanks! > According to a 4.10-something box I have, the only plain files in /dev/ are MAKEDEV and MAKEDEV.local. So, get a fresh copy from cvs and then create the devices you need( man MAKEDEV if you don't know how to do this). cvs -d anoncvs@anoncvs.freebsd.org:/home/ncvs checkout \ -r RELENG_4_7_0_RELEASE src/etc/MAKEDEV src/etc/MAKEDEV.local HTH, nikos