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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-22-2006, 04:40 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2006
Posts: 3
Rep:
|
"The system has no more ptys. Ask your system administrator to create more."
Hi,
everything was OK, but now when I'm in chapter 6.13.1, after
Code:
expect -c "spawn ls"
I get this message
Code:
The system has no more ptys. Ask your system administrator to create more.
while executing
"spawn ls"
However when I run this command as a lfs without chrooting everything is OK...
Now I really don't know what to do next... I found some wiki pages with solution of this problem, but it's all dead links...
Any ideas?? 
|
|
|
|
01-23-2006, 06:24 AM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
try this and see if it helps.......
Code:
chmod 777 /dev/ptmx
|
|
|
|
01-23-2006, 07:55 AM
|
#3
|
|
LQ Newbie
Registered: Jan 2006
Posts: 3
Original Poster
Rep:
|
I tried to chmod /dev/ptmx... After that i get the same message...
I read in one of previous releases of LFS book about compilling MAKEDEV and I've even compiled it and made ptys, but it didn't help...
|
|
|
|
02-08-2007, 07:47 AM
|
#4
|
|
LQ Newbie
Registered: Feb 2007
Posts: 4
Rep:
|
Quote:
|
Originally Posted by 320mb
try this and see if it helps.......
Code:
chmod 777 /dev/ptmx
|
I have the same problem.
Will that code work on LFS 6.2?
|
|
|
|
02-08-2007, 08:02 AM
|
#5
|
|
Member
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105
Rep:
|
Sometimes it helps reading the book ...
Here the link found page 49 : http://www.linuxfromscratch.org//lfs/faq.html#no-ptys
|
|
|
0 members found this post helpful.
|
02-10-2010, 11:34 AM
|
#6
|
|
Member
Registered: Mar 2008
Distribution: slackware
Posts: 175
Rep:
|
sometimes it helps to not be a smart ass about it either.
|
|
|
0 members found this post helpful.
|
02-10-2010, 06:12 PM
|
#7
|
|
Senior Member
Registered: Jan 2010
Posts: 1,604
|
Quote:
Originally Posted by czeslafff
Now I really don't know what to do next... I found some wiki pages with solution of this problem, but it's all dead links...
Any ideas?? 
|
Hi,
please also post which version of the book you are using and the host system that you are using to build your LFS.
It is not uncommon that an LFS-build because the host system does not meet the requirements.
That is why I recommend to use the LFS liveCD at least for the first build.
When chrooted, what is the output of
If the output is something like
and nothing more you probably just forgot to mount the /dev directory at the beginning of chapter 6 or you. You have to perform those mounts everytime you chroot into your build-partition. I would start bug tracing at this point before following the previously linked FAQ and recompiling the kernel.
|
|
|
0 members found this post helpful.
|
03-05-2010, 02:22 PM
|
#8
|
|
Member
Registered: Feb 2010
Location: London, UK
Distribution: Slackware -current; CentOS
Posts: 364
Rep:
|
I had this problem, went back through the mount --bind /dev setup process, chrooted again, and it was solved.
You've probly tried that but thought i'd mention it anyway. Sometimes its the simplest thing..
|
|
|
|
04-24-2012, 05:35 AM
|
#9
|
|
LQ Newbie
Registered: Apr 2012
Posts: 1
Rep: 
|
mount before chroot will solve the problem
As indicated in LFS6.6
Use the following mount commands:
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
then chroot, it'll help.
|
|
|
|
04-24-2012, 06:07 AM
|
#10
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
@xscrat:
First of all: Welcome to LQ!
This thread was started 6 years ago and the correct answer was given in post #5. Besides the fact that your answer isn't correct (this is a host kernel issue, not a mount issue), it is also not done to resurrect old threads.
|
|
|
|
07-16-2012, 05:15 AM
|
#11
|
|
LQ Newbie
Registered: Jul 2012
Posts: 1
Rep: 
|
@xscrat
Thanks for your post, I did what you said and It worked great.
there was no need to do what's specified in post 5.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|