Skip to contentSkip to conversation

Can't open pty's

2.5.67-mm4 J. Hidding 3 participants 3 messages Apr 19, 2003

lore
Share & tools
lore

J. Hidding

author
#0 lore raw

Hi,

Xterm (nor any other VT) won't run on my freshly compiled 2.5.67-mm4 kernel. It says:

--
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys
--

When I look in /dev all the ptys are there. Also dmesg gives no strange reading (not on this matter).

I attached my .config and dmesg (it does show earlier mentioned weird things about IRQ 12, and a little chatter about UDF-fs)

Thanks,

Johan Hidding

PS: I haven't got strace compiled yet, but when I tried:
--

# emerge -p strace/strace-4.4-r1

These are the packages that I would merge, in order:

Calculating dependencies emerge: create(): aux_get() error on log/strace-4.4-r1; aborting...
--
I don't know if this is a kernel error, or something Gentoo

#1 lore raw
Quoted 6 lines · J. Hidding

Xterm (nor any other VT) won't run on my freshly compiled 2.5.67-mm4 kernel. It says:
--
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys
--

Your problem is:
#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=64

Increase CONFIG_UNIX98_PTY_COUNT to 2048 or thereabouts.

-- wli

#2 lore raw
In reply to J. Hidding
Quoted 9 lines · J. Hidding

Hi,

Xterm (nor any other VT) won't run on my freshly compiled 2.5.67-mm4 kernel. It says:

--
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys

Apparently you now need to mount the devpts filesystem on /dev/pts.

Red Hat 8's /etc/fstab has

	none /dev/pts devpts gid=5,mode=620 0 0