Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/pts support mandatory for kernel 2.6?
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
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Mon Oct 06, 2003 1:28 pm    Post subject: /dev/pts support mandatory for kernel 2.6? Reply with quote

Hi, I have the weirdest problem. Whenever I try to startx I get an error message saying: could not load xyz extension. Reason: not enough PTYs. (The beginning of the message sometimes varies depending on what I try, but the last part about 'not enough PTY's' never does).

So after some digging on Google I came up with this bug report from the Linux 2.5x kernel archives.

Quote:
Linux Kernel: Re: Not enough ptys in 2.5.69-mm2

From: Kevin P. Fleming (kpfleming_at_cox.net)
Date: May 08 2003

* Next message: Ben Collins: "Re: ioctl cleanups: enable sg_io and serial stuff to be shared"
* Previous message: Disconnect: "Re: Dell Inspiron 8200, 2.5.69, ACPI problems"
* In reply to: Greg Boyce: "Not enough ptys in 2.5.69-mm2"
* Next in thread: Greg Boyce: "Re: Not enough ptys in 2.5.69-mm2"
* Reply: Greg Boyce: "Re: Not enough ptys in 2.5.69-mm2"
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]

Greg Boyce wrote:

> gboyce_at_cthulhu gboyce $ xterm
> xterm: Error 32, errno 2: No such file or directory
> Reason: get_pty: not enough ptys
>

Have you mounted devpts on /dev/pts? If not, that's now mandatory after
some devfs changes that went in during 2.5.68/2.5.69 timefreame.


Now still being somewhat new to all this, I opted to look at /dev/pts support in my kernel and sure enough I haven't selected it. But the reason i haven't selected it is because the Gentoo install guide explicitly states that this kind of support isn't required by Gentoo, and indeed that it should be removed. So I was wondering, is this support compulory in the 2.6x series kernels or not and if so, is this conttradiction likely to cause any problems with a standard gentoo install?

One other side effect of this problem (although I'm not entirely certain if it is related or not) is that I cannot open a terminal as anyone other than root. If I create a user and add them to the console group (just to be certain) they cannot open a console, and whenever they try, they are simply confronted by an error saying: 'Could not connect to a suitable terminal device!'

Does anyone have a clue what this means?

Also if I do now have to add /dev/pty support, should I edit my FSTAB file, and if so what exactly should I add to ensure my /dev/pty file system is correctly mounted at boot?

Your input is extremely appreciate. Hopefully it will help make these very odd and annoying bugs go away.

Q
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Mon Oct 06, 2003 2:51 pm    Post subject: Reply with quote

This has cropped up a LOT before.

Short answer: yes, you need to enable and mount it, you are seeing what happens if you don't.
The Gentoo install guide refers to the 2.4 series of the kernel, for which it is correct.

Because it was redundant, the pty support has been removed from devfs somewhere during 2.5.5X.

You only need to enable it in the kernel, recent versions of the baselayout package should take care of automounting it during boot even without a fstab entry.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Mon Oct 06, 2003 4:10 pm    Post subject: Reply with quote

Erm... thanks dude... but what happend to the other guy's message...? Maybe I'm on crack... But I'm sure some guy said something very similar before you...

Oh well your response was nice and clear anyway.

Thanks very much. :)

Q
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Mon Oct 06, 2003 4:32 pm    Post subject: Reply with quote

Yipee, users can now open a terminal... My faith is renewed... Maybe gentoo isn't so bad after all...

Q
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Mon Oct 06, 2003 9:32 pm    Post subject: Reply with quote

glad to help.
The other guys message was just a glitch in the matrix.
That happens when they change98§$%")§$ NO CARRIER.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Tue Oct 07, 2003 7:13 am    Post subject: Reply with quote

Lol, the 'other guys response' was because I had a double post gfoing on... Man I hope they fix the forum soon, things suck right now. At peak times you often have to wait an hour or more until things quieten down before you know if you have posted or not.

Well anyway, at least that's solved... :)

Q
Back to top
View user's profile Send private message
second_exodous
Guru
Guru


Joined: 09 May 2003
Posts: 479
Location: Salt Lake City, UT USA

PostPosted: Wed Dec 17, 2003 3:40 pm    Post subject: Reply with quote

I'm getting the same error, not enough ptys, but I can't find where all this pty stuff is in the 2.6 kernel. I'm useing the latest, 2.6 test 11 r2. Where is all this stuff, can't find it.

Thanx,
Stan
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Thu Dec 18, 2003 2:13 am    Post subject: Reply with quote

In linux-2.6.0-test11 it is here. Probably same place on yours:

Code:
# File systems
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
# CONFIG_DEVFS_FS is not set
CONFIG_DEVPTS_FS=y  <-------here


Then just add:
Code:

none /dev/pts devpts defaults 0 0

to /etc/fstab
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
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