"The system has no more ptys. Ask your system administrator to create more."
Linux From ScratchThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"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??
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...
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
Code:
ls /dev/
If the output is something like
Code:
console null
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.
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
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.
Perhaps the faq could be updated to mention this solution.
After adding the line to kernel source , did you recompiled the kernel?.
But I am doing lfs in vm I've allocated only 10GB to vm .So , If i recompile my kernel,then I'll be running out of space. can I do that. Or is thr any alternative to make the kernel to use devpts fs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.