I have been testing something and had to reboot a computer with ext3 filesystem. Either because of a buggy kernel or because of buggy e2fs, probably then ~1.40_pre20070411 the init.d script ran fsck without any interaction and screwed my filesystem, which was cleanly unmounted but just was scheduled to do fsck after 38 clean re-mounts. It is too late to press the 'I' button which would hopefully give me a way to run it interactively. I suggest to remove -a and -p options from fsck options in this script. If Gentoo user is able to install gentoo and recomplie apps and handle emerge, then he/she definitely can answer fsck questions. Moreover, in this particular case I would rather test another fsck and kernel first. Very very bad idea to make it non-interactive, sorry for the words. The full thread is at http://marc.info/?l=linux-kernel&m=117947961510726&w=2
(In reply to comment #0) > Very very bad idea to make it non-interactive, sorry for the words. Will clearly rock on remote systems; there's nothing like driving a couple of hours just to run a scheduled interactive fsck. Get the real bug fixed instead of screwing lots of people like this. :X
baselayout-2 will do fsck -p by default. -a has been removed. -p (preen) should be safe by nature. If not then you have a buggy fsck. We also use -n if not doing -p so the fsck is non interactive (as init scripts should be) but we won't actually fix the disk, leaving it up to the user. Re-open if you disagree.
So how could it happen that my filesystem got modified without my interaction? /dev/hda3 has been mounted 38 times without being checked, check forced HTREE directory inode 1163319 has an invalid root node. HTREE INDEX CLEARED Entry '..' in .../??? (5570587) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5570620) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5570625) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5570567) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5570614) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5570603) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5586948) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5586957) has deleted/unused inode 5570561. CLEARED. /dev/hda3: Entry '..' in .../??? (5701636) has deleted/unused inode 5570561. CLEARED. Unconnected directory inode 5570567 (...) /dev/hda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) I can provide an image snapshot in a while so you could see it was one of the init.d scripts which did the job. ;-)
Sorry, you haven't stated which baselayout version you have. I stated -a has been removed in baselayout-2 and -p should be safe as it only fixes minor errors. I'll assume you're using baselayout-1 where this behaviour probably won't be changed.
OK, so I went to just pray and fix the fsck errors ... about 200 modifications .. grr. Seems temporary files were not properly deleted, so the data in lost+found contains my private emails in mbox format probably as downloaded through pop3 and at least parts of some config.h files, maybe created during configure tests or whatever ... Anyway, is this what you wanted? ;-) $ emerge --info Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.20.6 i686) ================================================================= System uname: 2.6.20.6 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 15 May 2007 12:30:02 +0000 dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.3.6-r2, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en cs cz" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="FFmpeg X Xaw3d a52 aac aalib acl acpi alsa amr apache2 asf ati avi berkdb bitmap-fonts bonobo caca cairo cdparanoia cdr cli cpudetection cracklib crypt cscope ctype cups curl dba dbus dga directfb divx divx5 divx5linux dri dts dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss emf encode ethereal evo f77 faad faad2 fam fame fbcon ffmpeg firefox flac flash fortran fvwm fvwm2 gb gcj gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal highvolume i8x0 icc iconv ieee1394 ifc imagemagick imlib imlib2 inifile innodb isdnlog ithreads java jpeg kerberos lcms leim libcaca libedit libg++ libwww live lzo mad matroska mcal mesa mhash midi mikmod ming mmx mmx2 mmxext mng modplug motif mozilla mp3 mpeg mule musepack mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdf pdflib perl plotutils plugin png poppler ppds pppd pthread pthreads python qt qt3 qt3support qt4 qtx quicktime readline reflection rtc samba scanner scp server session slp spell spl sse sse2 ssl stroke svg tcl tcltk tcpd tetex theora thread threads tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vorbis win32codecs winvidix wmf x264 x86 xanim xml xml2 xorg xosd xprint xv xvid xvmc zeo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
At the very moment am with baselayout-1.12.10-r4.
(In reply to comment #6) > At the very moment am with baselayout-1.12.10-r4. As I said, baselayout-1 probably won't be fixed for this and it's already fixed in baselayout-2