Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2000 16:18:45 -0400 (EDT)
From:      Greg Skouby <gskouby@ns0.sitesnow.com>
To:        freebsd-questions@freebsd.org
Subject:   /dev missing/corrupt 
Message-ID:  <Pine.BSF.4.10.10005251613010.78430-100000@ns0.sitesnow.com>

next in thread | raw e-mail | index | archive | help
This is what I am running:
# uname -a
FreeBSD  3.3-RELEASE FreeBSD 3.3-RELEASE #0: Thu Sep 16  13:40:35 GMT 1999     jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC i386

I have no idea what caused this problem. I had just finished doing some
heavy duty compiling so that is the only thing that was going on with this
machine that I could think of. I was trying to su to root and it was just
saying "sorry" with out letting me type in my password. I looked in the
logs and found this error:
May 25 13:53:37 sshd[36102]: error: open /dev/tty failed - could
not set controlling tty: No such file or directory


I went into my /dev directory and found that this is the only thing that
showed up when I did an ls:
# ls
ude/ctype.h?metaphone.c?/usr/include/ctype.h?metaphone.c?/usr/include/ctype.h?metaphone.c?/usr/include/ctype. 


I did some more monkeying around with MAKEDEV and mknod to finally reach
this point:
# ls -la
ls: ude/ctype.h: No such file or directory
total 34
-rwxr-xr-x  1 root  wheel     33316 May 25 14:46 MAKEDEV
crw-rw-rw-  1 root  wheel    6,   0 May 25 16:13 ptyp0
crw-rw-rw-  1 root  wheel    6,   1 May 25 16:13 ptyp1
crw-rw-rw-  1 root  wheel    6,   2 May 25 16:13 ptyp2
crw-rw-rw-  1 root  wheel    6,   3 May 25 16:13 ptyp3
crw-rw-rw-  1 root  wheel    6,   4 May 25 16:13 ptyp4
crw-rw-rw-  1 root  wheel    6,   5 May 25 16:13 ptyp5
crw-rw-rw-  1 root  wheel    6,   6 May 25 16:13 ptyp6
crw-rw-rw-  1 root  wheel    6,   7 May 25 16:13 ptyp7
crw-rw-rw-  1 root  wheel    6,   8 May 25 16:13 ptyp8
crw-rw-rw-  1 root  wheel    6,   9 May 25 16:13 ptyp9
crw-rw-rw-  1 root  wheel    6,  10 May 25 16:13 ptypa
crw-rw-rw-  1 root  wheel    6,  11 May 25 16:13 ptypb
-rw-r--r--  1 root  wheel        10 May 25 16:12 tty
crw-rw-rw-  1 root  wheel    5,   0 May 25 16:13 ttyp0
crw-rw-rw-  1 root  wheel    5,   1 May 25 16:13 ttyp1
crw-rw-rw-  1 root  wheel    5,   2 May 25 16:13 ttyp2
crw-rw-rw-  1 root  wheel    5,   3 May 25 16:13 ttyp3
crw-rw-rw-  1 root  wheel    5,   4 May 25 16:13 ttyp4
crw-rw-rw-  1 root  wheel    5,   5 May 25 16:13 ttyp5
crw-rw-rw-  1 root  wheel    5,   6 May 25 16:13 ttyp6
crw-rw-rw-  1 root  wheel    5,   7 May 25 16:13 ttyp7
crw-rw-rw-  1 root  wheel    5,   8 May 25 16:13 ttyp8
crw-rw-rw-  1 root  wheel    5,   9 May 25 16:13 ttyp9
crw-rw-rw-  1 root  wheel    5,  10 May 25 16:13 ttypa
crw-rw-rw-  1 root  wheel    5,  11 May 25 16:13 ttypb



However, the devices for the hard drive and such are in them because this
is what happens when I list them by name:

# ls -la /dev/wd0s1a
brw-r-----  1 root  operator    0, 0x00020000 Oct 25  1999 /dev/wd0s1a
# ls -la /dev/wd0s1b
brw-r-----  1 root  operator    0, 0x00020001 Oct 25  1999 /dev/wd0s1b


Any hints or ideas of how to fix or what caused it? Thanks..bye




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10005251613010.78430-100000>