Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2006 12:14:40 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-arch@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, babak badaei <badaei@yahoo.com>
Subject:   Re: What could cause /DEV to clear out?
Message-ID:  <200608291014.k7TAEerO008049@lurza.secnetix.de>
In-Reply-To: <20060829062232.4446.qmail@web55202.mail.re4.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
babak badaei <badaei@yahoo.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608291014.k7TAEerO008049>