LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-22-2006, 04:40 PM   #1
czeslafff
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
"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??
 
Old 01-23-2006, 06:24 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
try this and see if it helps.......
Code:
chmod 777 /dev/ptmx
 
Old 01-23-2006, 07:55 AM   #3
czeslafff
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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...
 
Old 02-08-2007, 07:47 AM   #4
check8
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
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?
 
Old 02-08-2007, 08:02 AM   #5
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
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.
Old 02-10-2010, 11:34 AM   #6
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Rep: Reputation: 19
sometimes it helps to not be a smart ass about it either.
 
0 members found this post helpful.
Old 02-10-2010, 06:12 PM   #7
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by czeslafff View Post
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.
 
0 members found this post helpful.
Old 03-05-2010, 02:22 PM   #8
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Rep: Reputation: 43
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..
 
Old 04-24-2012, 05:35 AM   #9
xscrat
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 04-24-2012, 06:07 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@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.
 
Old 07-16-2012, 05:15 AM   #11
Tokeii
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
@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.
 
Old 10-06-2018, 07:43 AM   #12
tomred
LQ Newbie
 
Registered: Oct 2018
Posts: 1

Rep: Reputation: Disabled
@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
Perhaps the faq could be updated to mention this solution.
 
Old 10-07-2018, 11:46 AM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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

Last edited by spiky0011; 10-07-2018 at 11:49 AM.
 
Old 03-27-2020, 11:18 PM   #14
Prabhu R
LQ Newbie
 
Registered: Mar 2020
Posts: 3

Rep: Reputation: Disabled
did you recompiled the kernel

Quote:
Originally Posted by tomred View Post
@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
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.
 
  


Reply

Tags
lfs, ls, no more ptys, spawn



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
Cannot create folders in "File System" littlegti84 Linux - Newbie 1 12-17-2005 10:09 PM
"Essential System Administration" or "UNIX System Administration Handbook"? TGWDNGHN Linux - Newbie 3 07-03-2005 08:27 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM
"Attempting create too large a file system" suguru Linux - Hardware 2 02-23-2004 01:16 AM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration