Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130143 - baselayout: exasperating question about fsck
Summary: baselayout: exasperating question about fsck
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-16 02:06 UTC by Evgeniy Dushistov
Modified: 2006-04-17 03:49 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 Evgeniy Dushistov 2006-04-16 02:06:07 UTC
I have two partitions: 
/boot ext2
and
/ jfs
every boot I have to answer on exasperating question:
/ - mount readonly
mount: / is busy
WARNING!!!
Running fsck on a mounted file system
may cause SEVERE file system damage.

Do you really want to continue(y/n): n
mount readwrite

I have installed sys-apps/baselayout-1.11.14-r7,
previous version didn't ask me such questions.

Also I have RC_FORCE_AUTO="yes" in /etc/conf.d/rc
Comment 1 SpanKY gentoo-dev 2006-04-16 13:06:59 UTC
you forgot `emerge info`

also, turn on RC_BOOTLOG, reboot, and then post /var/log/boot.msg as an attachment
Comment 2 Evgeniy Dushistov 2006-04-16 22:36:27 UTC
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r3,
2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx
-m3dnow -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /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/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx
-m3dnow -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/evgeniy/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acl alsa apache2 apm arts audiofile avi bash-completion berkdb
bitmap-fonts bzip2 cdr cjk crypt cups curl dlloader doc dri eds emacs emboss
encode esd exif expat fam fbcon firefox flac font-server foomaticdb fortran gd
gdbm gif gimpprint glut gmp gpm gstreamer gtk gtk2 gtkhtml idn imagemagick
imlib ipv6 isdnlog java jpeg junit kde kdeenablefinal kdexdeltas lcms libcaca
libg++ libwww logrotate lua mad maildir mhash mikmod ming mmx mng motif mp3
mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib
perl png ppds pppd python qt quicktime readline recode ruby scanner sdl slang
speex spel spell sqlite sse ssl tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts udev unicode usb vorbis wmf xml xml2 xv xvid zlib linguas_ru
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS
Comment 3 Evgeniy Dushistov 2006-04-17 00:02:40 UTC
>also, turn on RC_BOOTLOG, reboot, and then post /var/log/boot.msg as an
>attachment

Boot log doesn't work on my machine.

If probmel not clear for you, I try exlain.

The boot script mount "/" read-only,
after that it execute fsck.jfs
which ask:
jfsutils-1.1.10/fsck/xchkdsk.c:
printf("\n%s is mounted.\n\nWARNING!!!\n"
                       "Running fsck on a mounted file system\n"
                       "may cause SEVERE file system damage."
                       "\n\n", Vol_Label);
                ask_continue();

Afetr that I so "no",
it remount file system read-write and continue.

From jfs_fsck(8):
WARNING
       jfs_fsck  should  only  be  used to check an unmounted file system or a
       file system that is mounted READ ONLY.  Using jfs_fsck to check a  file
       system  mounted  other  than  READ ONLY could seriously damage the file
       system!
Comment 4 SpanKY gentoo-dev 2006-04-17 00:10:17 UTC
somehow your system loads up with / being read write ... it shouldnt be

the boot scripts attempt to remount / read only, but fail as you can see in your log that you posted:
/ - mount readonly

so you need to find out why your / is loaded up as read write
Comment 5 Evgeniy Dushistov 2006-04-17 00:15:07 UTC
One more thing:
---------------------------------
 case MSG_JFS_VOLUME_IS_MOUNTED:
            if (agg_recptr->parm_options[UFS_CHKDSK_LEVEL0]) {
                /* read only */
                fsck_send_msg(fsck_FSMNTD);
                fsck_send_msg(fsck_MNTFSYS2);
            } else {
                /* is mounted */
                printf("\n%s is mounted.\n\nWARNING!!!\n"
                       "Running fsck on a mounted file system\n"
                       "may cause SEVERE file system damage."
                       "\n\n", Vol_Label);
                ask_continue();
            }
            break;
---------------------------------
How can you see in case if "jfs" mounted,
it check mounted it read-only or not,
if not it ask this "stupid" question, and I can not get "ssh "access".

I have "/usr/portage" partition with "jfs"
# mount /usr/portage/ -o ro
# mount -l | grep /usr/portage
/dev/sda7 on /usr/portage type jfs (ro,noatime) [portage]
# fsck.jfs /dev/sda7
fsck.jfs version 1.1.10, 19-Oct-2005
processing started: 4/17/2006 11.13.37
Using default parameter: -p
The current device is:  /dev/sda7
Block size in bytes:  4096
Filesystem size in blocks:  1279167
**Phase 0 - Replay Journal Log
Filesystem is clean.

So it didn't ask nothing if partition mount read-only,

but during boot, for some reason this didn't work.
Comment 6 Evgeniy Dushistov 2006-04-17 02:14:04 UTC
>so you need to find out why your / is loaded up as read write

here is more detailed log:

>> Acitvating udev
>> Determining root device...
>>Mounting root...
>>Booting (initramfs)...
INIT: version 2.86 booting
...
* Mounting /dev/udev...
* Populating /dev with saved device nodes
...
udevd-event[]: find_free_number: %e is deprecated
...
* Remounting root file system read-only
mount / is busy
* Checking root filesystem
Comment 7 Evgeniy Dushistov 2006-04-17 03:49:35 UTC
I should say, that the problem as I described above,
happend not always, often but not always.

I suppose that somebody doesn't "unmount" before "/" is mounted.
I add in /etc/init.d/checkroot:
start() {
    sleep 5 <---
    local retval=0

and now seems all ok.
I have
/etc/conf.d/rc
RC_PARALLEL_STARTUP="no"
and before "checkroot"
happend only 
mounting /proc
mount /sys
and starting udev

so I suppose this is udev problem