LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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: 47
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: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
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: Slackware 14; CentOS; Vyatta
Posts: 372

Rep: Reputation: 33
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: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
@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.
 
  


Reply

Tags
lfs, ls, no more ptys, spawn


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
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


All times are GMT -5. The time now is 04:46 PM.

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