LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 07-30-2009, 08:04 AM   #1
qcinski
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Rep: Reputation: 0
"System has no more ptys"


Hello. I'm building LFS 6.3 and I have troubles in chapter 6.11. After command expect -c "spawn ls" I receive "The system has no more ptys. Ask admin to create more" error. I created some ptys/ttys using MAKEDEV, mounted /dev/pts, chmodded /dev/ptmx, /dev/pts but it's still not working. What should I do?

Last edited by qcinski; 07-30-2009 at 12:46 PM.
 
Old 07-31-2009, 02:19 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,953
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Haven't used LFS but in other OSes this is a kernel parameter.

Try running "sysctl -a |grep pty" - You ought to see something like:
kernel.pty.nr = 5
kernel.pty.max = 4096

According to this site:
http://www.cyberciti.biz/tips/howto-...y-session.html
You can set the pty.max by echoing a new value into /proc/sys/kernel/pty/max e.g.:
echo 9192 >/proc/sys/kernel/pty/max

Accoring to pty man page (type "man pty" to see it). The pty.nr is the number currently in use and the pty.max is the number allowed.

Also on checking with my CentOS 5 install I was able to change the value by doing the echo and also by adding line to /etc/sysctl.conf then running "sysctl -p /etc/sysctl.conf". The line added to sysctl.conf was like this:
kernel.pty.max = 9192

Note that you can NOT set kernel.pty.nr that way as it is dynamic view of what is in use. Also you may not be able to do this if your kernel is earlier than 2.6.3 based on the comments in the man page as it was formerly done by how many you had configured at compile of kernel.
 
Old 08-01-2009, 06:43 AM   #3
qcinski
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks, it helped
 
  


Reply

Tags
lfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"The system has no more ptys. Ask your system administrator to create more." czeslafff Linux From Scratch 10 07-16-2012 05:15 AM
screen error "no more PTYs" darcon3k Linux - Software 10 04-19-2011 04:30 PM
expect -c "spawn ls" The system has no more ptys status1 Linux From Scratch 12 03-29-2008 08:51 PM
"there are no more ptys" error!..pls help!! chakkaradeepcc Linux From Scratch 3 05-07-2005 12:48 PM
xterm not spawning "not enough ptys" sohmc Linux - General 4 09-23-2004 07:42 PM


All times are GMT -5. The time now is 07:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration