When I try to start 'screen' or 'byobu', I get the following error message:

$ screen
No more PTYs.
Sorry, could not find a PTY.
[screen is terminating]

I seem to have enough though:

$ ls /dev/pts  
$ cat /proc/sys/kernel/pty/nr
0
$ cat /proc/sys/kernel/pty/max
4096

Some more info:

$ uname -a
Linux cube.mydedi.net 2.6.18-194.8.1.el5.028stab070.5 #1 SMP Fri Sep 17 19:10:36 MSD 2010 x86_64 x86_64 x86_64 GNU/Linux

If you need any more info please comment. This is on a low-end VPS, but it used to work just fine, until it stopped working. Everything else seems to be fine though.

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

Having zero ptys is unusual, as the very SSH connection you are using has a pty allocated.

Make sure you have devpts mounted:

$ grep /dev/pts /proc/mounts
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0

If it is not:

# mount devpts /dev/pts -t devpts -o mode=620
link|improve this answer
You were right. A simple "sudo mount devpts /dev/pts -t devpts" solved my problem. Not sure why is devpts not auto-mounted though... – Attila O. Jun 27 '11 at 8:56
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.