Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34059 - /etc/mtab~ lockfile not deleted when halting / rebooting / jfs errors
Summary: /etc/mtab~ lockfile not deleted when halting / rebooting / jfs errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Highest blocker
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 13:18 UTC by Marcus J. van Dijk, Jr.
Modified: 2003-12-19 08:47 UTC (History)
1 user (show)

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


Attachments
Kernel config (.config,31.39 KB, text/plain)
2003-11-24 15:59 UTC, Marcus J. van Dijk, Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus J. van Dijk, Jr. 2003-11-21 13:18:05 UTC
normal gentoo system, ~x86.
I get a notice about a stale /etc/mtab~ whenever I reboot my pc or shut it down to later turn it on again. Resolving is not critical, it can still boot without mount problems. (?)

Resolving this:
When I boot from a default gentoo livecd, and try to mount this jfs, I am getting an error from mount telling me it fails to mount.
After that I fsck jfs, and every time it runs (with -pfv-parameters) it's got some errors on it. After fscking, I can properly mount jfs and remove /etc/mtab~.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-11-21 15:30:24 UTC
Can we please have :-

1) Kernel version [ 'uname -a' ]...
2) 'emerge info'...
3) 'emerge -p baselayout' and the resulting version...
Comment 2 Marcus J. van Dijk, Jr. 2003-11-21 15:55:40 UTC
> Can we please have :-
> 1) Kernel version [ 'uname -a' ]...

$ uname -a
Linux serena 2.4.20-gentoo-r7 #1 Tue Nov 18 08:59:25 CET 2003 i686 AMD Athlon(tm) XP 1900+ AuthenticAMD GNU/Linux

> 2) 'emerge info'...

$ emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.4.3.12
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs ccache"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 foomaticdb libg++ libwww mad mikmod png xml2 zlib gdbm berkdb slang svga tcltk 3dfx 3dnow aalib -acl -afs alsa apm arts avi cdr -cjk crypt -cups dga directfb -doc dvd encode -esd -evo fbcon flash gd gif -gnome -gphoto2 gpm gtk gtk2 -gtkhtml imlib innodb ipv6 java jikes jpeg kde -matrox mbox mmx motif mpeg ncurses nls oggvorbis opengl oss pam -pcmcia -pda pdflib perl pic python qt qtmt quicktime readline samba sdl ssl wmf tcpd tiff truetype X xmms xv xft -postgres -spell mozilla moznoirc -mozxmlterm -mozcalendar -mozaccess -mozcompose moznocompose mozp3p"

> 3) 'emerge -p baselayout' and the resulting version...

sys-apps/baselayout-1.8.6.12
Comment 3 Marcus J. van Dijk, Jr. 2003-11-23 02:54:11 UTC
Yet some more info:
sometimes there is another problem with /etc/mtab~ which prevents mount from mounting file systems on boot. And, since data loss occurs, I just lost every e-mail on my system. Thus I am raising the severity of this bug.
Comment 4 Brian Jackson (RETIRED) gentoo-dev 2003-11-23 07:37:00 UTC
If you get errors _every_ time you run fsck on a fs, that's very bad. That usually means something like hardware problems. You could have a hard drive going bad, you could have dma errors that are causing fs corruption. Do me a favor, can you attach any kind of dmesg log (preferrably not from the livecd)? Also can you attach the config you used to compile this kernel?
Comment 5 Marcus J. van Dijk, Jr. 2003-11-24 15:59:15 UTC
Created attachment 21224 [details]
Kernel config
Comment 6 Marcus J. van Dijk, Jr. 2003-11-24 16:00:59 UTC
There are no hardware errors, I'm sure. It has to do with unclean unmounting, mtab
problems or something like that I guess. I have commented out the "rm /forcefsck" 
and then touched /forcefsck so I could make sure the fs is clean before mounting. 
This makes mtab errors disappear. Could it have something to do with usb-fs 
perhaps?
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-26 11:33:29 UTC
~ files are removed right after / is mouted rw, so its not an issue with
baselayout as far as I am conserned.
Comment 8 Marcus J. van Dijk, Jr. 2003-11-28 11:25:57 UTC
Martin,
It seems like the problem occurs because, on halt or reboot, the fs's cannot be remounted read-only - I get that error. After that, I get a prompt "Enter root password for maintenance or press ctrl+d to continue booting" on *shutdown* or *restart*. This lasts for about 10 seconds, after which the system shuts down or restarts.
Comment 9 Marcus J. van Dijk, Jr. 2003-11-29 21:07:35 UTC
Please note again: there are !!'s *after* "umounting filesystems":

"Remounting filesystems readonly"  [!!]

Please help me because I'd like to remove that /forcefsck-file in a safe way. Why can't these file systems be remounted readonly? because they are unmounted one step before? I'm clueless and don't know which init scripts are responsible for this.
Comment 10 Marcus J. van Dijk, Jr. 2003-12-04 13:02:25 UTC
Please also notice the following; Every time my system is "unmounting remaining filesystems read-only", it doesn't seem to work - [!!] is shown. This happens on both of my systems (well actually, one gets a Kernel o0Ops and halts...) 
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-14 10:09:14 UTC
Please update to baselayout-1.8.6.12-r2, as the remount ro issue should be
fixed with it.
Comment 12 Marcus J. van Dijk, Jr. 2003-12-19 08:47:54 UTC
Yes, it works for me now. However, on an unclean reboot, a jfs filesystem doesn't get fsck'ed. This seems to be because it is uncorrectly marked clean still. As I don't think that's a gentoo bug, I'll close this one :)
Thanks Azarah!