View previous topic :: View next topic |
Author |
Message |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Jan 09, 2009 3:03 am Post subject: openpty failed: 'out of pty devices' why it looks for? |
|
|
Code: | tux1 ~ # chroot /mnt/hda7 /bin/bash
tux1 / # env-update
>>> Regenerating /etc/ld.so.cache...
tux1 / # source /etc/profile
tux1 / # emerge -C xf86-input-evdev
x11-drivers/xf86-input-evdev
selected: 2.1.0
protected: none
omitted: none
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging x11-drivers/xf86-input-evdev-2.1.0...
openpty failed: 'out of pty devices'
* GNU info directory index is up-to-date.
tux1 / # |
for unmerging evdev in chroot env why it should look for pty devices?
is it unmerged or not?
evdev needs to be unmerged for keyboard and mouse to work in X. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Last edited by padoor on Fri Jan 09, 2009 8:12 am; edited 1 time in total |
|
Back to top |
|
 |
pappy_mcfae Watchman


Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Fri Jan 09, 2009 7:51 am Post subject: |
|
|
Because you don't have any defined in your kernel .config. You can set them up under Character Devices. It defaults to using 256 pty devices, which should be plenty. For reference, you can look through one of my seed kernels. I have that set up by default.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Jan 09, 2009 8:12 am Post subject: |
|
|
thanks pappy
how r u doing thses days ? very busy?
it does not look like evdev unmerged.
emerge -Duav world is calling evdev also again.
which anyway i will unmerge again.
in chroot env it has difficulty in unmerging evdev. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
 |
widremann Veteran

Joined: 14 Mar 2005 Posts: 1314
|
Posted: Fri Jan 09, 2009 1:43 pm Post subject: |
|
|
openpt() uses UNIX-98 style ptys, which requires the existence of /dev/ptmx (the pty master) and /dev/pts/ (a directory that gets a new entry for every pty that is actually created). /dev/pts/ is mounted as filesystem type devpts. Since you are in a chroot, my guess is that you did not do a bind mount of /dev from your live system to the chroot and so these pty device nodes don't exist in your chroot. You should do a "mount -o bind /dev /mnt/gentoo/dev" (where /mnt/gentoo is the path to your chroot) before chrooting and see if that helps. |
|
Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Jan 09, 2009 5:40 pm Post subject: |
|
|
widremann
you are right .i mounted only the / partition and chrooted.
but even after booting from this partition i unmerged again.
still the update wants the evdev back again.
my same problem of keyboard putting up 3 3 charecters for each press comes back if i emerge this evdev.
i thought for merging packages only we need the /dev to be mounted in chroot and proc ofcourse.
unmerge also did not work anyway though it said unmerged. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
 |
pappy_mcfae Watchman


Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Fri Jan 09, 2009 7:13 pm Post subject: |
|
|
padoor wrote: | thanks pappy
how r u doing thses days ? very busy?  |
Not nearly as busy as I'd like to be. I'm going to change that this year.
Quote: | it does not look like evdev unmerged.
emerge -Duav world is calling evdev also again.
which anyway i will unmerge again.
in chroot env it has difficulty in unmerging evdev. |
As far as I know, evdev is only installed if you manually emerge it, or if you use the evdev setting under INPUT_DEVICES. Also, whenever you move up in xorg-server versions, you have to recompile all the input devices as well, evdev among them. I just had to do that a couple days ago when libdrm-2.4.3 hit portage.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
 |
waebbl n00b

Joined: 06 May 2004 Posts: 42 Location: Munich, DE
|
Posted: Thu Aug 11, 2011 10:51 am Post subject: |
|
|
I know this post is quite old, but today I ran into the same problem, so there's a chance the post might still be interesting for some people.
It happens, although /dev was bind-mounted inside the chroot. I never noticed this before inside a chrooted environment.
The key here is to use --rbind instead of --bind, which also rebinds the /dev/pts and /dev/shm filesystems. By exiting the chroot, unmount ${CHROOT}/dev and mount it again using the rbind option, it worked. I was used to use the rbind option, because the handbook uses that option before changing into the chroot, but today I just used the bind option, just because I saw it on a lot of articles on the net. |
|
Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sat Aug 13, 2011 3:45 am Post subject: |
|
|
thanks for sharing this info
why the doc does not say about --rbind ?[still using --bind only]
thanks waebbl  _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
 |
waebbl n00b

Joined: 06 May 2004 Posts: 42 Location: Munich, DE
|
Posted: Tue Aug 16, 2011 8:27 am Post subject: |
|
|
Well, afair the installation handbook is using --rbind option.
The docs I was referring to, are some other docs around (mainly about building livecds) which are using --bind. |
|
Back to top |
|
 |
nickel Apprentice


Joined: 21 Oct 2005 Posts: 189 Location: Germany
|
Posted: Sun Sep 06, 2015 4:28 pm Post subject: |
|
|
i just wanted to say, thx. Even though 4 years later, it helped me |
|
Back to top |
|
 |
|