Discussion:
[gentoo-user] /dev full of pty* & tty* - is it normal?
(too old to reply)
Jarry
2010-01-26 18:10:02 UTC
Permalink
Hi,
I just noticed I have *a lot of* tty/pty files in dev:

obelix ~ # ls -l /dev/pty* | wc -l
256
obelix ~ # ls -l /dev/tty* | wc -l
325

They have names from /dev/ptya0 till /dev/ptyzf, then
pty0-pty63, and ttya0-ttyzf. Is this normal? I thought
udev creates device-files as they are needed, so I'm
surprised to see so much of them...

Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
Alex Schuster
2010-01-26 18:10:02 UTC
Permalink
Post by Jarry
obelix ~ # ls -l /dev/pty* | wc -l
256
obelix ~ # ls -l /dev/tty* | wc -l
325
They have names from /dev/ptya0 till /dev/ptyzf, then
pty0-pty63, and ttya0-ttyzf. Is this normal? I thought
udev creates device-files as they are needed, so I'm
surprised to see so much of them...
Seems to be normal, I get the same output on two of my Gentoo machines.

Wonko
Jarry
2010-01-26 20:10:02 UTC
Permalink
Post by Alex Schuster
Post by Jarry
obelix ~ # ls -l /dev/pty* | wc -l
256
obelix ~ # ls -l /dev/tty* | wc -l
325
They have names from /dev/ptya0 till /dev/ptyzf, then
pty0-pty63, and ttya0-ttyzf. Is this normal? I thought
udev creates device-files as they are needed, so I'm
surprised to see so much of them...
Seems to be normal, I get the same output on two of my Gentoo machines.
Wonko
Thanks for info. FYI I just checked some debian-machine and
it has only 63 tty's and none pty. I always thought it had
something to do with number of terminals started by inittab.
Anyway, it looks so that udev is not dynamic for all kind
of dev-files...

Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
Dirk Heinrichs
2010-01-26 20:10:02 UTC
Permalink
Post by Jarry
Anyway, it looks so that udev is not dynamic for all kind
of dev-files...
Well, it is. Lookup /lib/udev/rules.d/50-udev-default.rules, you'll find the
rules for creating [pt]ty nodes there. Debian may have different rules in
place.

Bye...

Dirk
Stefan Schulte
2010-01-26 20:20:01 UTC
Permalink
Looks different on my machine:

# ls -l /dev/pty* | wc -l
zsh: no matches found: /dev/pty*

0
# ls -l /dev/tty* | wc -l
65

It may have something to do with your kernel settings.
Device Drivers->Character devices->Unix98 PTY support is enabled
Device Drivers->Character devices->Legacy (BSD) PTY support is disabled
here

-Stefan
Post by Alex Schuster
Post by Jarry
obelix ~ # ls -l /dev/pty* | wc -l
256
obelix ~ # ls -l /dev/tty* | wc -l
325
They have names from /dev/ptya0 till /dev/ptyzf, then
pty0-pty63, and ttya0-ttyzf. Is this normal? I thought
udev creates device-files as they are needed, so I'm
surprised to see so much of them...
Seems to be normal, I get the same output on two of my Gentoo machines.
Wonko
Dale
2010-01-26 20:20:02 UTC
Permalink
Post by Alex Schuster
Post by Jarry
obelix ~ # ls -l /dev/pty* | wc -l
256
obelix ~ # ls -l /dev/tty* | wc -l
325
They have names from /dev/ptya0 till /dev/ptyzf, then
pty0-pty63, and ttya0-ttyzf. Is this normal? I thought
udev creates device-files as they are needed, so I'm
surprised to see so much of them...
Seems to be normal, I get the same output on two of my Gentoo machines.
Wonko
Same thing here. It's a old install so I expected some old things
before udev took over. I guess udev cleaned it up some.

Seems normal tho.

Dale

:-) :-)

Loading...