I get the famous message Jan 15 17:11:21 server1 kernel: <3>udev: missing sysfs features; please update the kernel or disable the kernel's CONFIG_SYSFS_DEPRECATED option; udev may fail to work correctly after doing a emerge -UDN world which obviously upgraded me to udev-146-r1. The result is that /dev is not populated and essentials like /dev/urandom are missing. I goggled a bit and found the discussions about the following kernel config params: CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=y Now I have # CONFIG_SYSFS_DEPRECATED_V2 is not set which is correct according to several forum entries. After cleaning and compiling my kernel again with make bzImage modules modules_install install I _still_ get this error and _still_ got no devices. I upgraded to kernel 2.6.31-r6 but still no luck. I'm out of ideas how I can fix this, so I guess it's a bug. I also noted that /etc/init.d/./udev start tells me that it is written for baselayout 2 and I have baselayout 1. I checked and I really have baselayout 1. Question is why is portage fetching an incompatible version of udev?! Reproducible: Always Steps to Reproduce: n/a Actual Results: see Description Expected Results: see Description
No where in this report does it state that you are *running* the new kernel..
Actually, 'emerge --info' maybe be needed here. Something else may be wrong here - what does 'ls -l /sys/class/mem/null' give you ? Don't be bothered by the script - baselayout 1 handles udev differently.
Hi, first of all, thx for the quick replies. Here is the emerge --info Portage 2.1.6.13 (default/linux/amd64/10.0/server, gcc-4.1.2, glibc-2.10.1-r1, 2.6.31-gentoo-r6n-fuse x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r6n-fuse-x86_64-Intel-R-_Xeon-R-_CPU_E5335_@_2.00GHz-with-gentoo-1.12.13 Timestamp of tree: Fri, 15 Jan 2010 13:30:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 1.3.7-r1, 2.1.9-r2 dev-lang/python: 2.4.4-r13, 2.5.4-r2, 2.6.4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.llarian.net/ http://gentoo.osuosl.org/ http://ftp.heanet.ie/pub/gentoo/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/local-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi amd64 apache2 berkdb bzip2 caps cli cracklib crypt ctype cups curl cxx dri exif extraengine fortran ftp gamin gd gdbm gif gpm gtk2 iconv imap ipv6 jabber jpeg json kde ldap logrotate mmx modules mudflap multilib mysql ncurses nls nptl nptlonly nsplugin openmp pam pcre pear perl png pppd qt readline reflection samba sasl session simplexml slang snmp soap sockets spl sse sse2 ssl subversion svg swat sysfs tcpd tokenizer truetype unicode urandom vhosts xinetd xml xml2 xorg xsl zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS so yes, I'm running this kernel. /$ ls -l /sys/class/mem/null total 4 drwxr-xr-x 2 root root 4096 May 10 2009 power lrwxrwxrwx 1 root root 9 May 10 2009 subsystem -> ../../mem /$ ls -l /sys/class/mem/ total 36 drwxr-xr-x 3 root root 4096 May 10 2009 full drwxr-xr-x 3 root root 4096 May 10 2009 kmem drwxr-xr-x 3 root root 4096 May 10 2009 kmsg drwxr-xr-x 3 root root 4096 May 10 2009 mem drwxr-xr-x 3 root root 4096 May 10 2009 null drwxr-xr-x 3 root root 4096 May 10 2009 port drwxr-xr-x 3 root root 4096 May 10 2009 random drwxr-xr-x 3 root root 4096 May 10 2009 urandom drwxr-xr-x 3 root root 4096 May 10 2009 zero Interestingly, there seem to be some devices!
> 2.6.31-gentoo-r6n-fuse Interesting suffix. Care to explain ? On gentoo-sources 2.6.32 (with CONFIG_SYSFS_DEPRECATED_V2 not set) it's simply: lrwxrwxrwx 1 root root 0 01-17 12:14 /sys/class/mem/null -> ../../devices/virtual/mem/null
(In reply to comment #4) > > 2.6.31-gentoo-r6n-fuse > Interesting suffix. Care to explain ? > On gentoo-sources 2.6.32 (with CONFIG_SYSFS_DEPRECATED_V2 not set) it's simply: > lrwxrwxrwx 1 root root 0 01-17 12:14 /sys/class/mem/null -> > ../../devices/virtual/mem/null > of course :) It's the name of my company. So you think if I switch to 2.6.32 it might help?
IIRC, it worked already in 2.6.31, I was only telling how it looks, when it works. Also wondering, if you used any custom patches.
(In reply to comment #6) > IIRC, it worked already in 2.6.31, I was only > telling how it looks, when it works. > Also wondering, if you used any custom patches. > I will re-verify when I again have access to a console of this machine. I cannot even SSH to it because there are no /dev/pty terminals. Is there any way to re-initialize, reset or whatever the /sys directory? I think this is a pseudo FS and its content comes from the kernel, isn't it?
It should be empty, till kernel fills it. IIRC, there's a problem, if it's not. Try mount-bind it, to check.
I have the exact same problem. In a few hours (or one day), I'll try to post the asked for information for my system as well. My system has been in this state for a few weeks - I was moving so I couldn't work on it till now. Currently, I have to access everything using SystemRescueCD. I don't know anything about mount-bind. Can you tell me precisely the command, and what I should do/expect after executing the command? Thanks.
OK. I'm using udev-146-r1 and linux-2.6.30-gentoo-r8 Output of emerge --info: Portage 2.2_rc33 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.31.09-std134 i686) ================================================================= System uname: Linux-2.6.31.09-std134-i686-with-gentoo-1.12.13 Timestamp of tree: Mon, 23 Nov 2009 03:50:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 1.3.7-r1, 2.1.9-r1 dev-lang/python: 2.4.6, 2.5.4-r3, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en ar" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/emacs /usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/interactive-fiction /usr/local/portage/layman/games /usr/local/portage/layman/armagetron /usr/local/portage/layman/arcon /usr/local/portage/layman/mozilla /usr/local/portage/layman/kde-sunset /usr/local/portage/layman/kde-testing /usr/local/portage/layman/other /usr/local/portage/layman/other" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="7zip X a52 aac aalib acl acpi aim alsa apache2 apm asf avi bash-completion berkdb bitmap-fonts bittorrent blas bluetooth branding browserplugin bzip2 cairo calendar caps cdparanoia cdr cli consolekit cracklib crypt css cups cvs dbus dga dirac directfb divx4linux djvu doc dri dts dvb dvd dvdnav dvdr dvdread eds emacs emboss encode exif fam fbcon fbdev ffmpeg fftw firefox flac fortran ftp gd gdbm geoip ggi gif gimp glitz gnuplot gnutella gphoto2 gpm gstreamer gtk guile hal hbci hdri i8x0 iconv icq imagemagick imap imlib ipv6 jabber java javascript jpeg jpeg2k justify kde lame lapack latex lcms ldap leim libcaca libnotify libsamplerate live loop-aes mad maildir matroska mbox md5sum midi mikmod mjpeg mmx mng modules mozilla mp2 mp3 mp4 mpeg mplayer msn mudflap musepack mysql ncurses network nls nptl nptlonly nsplugin oav ofx ogg oggvorbis openexr opengl openmp oscar oss pam pcre pda pdf pdflib perl pgp php plotutils png pnm pnp ppds pppd python qt qt3support qt4 quicktime radio rar readline reflection rss rtsp samba sasl scanner schroedinger sdl session shout sndfile sox speex spell spl srt sse ssl startup-notification stream subtitles subversion svg svga sysfs tcpd tetex tga theora threads thunar tiff tivo transparency truetype truetype-fonts type1-fonts unicode usb vcd vesa videos vidix vorbis wavpack win32codecs wma wmf wxwindows x264 x86 xcomposite xine xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ar" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Note that I executed this command using SystemRescueCD, which is why the kernel version it reports is incorrect. If I boot directly into Gentoo (where the problem is), doing uname -a gives the 2.6.30-r8 kernel. Output of ls -l /sys/class/mem/null: total 4 -r--r--r-- 1 root root 4 Jul 4 2006 dev I take it that's not how it's supposed to be? As mentioned in the previous comment, I'm not sure what I'm supposed to do via/after mount-binding it. The man page indicates that mount-binding is simply "to remount part of the file hierarchy somewhere else." At the moment, I believe it's already mounted - why would I want to remount it elsewhere? What am I missing? I don't know if this has anything to do with it, but on the forums, I see indications that I shouldn't have ATA/ATAPI/MFM/RLL support enabled in my kernel, and instead I should have Serial ATA (prod) and Parallel ATA (experimental) drivers enabled only (along with relevant options that fall under it). Is there anything to that? I currently have ATA/ATAPI/MFM/RLL enabled, with the latter one enabled as a module. The reason is that my motherboard is old and doesn't support SATA. One HD and both my optical drives are connected via IDE interfaces. I do have a SATA HD, but that's connected to an SATA Adapter card (connected to PCI) - which is why I have the Serial ATA etc options compiled as modules (and loaded up as modules). Awaiting suggestions.
OK. As I noticed everything under /sys was from Jul 4, 2006, on a whim I just renamed the /sys/ directory to something else and created a new, empty /sys/ (this was while under SystemRescueCD). I booted, and everything seems to be working! This may help the person who originally had the problem. However, I don't know if that was a safe thing to do, so it would be nice if someone with experience can confirm it's OK to try.
*** This bug has been marked as a duplicate of bug 291916 ***
Ok, moving and re-creating the /sys directory also solved it for me. However, I consider this a serious _bug_ and when emerging that packet which is causing it (I suspect some Baselayout) there should be at least a hint for this workaround. Or, even better, just fix the bug. Thanks to all for you help
(In reply to comment #13) > Ok, moving and re-creating the /sys directory also solved it for me. > However, I consider this a serious _bug_ and when emerging that packet which is > causing it (I suspect some Baselayout) there should be at least a hint for this > workaround. > Or, even better, just fix the bug. It's not obvious where the bug is, and it may well have been "our" fault. The /sys/ directory should be empty. Perhaps we messed it up ourselves at some point, or perhaps a previous package from a long time ago (2006 for me) was buggy and messed this up. I guess it can't hurt putting a warning message in the ebuild, though. I'll leave it to the devs to figure out.
Ok, u are right it might have something to do with the state of the system, that is, any data lieing around in any folder. The speculation regarding old files might in my case be even true. This system is ~3 years old, some parts myba older, becuase with Gentoo you don't need to re-install ;)