Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116443 - >=udev-078 + baselayout-1.12.0_pre12 = non-root partitions mount fails
Summary: >=udev-078 + baselayout-1.12.0_pre12 = non-root partitions mount fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-22 18:35 UTC by Rick Harris
Modified: 2006-01-24 00:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2005-12-22 18:35:29 UTC
On a pure udev system (no tarball) using the latest unmasked udev and baselayout, non-root partitions fail to mount because they are either already mounted or busy.

<snip>

 * Checking all filesystems ...
/dev/hdb2: clean, 21/24192 files, 5385/96390 blocks
  [ ok ]
 * Mounting local filesystems ...
mount: /dev/hdb5 already mounted or /home busy
mount: /dev/hdb6 already mounted or /usr busy
mount: /dev/hdb7 already mounted or /pub busy
mount: /dev/hde1 already mounted or /data busy
none on /dev/shm type tmpfs (rw,size=200m)
mount: none already mounted or /proc/bus/usb busy
 * Some local filesystem failed to mount
  [ !! ]
 * Activating (possibly) more swap ...
  [ ok ]

</snip>

Leaving severity as 'normal' as the partitions do eventually mount silently. The error is perhaps only cosmetic & a slight slowdown in boot time.
However, /dev/shm does get mounted twice in the end...

The problem seems to be the following line in /etc/udev/rules.d/50-udev.rules
ENV{UDEVD_EVENT}=="1", RUN+="/sbin/udev_run_hotplugd"

Commenting out this line fixes the problem, but perhaps some sort of check would be better.
It maybe that tying hotplug to udev in this way means hotplug is either trying to mount the partitions or is hogging the usage of the dirs at the same time mount is called.

I suspect the former as /dev/shm is mounted twice.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-12-22 21:36:30 UTC
Do you have a hotplug script that mounts the partitions?

What is doing the mounting?

What kernel version are you using?
Comment 2 SpanKY gentoo-dev 2005-12-23 06:17:52 UTC
and where is `emerge info` like you were supposed to post
Comment 3 Rick Harris 2005-12-24 21:31:56 UTC
Portage 2.1_pre1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-rc5 i686)
=================================================================
System uname: 2.6.15-rc5 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.0_pre12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext 3gp X a52 aac aalib alsa apache2 apm arts artswrappersuid audiofile avi berkdb bidi bitmap-fonts bonobo bzip2 cairo cdb cdparanoia cdr crypt cups curl dga directfb divx4linux dts dv dvd dvdr dvdread eds emboss encode exif expat fam fame fbcon ffmpeg flac foomaticdb fortran freetype gd gdbm geoip gif gimp gimpprint glut gmp gnome gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib ipv6 java jikes jit joystick jpeg junit kde kdeenablefinal lcms libcaca libg++ libgda libvisual libwww live lm_sensors logitech-mouse lzo mad matroska metar mhash mikmod mjpeg mmx mmx2 mmxext mng motif mozsvg mp3 mpeg mplayer musicbrainz mysql mythtv ncurses network nntp nomalloccheck nsplugin nvidia ogg oggvorbis openal opengl oss pam pcre pdflib perl pic png portaudio python qt rar readline real recode rtc ruby samba sasl scanner sdl sensord slang slp sndfile snmp soundtouch speex spell sqlite sse ssl stream subtitles svga tcltk tcpd tetex tga theora tiff transcode truetype truetype-fonts type1-fonts udev usb v4l v4l2 vcd visualization vorbis win32codecs wmf wxwindows xanim xine xinerama xml xml2 xmms xosd xv xvid xvmc yv12 zlib zvbi elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


SpanKY, here is the output of `emerge info`.
I didn't include it before as I didn't feel it to be appropriate.
Let me know if you need the `emerge info` from the other 4 boxes that this bug is present on.
Comment 4 Rick Harris 2005-12-24 21:55:33 UTC
Versions used:
sys-devel/binutils-2.16.1
sys-apps/util-linux-2.12r-r1
sys-apps/hotplug-20040923-r1
sys-fs/udev-079

> Do you have a hotplug script that mounts the partitions?

I haven't any custom hotplug scripts anywhere, just what comes with the default hotplug emerge.
I thought that there maybe some old legacy hotplug scripts hanging around in /etc from previous hotplug versions, so I un-merged hotplug, cleaned out all hotplug directories in /etc & re-emerged hotplug, but with no luck.

I also haven't been able to see exactly where or what hotplug script is causing the issue.

> What is doing the mounting?
/etc/init.d/localmount as called by the init scripts in the boot runlevel
The relevant line is:
        mount -at noproc,noshm,no${NET_FS_LIST// /,no}

If the line is commented out, the error disappears but the partitions do not get mounted.

> What kernel version are you using?
sys-kernel/vanilla-sources-2.6.15_rc5

However, the error also presents itself on sys-kernel/vanilla-sources-2.6.14.4

As far as I can tell, the process happens like so:

`mount -at` is called from /etc/init.d/localmount
The process of calling `mount` triggers a udev event
The udev event runs `udev_run_hotplugd` which either tries to mount the partitions or ties up the directories that mount is trying to mount to

Let me know if you need more info
Comment 5 Arlo Clauser 2006-01-16 09:47:16 UTC
I think if you use coldplug and don't have any non-boot required modules in /etc/modules.autoload.d/kernel-2.6 you won't get his error. 
The newest /etc/modules.autoload.d/kernel-2.6 should only be used for raid drivers and the like. All other modules are loaded by hot/coldplug.

http://forums.gentoo.org/viewtopic-t-416530.html
Comment 6 Rick Harris 2006-01-24 00:04:43 UTC
Installing coldplug does not fix, it was already installed.

Removing the entries located in /etc/modules.autoload.d/kernel-2.* does not fix.

The problem has been fixed in udev-0.79-r1 revision.

Bug #118419 is a duplicate of this bug.