Devpts

Michael Konrad mkonrad at syr.edu
Wed Jun 28 21:20:06 PDT 2000


I now understand, I had misinterpreted this statement from devices.txt.

Older versions of the Linux kernel used this major
  number for BSD PTY devices.  As of Linux 2.1.115, this
  is no longer supported.  Use major numbers 2 and 3.

Thanks Akritidis.

-Michael


Akritidis Periklis wrote:

> On Wed, 28 Jun 2000, Michael Konrad wrote:
>
> > I don't have group 5 tty on my lfs system but I tried it with just the mode. I
> > did not get any error messages when mounting devpts, but my system hangs and
> > there is no login prompt.
> >
> > When I put the tty's in dev I get a login prompt.
>
> You mean the /dev/tty0 ... ?
>
> I believe Documentation/devices.txt says slave pseudo-ttys, eg
> /dev/ttypq are obsolete, not /dev/tty1 etc. The former are made
> obsolete by the devpts file system, but the later are not, they
> are the actual ttys not "pseudo". They should not be removed!
>
> As mentioned before pseudo ttys are used by things such as xterms
> and telnet sessions, not by agetty.
>
> I hope the above are correct!
>
> >
> > -Michael
> >
> >
> > "Thomas T. Veldhouse" wrote:
> >
> > > I found it.  My previous answer was incomplete:
> > >
> > > Compile your kernel with CONFIG_UNIX98_PTYS and CONFIG_DEVPTS_FS.
> > > mknod /dev/ptmx c 5 2
> > > chmod 666 /dev/ptmx
> > > mkdir /dev/pts
> > >
> > > Add to /etc/fstab:
> > > none            /dev/pts        devpts gid=5,mode=620    0 0
> > >
> > > -   (Note:  gid=5 is applicable for Red Hat systems for which group "tty"
> > > has
> > > -   gid 5.  Adjust according to your distribution.  Use mode=600 if you want
> > > -   "mesg n" to be default.)
> > >
> > > mount /dev/pts
> > >
> > > Tom Veldhouse
> > > veldy at veldy.net
> > >
> > > ----- Original Message -----
> > > From: Gerard Beekmans <gerard at linuxfromscratch.org>
> > > To: <lfs-discuss at linuxfromscratch.org>
> > > Sent: Wednesday, June 28, 2000 11:17 AM
> > > Subject: Re: Devpts
> > >
> > > >
> > > >
> > > > > Has anyone looked into using devpts for consoles? What I don't
> > > > > understand is that in the devices.txt it says that tty is obsoleted, but
> > > > > it doesn't tell you how to use/change inittab so agetty/getty uses
> > > > > /dev/pts.
> > > >
> > > > I believe agetty has to be compiled to use Unix98 PTY's instead of the
> > > > old obsolete tty's. Not sure how to do that though, never got around to
> > > > do that.
> > > >
> > > > --
> > > > Gerard Beekmans
> > > > www.linuxfromscratch.org
> > > >
> > > > -*- If Linux doesn't have the solution, you have the wrong problem -*-
> > > > --
> > > > Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> > > > IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> > > > Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> > > > "unsubscribe" (without the quotation marks) in the body of the message
> > > > (no subject is required)
> > > >
> > >
> > > --
> > > Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> > > IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> > > Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> > > "unsubscribe" (without the quotation marks) in the body of the message
> > > (no subject is required)
> >
> > --
> > Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
> > IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
> > Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
> > "unsubscribe" (without the quotation marks) in the body of the message
> > (no subject is required)
> >

--
Mail archive: http://www.pcrdallas.com/mail-archives/lfs-discuss
IRC access: server: irc.linuxfromscratch.org port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at linuxfromscratch.org and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)



More information about the lfs-dev mailing list