From: The Wyvern (wyvern@hal.gnu.ai.mit.edu)
Date: 10/25/92


From: wyvern@hal.gnu.ai.mit.edu (The Wyvern)
Subject: /dev discrepancies and MAKEDEV
Date: Mon, 26 Oct 1992 00:36:54 GMT

I originally installed linux from the 0.96c MCC-Interim package, and
since then I've upgraded the kernel quite a few times and am now
running kernel version 0.98 patchlevel 1. In the past, on this newsgroup,
I've seen posts of the correct major and minor device numbers for files
in the /dev directory and I noticed with passing interest that my device
numbers didn't always match the ones posted. However, everything seems to
don't seem to have on my system, such as /dev/zero (What is this device,
anyway?) Is there a MAKEDEV script around to create the proper devices?
If not, can someone tell me whether I should bother with the devices at
all, and if so, what the proper numbers and/or changes I should make for
the devices are?

My /dev directory contains the following:

lrwxrwxrwx 1 root root 9 Oct 24 23:04 X0 -> /dev/null

crw--w--w- 2 user1 users 4, 0 Oct 24 17:31 console

brw------- 1 root operator 2, 0 Jun 14 15:34 fd0
[Lots of exact floppy types which should be correct...]
brw------- 1 root operator 2, 1 Jun 14 15:34 fd1
[Some more exact fd1 floppy types...]

brw------- 1 root operator 3, 0 Mar 19 1992 hda
brw------- 1 root operator 3, 1 Mar 19 1992 hda1
brw------- 1 root operator 3, 2 Mar 19 1992 hda2
brw-r----- 1 bin mem 3, 3 Mar 19 1992 hda3
brw------- 1 root operator 3, 4 Mar 19 1992 hda4
[...]

crw-r----- 1 root mem 1, 2 Mar 19 1992 kmem

srw-rw-rw- 1 root root 0 Oct 23 23:18 log

c-w--w---- 1 bin lp 6, 0 Apr 14 1992 lp0
[...]
c-w--w---- 1 bin lp 6, 2 Apr 15 1992 lp3

cr--r----- 1 bin mem 1, 1 Mar 19 1992 mem
crw-rw-rw- 1 root root 1, 3 Mar 19 1992 null
crw-rw-rw- 1 root root 1, 4 Mar 19 1992 port

crw-rw-rw- 1 root root 4, 128 Oct 24 17:34 ptyp0
[...]
crw-rw-rw- 1 root root 4, 143 Mar 19 1992 ptypf

brw-rw-rw- 1 root root 1, 1 Mar 19 1992 ram
[SCSI devices...]
lrwxrwxrwx 1 root mem 9 Aug 18 11:26 swap -> /dev/hda3

crw-rw-rw- 1 root root 5, 0 Oct 23 12:39 tty
crw--w--w- 2 user1 users 4, 0 Oct 24 17:31 tty0
crw--w---- 1 root tty 4, 1 Oct 24 17:26 tty1
[...]
crw--w---- 1 root tty 4, 8 Aug 16 11:00 tty8
crw--w--w- 1 user1 users 4, 192 Oct 24 17:34 ttyp0
[...]
crw-rw-rw- 1 root tty 4, 207 Aug 17 05:21 ttypf
crw-rw-rw- 1 root root 4, 64 Oct 25 16:16 ttys0
[...]
crw-rw-rw- 1 root root 4, 67 Mar 19 1992 ttys3

Help is appreciated.