Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44601 - initrd generated with genkernel (3.0.1) fails to unmout resulting in error messages at shutdown and boot
Summary: initrd generated with genkernel (3.0.1) fails to unmout resulting in error me...
Status: RESOLVED DUPLICATE of bug 38360
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-13 14:04 UTC by hodak
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 hodak 2004-03-13 14:04:37 UTC
I am aware that this is similar to bug 40882, but that one is closed and _beta12 
does not fix this problem. Also, there /tmp/.initrd/dev cannot be unmount in my case it is /tmp/.initrd/.

I first noticed that when shutting down I get 
Unmonting filesystems
Remounting remaining filesystems read only     [!!]

After this I am asked to iether enter root password for maintenance or press CTRL-D. Trying to pinpoint the problem, it turned out it is because initrd refuses to be unmounted, here is my /proc/mounts:
rootfs / rootfs rw 0 0
 /dev/root /tmp/.initrd ext2 rw 0 0
 /dev/hda3 / reiserfs rw,noatime 0 0
 none /proc proc rw 0 0
 none /dev devfs rw 0 0
 none /dev/shm tmpfs rw 0 0
 none /proc/bus/usb usbfs rw 0 0

Trying manually unmount /tmp/.initr results in the "device busy" error message.
I have tried to idenitify the processes using /tmp/.initr:

lsof  |grep initrd
keventd       2    root    0u   CHR        5,1                  59  
/tmp/.initrd/dev/console
keventd       2    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
keventd       2    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console
ksoftirqd     3    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
ksoftirqd     3    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
ksoftirqd     3    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kswapd        4    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kswapd        4    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kswapd        4    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kswapd        4    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console
bdflush       5    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
bdflush       5    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
bdflush       5    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kupdated      6    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kupdated      6    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kupdated      6    root    2u   CHR        5,1                  59
/tmp/.initrd/dev/console
kapmd     13199    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kapmd     13199    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kapmd     13199    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console
khubd     16530    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
khubd     16530    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
khubd     16530    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kreiserfs 21279    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kreiserfs 21279    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kreiserfs 21279    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kjournald 27727    root    0u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kjournald 27727    root    1u   CHR        5,1                  59 
/tmp/.initrd/dev/console
kjournald 27727    root    2u   CHR        5,1                  59 
/tmp/.initrd/dev/console

Why this is I do not know. 
Apparently, the unmount of initrd also fails at boot (not surprisingly) resulting in error message.

My system is running current stable, I am using gentoo-sources 2.4.22-r7. 

Reproducible: Always
Steps to Reproduce:
1.compile kernel with genkernel and install it
2.reboot
3.check /proc/mounts

Actual Results:  
initrd is mounted ans cannot be unmounted

Expected Results:  
initrd should be unmounted

I do not know if this related or not, but at boot, I also get error message
saying that modules.cahce was nt found. After this some USB related modules are
loaded, some of them fails to load.

Apparently, quite a few people are experiencing this problem judging from
several threads in the forums. Here is on of them:
http://forums.gentoo.org/viewtopic.php?t=141230&highlight=

I am assigning this bug major severity due  to the fact that many people use
genkernel and also because not being able to unmount partitions cleanly may
cause further problems.

emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r7)
=================================================================
System uname: 2.4.22-gentoo-r7 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dv
ipdfm/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 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
x/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 apm arts avi berkdb cdr crypt cups directfb encode esd foomaticdb g
dbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde ldap libg++ libwww mad mikm
od motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png pytho
n qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 x
ml2 xmms xv zlib"
Comment 1 Matteo Settenvini 2004-03-15 04:15:53 UTC
it happens with my new 2.6.4 kernel too, but not with my 2.6.3 kernel (that I compiled with another version of genkernel). Is it the problem, then? or is it the kernel version?
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-03-21 07:47:20 UTC
I'm closing this bug as a duplicate of #38360 since that deals with the "root mounted twice" issue which causes the problem. The /tmp/.initrd issue is solved in genkernel-3.0.2_rc1 as well as the modules.cache issue.

*** This bug has been marked as a duplicate of 38360 ***