"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" Code:
The system has no more ptys. Ask your system administrator to create more. 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?? :( |
try this and see if it helps.......
Code:
chmod 777 /dev/ptmx |
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... |
Quote:
Will that code work on LFS 6.2? |
Sometimes it helps reading the book ...
Here the link found page 49 : http://www.linuxfromscratch.org//lfs/faq.html#no-ptys |
sometimes it helps to not be a smart ass about it either.
|
Quote:
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/ Code:
console null |
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.. |
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. |
@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. |
@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. |
@xscrat
LFS v8.3 Thanks. This worked for me too. I have had to reboot a few times while building and I guess I didn't note that bit down. Incidently, my kernel source's config file doesn't use the CONFIG_DEVPTS_FS Code:
grep DEVPTS_FS /usr/src/linux-headers-4.4.0-137-generic/.config |
Hi thats a mainline distro kernel? If you build a kernel from scratch it is set.
And it is mentioned in the lfs system init book |
did you recompiled the kernel
Quote:
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. |
All times are GMT -5. The time now is 03:01 AM. |