Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No PTYs after updating
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JACEM
n00b
n00b


Joined: 07 Apr 2005
Posts: 42

PostPosted: Fri Jun 20, 2014 7:17 pm    Post subject: No PTYs after updating Reply with quote

After I updated my system

emerge sync

emerge --ask --newuse --update system

when I reboot and tried to ssh in I got

server refused to allocate pty

logging on locally there are no ptys in the /dev directory

after searching on line I found a lot of stuff that said I should

Code:
/sbin/MAKEDEV pty


I don't have have a MAKEDEV command how do I get the MAKEDEV command

I was also told to

Code:
rc-update add udev sysinit
rc-update add udev-mount sysinit


I get not found error for both udev and udev-mount how do I get those?

most of the pages I find online about this refer to upgrading from baselayout to baselayout2 my system is from late 2012 early 2013 so it should have installed baselayout 2 right?

The kernel is 3.5 so it is above 2.6. 3.5 is what the setup disk insisted I use, I thought odd major releases where experimental but at the time gentoo insisted.

How do I make ptys or get the system to make ptys so I can remote log in?

thanks

jacem
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Jun 20, 2014 8:09 pm    Post subject: Reply with quote

jacem ...

the MAKEDEV script is obsolete if using a device manager (ie, udev, eudev, mdev). The script is for when a static /dev is in use, as it populates /dev with device nodes. This is not the default and so your problem won't be solved via the use of this script.

The absence of /etc/init.d/udev and /etc/init.d/udev-mount is unusual, and offhand I can't explain why this is the case. From your install date udev would have been provided as the default device manager.

So, rather then speculate as to the issue you should provide more details ... the output of the following should provide me and others with some clue as to what is going on.

Code:
# emerge --info
# ls -l /etc/init.d/udev*
# rc-status
# emerge -s udev
# awk '/(DEVFS|(SYS|TMP)FS)/' /usr/src/linux/.config
# pgrep -a udev
# dmesg | grep udev
# mount

best ... khay
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44013
Location: 56N 3W

PostPosted: Fri Jun 20, 2014 8:43 pm    Post subject: Reply with quote

JACEM,

I suspect that devpts is not mounted.

You can try adding
Code:
devpts                  /dev/pts        devpts                  rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
to /etc/fstab but it should not be needed.
However hardened has or had a bug that required this workaround.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JACEM
n00b
n00b


Joined: 07 Apr 2005
Posts: 42

PostPosted: Fri Jun 20, 2014 8:57 pm    Post subject: Thank in advance Reply with quote

oh my god yeah MAKEDEV did not help me at all I'll be lurking around the forums for a while untangleing what that did to me.


emerge --info

Code:
Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-Pentium_III_-Coppermine-with-gentoo-2.2
KiB Mem:      378068 total,    214100 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Thu, 19 Jun 2014 19:00:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.6, 3.2.3-r2, 3.3.2-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US_UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="acl bash-completion berkdb bzip2 cdr cli cracklib crypt cscope cxx dri dvd fortran gdbm iconv modules mysql ncurses nls nptl openmp pam pcre python readline samba session ssl tcpd udev unicode usb vim-syntax x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



ls -l /etc/init.d/udev

nothing urandom is the only init file that starts with the letter u.

emerge -s udev

Code:
[ Results for search key : udev ]
[ Applications found : 12 ]

*  app-text/uudeview
      Latest version available: 0.5.20-r1
      Latest version installed: [ Not Installed ]
      Size of files: 255 kB
      Homepage:      http://www.fpx.de/fp/Software/UUDeview/
      Description:   uu, xx, base64, binhex decoder
      License:       GPL-2

*  app-vim/udev-syntax
      Latest version available: 20051016-r1
      Latest version installed: [ Not Installed ]
      Size of files: 1 kB
      Homepage:      http://www.vim.org/scripts/script.php?script_id=1381
      Description:   vim plugin: syntax highlighting for udev rules files
      License:       vim

*  dev-dotnet/gudev-sharp
      Latest version available: 0.1
      Latest version installed: [ Not Installed ]
      Size of files: 100 kB
      Homepage:      http://launchpad.net/gudev-sharp
      Description:   GUDEV API C# binding
      License:       LGPL-2.1

