| Summary: | baselayout: exasperating question about fsck | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Evgeniy Dushistov <dushistov> |
| Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Evgeniy Dushistov
2006-04-16 02:06:07 UTC
you forgot `emerge info` also, turn on RC_BOOTLOG, reboot, and then post /var/log/boot.msg as an attachment 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 >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!
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 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.
>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 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
|