[gentoo-user] /dev full of pty* tty* - is it normal?

2010-01-26 Thread Jarry

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.



Re: [gentoo-user] /dev full of pty* tty* - is it normal?

2010-01-26 Thread Alex Schuster
Jarry writes:

 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...

Seems to be normal, I get the same output on two of my Gentoo machines.

Wonko



Re: [gentoo-user] /dev full of pty* tty* - is it normal?

2010-01-26 Thread Jarry

On 26. 1. 2010 18:57, Alex Schuster wrote:


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...


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.



Re: [gentoo-user] /dev full of pty* tty* - is it normal?

2010-01-26 Thread Dirk Heinrichs
Am Dienstag 26 Januar 2010 19:20:27 schrieb 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



Re: [gentoo-user] /dev full of pty* tty* - is it normal?

2010-01-26 Thread Dale

Alex Schuster wrote:

Jarry writes:

  

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...



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

:-)  :-) 



Re: [gentoo-user] /dev full of pty* tty* - is it normal?

2010-01-26 Thread Stefan Schulte
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

On Tue, Jan 26, 2010 at 06:57:33PM +0100, Alex Schuster wrote:
 Jarry writes:
 
  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...
 
 Seems to be normal, I get the same output on two of my Gentoo machines.
 
   Wonko
 


pgpCEg6oTcCJ1.pgp
Description: PGP signature