*  dev-python/python-gudev
      Latest version available: 147.2
      Latest version installed: [ Not Installed ]
      Size of files: 9 kB
      Homepage:      http://github.com/nzjrs/python-gudev
      Description:   Python binding to the GUDev udev helper library
      License:       LGPL-3

*  dev-python/pyudev
      Latest version available: 0.16.1
      Latest version installed: [ Not Installed ]
      Size of files: 73 kB
      Homepage:      http://packages.python.org/pyudev/ http://pypi.python.org/pypi/pyudev
      Description:   Python binding to libudev
      License:       LGPL-2.1

*  sys-apps/udevil
      Latest version available: 0.4.3
      Latest version installed: [ Not Installed ]
      Size of files: 463 kB
      Homepage:      http://ignorantguru.github.com/udevil/
      Description:   mount and unmount removable devices without a password
      License:       GPL-3

*  sys-fs/eudev
      Latest version available: 1.5.3-r1
      Latest version installed: [ Not Installed ]
      Size of files: 1,683 kB
      Homepage:      https://github.com/gentoo/eudev
      Description:   Linux dynamic and persistent device naming support (aka userspace devfs)
      License:       LGPL-2.1 MIT GPL-2

*  sys-fs/udev
      Latest version available: 212-r1
      Latest version installed: 200
      Size of files: 2,659 kB
      Homepage:      http://www.freedesktop.org/wiki/Software/systemd
      Description:   Linux dynamic and persistent device naming support (aka userspace devfs)
      License:       LGPL-2.1 MIT GPL-2

*  sys-fs/udev-init-scripts
      Latest version available: 26-r2
      Latest version installed: [ Not Installed ]
      Size of files: 4 kB
      Homepage:      http://www.gentoo.org
      Description:   udev startup scripts for openrc
      License:       GPL-2

*  virtual/libgudev
      Latest version available: 208
      Latest version installed: [ Not Installed ]
      Size of files: 0 kB
      Homepage:     
      Description:   Virtual for libgudev providers
      License:       

*  virtual/libudev
      Latest version available: 208
      Latest version installed: [ Not Installed ]
      Size of files: 0 kB
      Homepage:     
      Description:   Virtual for libudev providers
      License:       

*  virtual/udev
      Latest version available: 208-r2
      Latest version installed: 197-r3
      Size of files: 0 kB
      Homepage:     
      Description:   Virtual to select between different udev daemon providers
      License:       



Is sys-fs/udev-init-scripts the problem?

awk '/(DEVFS|(SYS|TMP)FS)/' /usr/src/linux/.config

Code:
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_WIRELESS_EXT_SYSFS is not set
CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set
CONFIG_RTC_INTF_SYSFS=y
# CONFIG_DMI_SYSFS is not set
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y


It worked before so I don't know why the CONFIG_DEVTMPFS_MOUNT not being set would be a problem now?

dmesg | grep udev

Code:
[    0.913301] usb usb1: udev 1, busnum 1, minor = 0
[    0.915953] usb usb2: udev 1, busnum 2, minor = 128


mount

Code:
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,noatime,errors=continue,barrier=1,data=ordered)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,size=37808k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
/dev/sdb1 on /var/volume1 type ext3 (rw,noatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nodev,noexec,nosuid)


Thanks

jacem
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44013
Location: 56N 3W

PostPosted: Fri Jun 20, 2014 9:12 pm    Post subject: Reply with quote

JACEM,

CONFIG_DEVTMPFS_MOUNT is not your problem.

Your mounts output is missing
Code:
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
so your ptys are not available.
OpenRC should do this mount automatically but it clearly hasn't happened.

The only kernel option you need is
Code:
CONFIG_UNIX98_PTYS=y
so that the kernel makes this available.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JACEM
n00b
n00b


Joined: 07 Apr 2005
Posts: 42

PostPosted: Fri Jun 20, 2014 9:23 pm    Post subject: thanks for the memory jog Reply with quote

I installed sys-fs/udev-init-scripts and everything worked thanks to all for there timely assistance.

jacem

ps this is my way of saying I don't actually know how to change the header to [SOLVED]
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1770

PostPosted: Fri Jun 20, 2014 9:47 pm    Post subject: Reply with quote

Quote:
ps this is my way of saying I don't actually know how to change the header to [SOLVED]
edit first post and change subject
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum