Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68795 - baselayout-1.11.3 fails to setup /dev properly with devfs automounting at boot
Summary: baselayout-1.11.3 fails to setup /dev properly with devfs automounting at boot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Highest critical
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 68826 69086 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-25 03:07 UTC by Shyam Mani (RETIRED)
Modified: 2004-10-27 11:43 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/conf.d/rc (rc,2.42 KB, text/plain)
2004-10-25 06:34 UTC, David Bruha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shyam Mani (RETIRED) gentoo-dev 2004-10-25 03:07:28 UTC
I emerged baselayout-1.11.3 (as part of emerge -uD world) and then did an etc-update. When I rebooted, I got :

*Checking root Filesystem...   [ok]
Failed to open the device '/dev/hda5': No such file or directory

*Filesystem couldn't be fixed :(   [!!]
Give root password for maintanence
(or type Control-D for normal startup):

I booted into FC2, chrooted to roll back to baselayout-1.10.4 and things were fine. Once back into Gentoo, I tried updating to 1.11.3 (thinking I messed up somewhere) but ended up with the same above mentioned error(s).

# emerge info

Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-gentooy i686)
=================================================================
System uname: 2.6.9-gentooy i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bonobo bzlib cdr crypt cscope ctype cups curl directfb divx4linux docdvd encode esd ethereal evo exif f77 fbcon flac flash foomaticdb ftp gb gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml icq imagemagick imap imlib innodb jabber java jpeg kde libg++ libwww mad man mbox memlimit mikmod mmap mmx motif mozilla mpeg mysql ncurses network nls odbc offensive oggvorbis opengl oscar oss pam pcre pdflib perl php png posix python qt quicktime readline recode samba sdl slang snmp sockets spell sse ssl svg svga sysvipc tcltk tcpd tetex tiff truetype unicode usb vhosts videos wmf x86 xinerama xml xml2 xmms xosd xprint xsl xv xvid yahoo zlib"

Any other piece of info that maybe useful?
Comment 1 David Bruha 2004-10-25 04:28:03 UTC
Same here. Had to rollback to 1.10.4.
Comment 2 Jos Delbar 2004-10-25 05:04:35 UTC
Same problem here. For some reason, the fsck calls in /etc/init.d/checkroot and /etc/init.d/checkfsnow now fail. After entering sulogin, I found no hda entries in /dev, maybe that is the problem?

emerge info:

Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-fforce-addr -march=pentium-m -mno-sse2 -Os -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-fforce-addr -march=pentium-m -mno-sse2 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.be.gentoo.org/gentoo-portage"
USE="X acpi alsa arts avi berkdb bindist bitmap-fonts cdr crypt cups dga dio directfb divx4linux dvd encode f77 fbcon foomaticdb gdbm gif gpm i8x0 imlib java jpeg junit kde libg++ libwww mad mikmod mmx motif mpeg msn ncurses nls oggvorbis opengl pam pcmcia pdflib perl png pnp ppdspython qt quicktime readline real samba sdl slang spell sse ssl svga tcltk tcpd theora tiff truetype unicode usb x86 xml2 xmms xprint xv xvid zlib video_cards_i830"
Comment 3 Shyam Mani (RETIRED) gentoo-dev 2004-10-25 05:06:18 UTC
Yeah. /dev had no entries for hdx. I guess that's the only reason the fsck fails? Coz there is nothing to check as far as it can see...
Comment 4 SpanKY gentoo-dev 2004-10-25 06:07:04 UTC
do you guys all use udev ?  what do you have RC_DEVICES set to in /etc/conf.d/rc ?

if so, do you use the RC_DEVICE_TARBALL feature ?
Comment 5 Shyam Mani (RETIRED) gentoo-dev 2004-10-25 06:10:44 UTC
I don't use udev.

I don't seem to have RC_DEVICES in /etc/conf.d/rc but I do have RC_DEVICE_TARBALL set to yes.
Comment 6 SpanKY gentoo-dev 2004-10-25 06:24:15 UTC
umm, if you're using 1.11.x and you dont have RC_DEVICES in /etc/conf.d/rc, it sounds like you either didnt run `etc-update` or portage didnt merge all the config files correctly

if `etc-update` doesnt show anything to update, try `emerge baselayout --noconfmem`
Comment 7 Shyam Mani (RETIRED) gentoo-dev 2004-10-25 06:28:15 UTC
I'm using 1.10.4 now. You want me to retry with 1.11.3? 

PS : etc-update showed 26 files to update (after merging 1.11.3) & I'm pretty sure /etc/conf.d/rc wasn't one of them...maybe its not updating /etc/conf.d/rc as it should?
Comment 8 David Bruha 2004-10-25 06:34:39 UTC
Created attachment 42557 [details]
/etc/conf.d/rc

/etc/conf.d/rc was actually updated while doing rc-update to this ...
Comment 9 Shyam Mani (RETIRED) gentoo-dev 2004-10-25 06:36:46 UTC
Possible then that auto isn't doing its job? I have devfsd...
Comment 10 César Fernández 2004-10-25 06:47:40 UTC
People using udev (/me use udev) say the solution is set RC_DEVICES="udev" instead of "auto"... 

Or maybe just a Device Tarball = yes ?
Comment 11 barthek 2004-10-25 06:58:45 UTC
I have set RC_DEVICES to "devfsd" (i use dev fs)
with no luck at all - system won't boot...
Comment 12 Daniel Jasper 2004-10-25 07:05:16 UTC
Same problem here. Happens with RC_DEVICES set to "auto", "devfs" and "udev". However if I replace /dev/hdaX in /etc/fstab with /dev/discs/disc0/partX, then everything is fine again. After the successful boot I again have /dev/hda*.
Comment 13 Lim Swee Tat (RETIRED) gentoo-dev 2004-10-25 07:19:26 UTC
You need to edit /etc/fstab to use /dev/ide/host0/bus0/target0/lun0/partX instead of hdaX
Comment 14 David Bruha 2004-10-25 07:35:59 UTC
By that you are just working around the problem of not created /dev nodes.
Comment 15 Simone Gotti (RETIRED) gentoo-dev 2004-10-25 07:42:41 UTC
*** Bug 68826 has been marked as a duplicate of this bug. ***
Comment 16 SpanKY gentoo-dev 2004-10-25 07:46:47 UTC
sounds like the auto setup is selecting devfs instead of udev like it should

when the system is booting, what do the init scripts say for setting up /dev ?
Comment 17 gentoo 2004-10-25 07:52:32 UTC
solution: 
/sbin/devfsd /dev

in start section of etc/init.d/checkroot
Comment 18 SpanKY gentoo-dev 2004-10-25 07:56:19 UTC
/sbin/rc already runs devfsd:
                ebegin "Starting devfsd"
                /sbin/devfsd /dev > /dev/null
                eend $? "Could not start /sbin/devfsd"

right after it mounts devfs on /dev:
                ebegin "Mounting devfs at /dev"
                try mount -n -t devfs none /dev
                eend $?

so forcing it to run in checkroot may be one hack of a workaround but it isnt a solution
Comment 19 Stephan 2004-10-25 08:49:33 UTC
same here chrooted and falling back...
Comment 20 Cubittus 2004-10-25 11:25:19 UTC
I use devfs and had this problem on reboot.

I found that /sbin/rc checks if /dev/.devfsd exists to determine whether devfsd
is already running but on my system it seems to be there before devfsd is started.  I don't know where it is coming from though.  devfs is compiled into the kernel (2.4.26).
Comment 21 SpanKY gentoo-dev 2004-10-25 11:46:54 UTC
ok, as Cubittus points out, the problem seems to be with people who use
devfsd and have it compiled into their kernel to automount at boottime

i'll test out that configuration and work with agriffis to release either
a 1.11.3-r1 or 1.11.4
Comment 22 Chris Smith 2004-10-25 11:59:09 UTC
It's not just devsd users. I use udev here and had to drop back to 1.10.
Comment 23 SpanKY gentoo-dev 2004-10-25 12:46:30 UTC
everyone please post this info then:

what do you normally use (udev/devfs) ?
what do you have RC_DEVICES and RC_DEVICE_TARBALL set to ?
during bootup, what do you see after 'Mounting proc at /proc' and before 'Activating (possible) swap' ?
when you sulogin, what does /proc/mounts show ?
there's probably multiple issues here, but the devfs one is due to /sbin/devfsd not being started when devfs is auto-mounted at boot
Comment 24 jochen 2004-10-25 16:44:51 UTC
a quick look at /sbin/rc left me with the impression devfsd is only started when devfs isn't already mounted... can this be true?

devfsd should also be started, when devfs is already mounted (imho)
Comment 25 firefox 2004-10-25 17:01:07 UTC
As in this thread, I replaced /sbin/rc with an older version and everything seems to work.

http://forums.gentoo.org/viewtopic.php?t=242001&postdays=0&postorder=asc&highlight=ext2&start=25

You might whan to fire diff; seems many changes regarding udev and fsdev have been made to /sbin/rc in this memorable update... ;-)
Comment 26 Shyam Mani (RETIRED) gentoo-dev 2004-10-25 18:54:28 UTC
Really memorable update ;) Had me thinking that my hard disk was kaput as well lol
Comment 27 SpanKY gentoo-dev 2004-10-25 19:29:38 UTC
1.11.4 is in cvs with the auto-mounting devfsd fixes

there's also a few other fixes, so if udev users still cant boot, open a new bug ... this one is for devfsd users
Comment 28 SpanKY gentoo-dev 2004-10-25 19:29:53 UTC
so get to it ...
Comment 29 Chris Bruner 2004-10-26 19:57:03 UTC
dumb question, but if I can't boot, how can I get it?
Comment 30 Shyam Mani (RETIRED) gentoo-dev 2004-10-26 20:53:52 UTC
Try chrooting from another Distro (like Knoppix) and roll back to 1.10.4...then get in & update.
Comment 31 David Bruha 2004-10-26 23:56:52 UTC
Looks ok to me now. The only strange thing (but perhaps it's just a glitch in my configuration) is that when init writes out "Activating (possibly) more swap", it tries to mount my standard swap partition once more and logicaly outputs error "Device busy".
Comment 32 Shyam Mani (RETIRED) gentoo-dev 2004-10-27 00:02:08 UTC
I get the same as well. Everything else is ok.
Comment 33 SpanKY gentoo-dev 2004-10-27 05:33:49 UTC
ive seen the swap warning on one of my boxes but none of the others ...
oddly, it shouldnt happen, as `swapon -a` should fail silently

as for booting, if you append 'devfs=nomount' at boot time, you should
be able to boot fine with 1.11.3
Comment 34 David Bruha 2004-10-27 05:43:30 UTC
But that would mean we would have to use udev - I am using devfs. ;)
Comment 35 SpanKY gentoo-dev 2004-10-27 06:33:27 UTC
umm, no ...

devfs=nomount means dont automount devfs at boot time

gentoo=nodevfs means dont use devfs, use udev instead
Comment 36 David Bruha 2004-10-27 07:59:51 UTC
hmm - I see
Comment 37 SpanKY gentoo-dev 2004-10-27 11:43:16 UTC
*** Bug 69086 has been marked as a duplicate of this bug. ***