Link to home
Start Free TrialLog in
Avatar of John Gates, CISSP, CDPSE
John Gates, CISSP, CDPSEFlag for United States of America

asked on

fsck problem

When I boot into single user mode and perform an fsck -f no problems are found at all... However when I am booted in normal mode and do an fsck it reports the following:

** /dev/da0s1f (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=2802898  OWNER=qmailq MODE=100644
SIZE=1962 MTIME=May 19 09:53 2006
RECONNECT? no


CLEAR? no

UNREF FILE  I=2802900  OWNER=qmailq MODE=100644
SIZE=48 MTIME=May 19 09:53 2006
RECONNECT? no


CLEAR? no

UNREF FILE  I=2802901  OWNER=qmails MODE=100600
SIZE=18 MTIME=May 19 09:53 2006
RECONNECT? no


CLEAR? no

UNREF FILE  I=2802903  OWNER=qmails MODE=100600
SIZE=21 MTIME=May 19 09:53 2006
RECONNECT? no


CLEAR? no

UNREF FILE  I=2828978  OWNER=vmail MODE=100600
SIZE=2028 MTIME=May 19 09:53 2006
RECONNECT? no


CLEAR? no

UNREF FILE I=8481260  OWNER=mysql MODE=100600
SIZE=2412 MTIME=May 19 09:53 2006
CLEAR? no

UNREF FILE I=8481261  OWNER=mysql MODE=100600
SIZE=0 MTIME=May 19 09:51 2006
CLEAR? no

UNREF FILE I=8481265  OWNER=mysql MODE=100600
SIZE=0 MTIME=May 19 09:51 2006
CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

14001 files, 4160038 used, 34573030 free (14886 frags, 4319768 blocks, 0.0% fragmentation)


Why is this occurring and more importantly why is it not detected in single user mode?

Thanks in advance!
-D-
Avatar of gheist
gheist
Flag of Belgium image

You are observing normal situation. No need to worry.
Because running filesystem changes under the hood and its state at every moment may not be completely consistent.
This is especially true about /var and /tmp

Soft dependencies will cause metadata to be more consistent while system is running.
async mount will make filesystem very nonconsistent.
5.x and 6.x will have more advanced fsck which will allow to mount dirty filesystems, and fsck while filesystems are accessed.

Avatar of John Gates, CISSP, CDPSE

ASKER

So you are saying that my fsck in sigle user mode finding no errors is correct?  I am a little confused by this...
It is described in every UNIX book in detail.
Can you show me 1 example?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial