Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with ptys
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Schmolch
l33t
l33t


Joined: 16 Jun 2002
Posts: 746
Location: Germany

PostPosted: Thu Mar 27, 2003 6:16 pm    Post subject: problem with ptys Reply with quote

I have this default pty setting activated in my kernel, for 255 max ptys, but unfortunately i get only between 0 and 3.

When i start konsole i can open 2 more inside until i get the message "not enough ptys"

When i try to start a xterm i cant even open one.
"Reason: get_pty: not enough ptys"

I now nothing about this pty-stuff, is there something i can do or check?

My console-logins on F1-F6 look ok.
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Thu Mar 27, 2003 8:09 pm    Post subject: Reply with quote

Clearly you need some more /dev/pty's.
I suspect that creating a few more with 'mknod' would do the trick. Did you changed something lately?

regards
Thomas
Back to top
View user's profile Send private message
Schmolch
l33t
l33t


Joined: 16 Jun 2002
Posts: 746
Location: Germany

PostPosted: Thu Mar 27, 2003 8:33 pm    Post subject: Reply with quote

ahh /dev/pty thats interesting, thx.

Well if i changed something?
Not that i know of but i had some trouble with filesystem errors and there was some error with the dev-filesystem too but i had a backup of my whole / ... but who knows.

So i look into dev and there is lots of pty stuff in there.
i have a directory /dev/pty/ with 256 entries, from m0 to m255 and all same rights and stuff.
5472508 0 crw-rw-rw- 1 root root 2, 94 Jan 1 1970 m94

Well they are a little old, from 1.1.1970 maybe they have expired ?;)

Ok other than those i also have entries in /dev/ from ptya0 to ptyzf.. oh these are links to that in /dev/pty/.

4423964 0 lrwxrwxrwx 1 root root 8 Mar 26 18:58 ptyz6 -> pty/m166


There is another strange behaviour i didnt mention.
When i start gnome-terminal, and from inside it try to start another new gnome-terminal, i get the new window, but without content.
When i then try to close that window, X crashes (restarts).


Well, what could i try.. it happens on all DesktopEnvironments/WindowManagers and it happens since.. maybe 1 week.

Oh one more question:
The console-logins, those from F1 to F6, are these ptys considered as already assigned?
If so maybe i have the other 249 ptys on F13-F262?

................ probably not :?
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Fri Mar 28, 2003 9:41 am    Post subject: Reply with quote

Quote:

i have a directory /dev/pty/ with 256 entries, from m0 to m255 and all same rights and stuff.


Uhm, thats good. You can forget about the mknod stuff.

Quote:

Well, what could i try.. it happens on all DesktopEnvironments/WindowManagers and it happens since.. maybe 1 week.


Odd. Did you try to deactivate /dev/pts (as suggested) in kernel?

regards
Thomas
Back to top
View user's profile Send private message
Schmolch
l33t
l33t


Joined: 16 Jun 2002
Posts: 746
Location: Germany

PostPosted: Mon Mar 31, 2003 4:36 am    Post subject: Reply with quote

yes i tried it with activated and deactivated.
i also tried different kernel.

Damn.

The only X-Terminal that starts is konsole (from kde).
All other X-Terminals (xterm eterm gnome-terminal) refuse to even start ("not enough ptys")
With konsole i can run 3 logins inside, in tabs, no more.

God, isnt that odd ??

Im really curiouse about what solution the future will bring, if it will.

8O
Back to top
View user's profile Send private message
nepenthe
Guru
Guru


Joined: 14 Jul 2002
Posts: 317
Location: Sanford, ME

PostPosted: Sun Apr 20, 2003 12:28 pm    Post subject: Reply with quote

did you ever resolve this, I'm having same error.... :evil:
Back to top
View user's profile Send private message
Schmolch
l33t
l33t


Joined: 16 Jun 2002
Posts: 746
Location: Germany

PostPosted: Sun Apr 20, 2003 3:38 pm    Post subject: Reply with quote

Yes :-)

I have a second harddisk and im rsyncing my / every once in a while.
When doing this somehow a /dev/.devfsd gets created on the target-disk, and when i boot it there appears a error at bootup (which i didnt see because its not in the logs) where gentoo tries to delete this .devfsd but fails. This was the cause for the pty-trouble as well as for another problem i had.
Deleting the .devfsd fixed it.
Back to top
View user's profile Send private message
azote
Guru
Guru


Joined: 17 Sep 2002
Posts: 415

PostPosted: Sun Apr 20, 2003 7:46 pm    Post subject: Reply with quote

im having the same problem ..
i cant launch xterm

but i cant erase .devfsd

how do i erase that file ?

it says operation not permited..
_________________
contact me -> azote@mail.i2p

What do you want to emerge today?

if you think that a person is normal, it is because you do not know them well
Back to top
View user's profile Send private message
azote
Guru
Guru


Joined: 17 Sep 2002
Posts: 415

PostPosted: Sun Apr 20, 2003 8:01 pm    Post subject: Reply with quote

all this started wehn i updated to the new kernel 2.5.68

please help I need my terminals back !

thanks!
_________________
contact me -> azote@mail.i2p

What do you want to emerge today?

if you think that a person is normal, it is because you do not know them well
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Sun Apr 20, 2003 8:09 pm    Post subject: Reply with quote

azote wrote:
all this started wehn i updated to the new kernel 2.5.68

please help I need my terminals back !

thanks!

That's a known problem, look here.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
azote
Guru
Guru


Joined: 17 Sep 2002
Posts: 415

PostPosted: Sun Apr 20, 2003 10:00 pm    Post subject: Reply with quote

bsolar wrote:
azote wrote:
all this started wehn i updated to the new kernel 2.5.68

please help I need my terminals back !

thanks!

That's a known problem, look here.


thank you!!! that was the problem

I had to add
Code:
devpts            /dev/pts      devpts   defaults      0 0

to my fstab
_________________
contact me -> azote@mail.i2p

What do you want to emerge today?

if you think that a person is normal, it is because you do not know them well
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum