afa4 [Solved] Can I run fsck to check filesystem consistency in multi user model? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old April 20th, 2010, 13:06
fender0107401's Avatar
fender0107401 fender0107401 is offline
Member
 
Join Date: Nov 2008
Location: China, Beijing.
Posts: 298
Thanks: 41
Thanked 10 Times in 9 Posts
Default Can I run fsck to check filesystem consistency in multi user model?

I found that as a regular user run fsck in multi user model will show me a terrible result.
Code:
> fsck
** /dev/ad12s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
647 files, 20650 used, 233165 free (781 frags, 29048 blocks, 0.3% fragmentation)
** /dev/ad12s1h (NO WRITE)
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=27957309 (4352 should be 384)
CORRECT? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=27957307  OWNER=fender MODE=100600
SIZE=4204 MTIME=Apr 20 20:08 2010 
RECONNECT? no


CLEAR? no

UNREF FILE  I=27957309  OWNER=fender MODE=100644
SIZE=2204360 MTIME=Apr 20 20:08 2010 
RECONNECT? no


CLEAR? no

LINK COUNT FILE I=27957310  OWNER=fender MODE=100600
SIZE=4204 MTIME=Apr 20 20:08 2010  COUNT 2 SHOULD BE 1
ADJUST? 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

4465 files, 570442 used, 123880835 free (355 frags, 15485060 blocks, 0.0% fragmentation)
** /dev/ad12s1d (NO WRITE)
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
6 files, 6 used, 253809 free (41 frags, 31721 blocks, 0.0% fragmentation)
** /dev/ad12s1f (NO WRITE)
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
20 files, 12 used, 2029019 free (75 frags, 253618 blocks, 0.0% fragmentation)
** /dev/ad12s1g (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
314089 files, 2047841 used, 18263557 free (26301 frags, 2279657 blocks, 0.1% fragmentation)
** /dev/ad12s1e (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=377015  OWNER=fender MODE=100600
SIZE=6532 MTIME=Apr 20 20:09 2010 
CLEAR? no

UNREF FILE I=377017  OWNER=fender MODE=100600
SIZE=2688 MTIME=Apr 20 20:09 2010 
CLEAR? no

UNREF FILE I=377018  OWNER=fender MODE=100600
SIZE=2368 MTIME=Apr 20 20:07 2010 
CLEAR? no

** Phase 5 - Check Cyl groups
2556 files, 27602 used, 2001429 free (293 frags, 250142 blocks, 0.0% fragmentation)
>
But, if I reboot and run fsck in single user modle, the system will tell me everything is ok.
__________________
Just be yourself.

Last edited by fender0107401; April 20th, 2010 at 13:11.
Reply With Quote
  #2  
Old April 20th, 2010, 14:14
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,699
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

You can run fsck on a mounted filesystem but it cannot fix the errors.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old April 20th, 2010, 16:14
fender0107401's Avatar
fender0107401 fender0107401 is offline
Member
 
Join Date: Nov 2008
Location: China, Beijing.
Posts: 298
Thanks: 41
Thanked 10 Times in 9 Posts
Default

Thank you for the reply, I got it.
__________________
Just be yourself.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
run fsck on root file system sniper007 General 8 March 16th, 2010 13:36
[Solved] how user@wheel group check the root's mail f5b General 5 March 8th, 2010 08:33
will FreeBSD run on Gateway Model: SX2800-01 phospher System Hardware 5 September 14th, 2009 20:42
(U|Z)FS consistency and delayed allocation Maledictus FreeBSD Development 4 March 18th, 2009 17:28
FreeBSD threading model bsd_newbie Porting New Software 2 February 8th, 2009 18:16


All times are GMT +1. The time now is 13:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0