From owner-freebsd-questions@FreeBSD.ORG Tue Aug 29 20:37:06 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 F406916A4DA for ; Tue, 29 Aug 2006 20:37:05 +0000 (UTC) (envelope-from badaei@yahoo.com) Received: from web55205.mail.re4.yahoo.com (web55205.mail.re4.yahoo.com [206.190.58.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 8A2BF43D4C for ; Tue, 29 Aug 2006 20:37:05 +0000 (GMT) (envelope-from badaei@yahoo.com) Received: (qmail 62001 invoked by uid 60001); 29 Aug 2006 20:37:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=aLj8NtByO1gXxDXQ9doxa+z3poYMjax6GLkSB7umpNEvf0wMQbDJDbm/Pu7voD3k/qhWSG+aBjbe+SzP+iY/Xtq51EsL1C8jf4JHPiDSpIaHbvpMhjsqkGi18c93bD/sN4LsCVYK2OJajchhHKfgm4CT0HaqwB5OHrRp/TLx6CQ= ; Message-ID: <20060829203705.61999.qmail@web55205.mail.re4.yahoo.com> Received: from [72.134.0.217] by web55205.mail.re4.yahoo.com via HTTP; Tue, 29 Aug 2006 13:37:05 PDT Date: Tue, 29 Aug 2006 13:37:05 -0700 (PDT) From: babak badaei To: freebsd-questions@FreeBSD.ORG In-Reply-To: <200608291014.k7TAEerO008049@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Fri, 01 Sep 2006 13:37:56 +0000 Cc: Subject: Re: What could cause /DEV to clear out? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babak badaei List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 20:37:06 -0000 Hello, Thanks for the reply! Here is the information requested below: UNAME -A: FreeBSD 4.7-RC FreeBSD 4.7-RC #0: Sun Apr 13 21:43:57 PDT 2003 LS -al: drwxr-xr-x 2 root wheel 18432 Aug 28 03:01 . drwxr-xr-x 22 root wheel 1024 Apr 7 16:32 .. crw-r----- 1 root operator 13, 0x00030002 Sep 17 2002 da0s2c crw-r----- 2 root operator 13, 0x00030003 Sep 17 2002 da0s2d lrwxr-xr-x 1 root wheel 12 Sep 17 2002 log -> /var/run/log lrwxr-xr-x 1 root wheel 13 Sep 17 2002 mouse -> /dev/sysmouse -rw-rw-r-- 1 root wheel 115 Aug 29 03:01 null crw-r----- 1 root operator 13, 0x00030001 Sep 17 2002 rda0s2b crw-r----- 2 root operator 13, 0x00030003 Sep 17 2002 rda0s2d -rw-r--r-- 1 root wheel 0 Aug 29 03:01 stderr MOUNT | GREP dev: /dev/da0s1a on / (ufs, local) /dev/da0s2h on /home (ufs, local, soft-updates) /dev/da0s2e on /usr (ufs, local, soft-updates) /dev/da0s2f on /var (ufs, local, soft-updates) /dev/da0s2g on /var/tmp (ufs, local, soft-updates) Any ideas? Can I somehow restore the missing files? What could cause this? I am certain I did not do it; no one else has root. Thank you. ----- Original Message ---- From: Oliver Fromme To: freebsd-arch@FreeBSD.ORG; freebsd-questions@FreeBSD.ORG; babak badaei Sent: Tuesday, August 29, 2006 3:14:40 AM Subject: Re: What could cause /DEV to clear out? babak badaei wrote: > Today 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. You can use "ssh -T" which disables allocation of a pty (pseudo tty). You probably won't be able to use full- screen programs (such as vi), and maybe your shell's editing functions won't work (depending on the shell), but at least you will get a shell prompt. See the ssh(1) manual page for details. > 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. What version of FreeBSD are you running? FreeBSD 5 and 6 use DEVFS, so MAKEDEV isn't required anymore (it wouldn't work anyway). If you're still running FreeBSD 4, then there should be /dev/MAKEDEV. > 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. Please give the output from these commands: uname -a ls -al /dev mount | grep dev > I hope this is in the right forum. This is the closest thing to right > place for this question in my mind but if this is in the wrong place > please direct me to the right forum. Why do you think -arch would be the most appropriate place? This should rather go to -questions (I've redirected it). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence" -- Jacek Generowicz _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"