Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Jul 2002 21:41:14 -0700
From:      Peter Wemm <peter@wemm.org>
To:        current@freebsd.org
Subject:   fsck hosed?
Message-ID:  <20020708044114.22412380A@overcee.wemm.org>

next in thread | raw e-mail | index | archive | help
It seems to be aborting the 'process all file systems' loop when it modifies
a file system.  eg:

WARNING: / was not properly dismounted
Enter full pathname of shell or RETURN for /bin/sh: 
# fsck -y
** /dev/da0a
** Last Mounted on /
** Root filesystem
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
509 files, 38827 used, 205772 free (92 frags, 25710 blocks, 0.0% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****
** /dev/da0e
** 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
9907 files, 154990 used, 826537 free (2393 frags, 103018 blocks, 0.2% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****
** /dev/da0f
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? yes

SUMMARY INFORMATION BAD
SALVAGE? yes

BLK(S) MISSING IN BIT MAPS
SALVAGE? yes

146 files, 580 used, 122131 free (83 frags, 15256 blocks, 0.1% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****

***** FILE SYSTEM WAS MODIFIED *****
#

[[[ Uhh, what?  What about the rest of the file systems? ]]]

# cat /etc/fstab
#Device                 Mountpoint      FStype  Options         Dump    Pass#
/dev/da0a               /               ufs     rw              1       1
/dev/da0b               none            swap    sw              0       0
/dev/da0e               /usr            ufs     rw              2       2
/dev/da0f               /var            ufs     rw              2       2
/dev/da0g               /tmp            ufs     rw              2       2
/dev/da0h               /s              ufs     rw,nosuid,nodev 2       2
/dev/da1e               /t              ufs     rw,nosuid,nodev 2       2
/dev/cd0a               /cdrom          cd9660  ro,noauto       0       0
freefall:/c             /freefall/c     nfs     ro,bg,intr,soft,nodev,nosuid 0 0
freefall:/d             /freefall/d     nfs     rw,bg,intr,soft,nodev,nosuid 0 0
# fsck -y
** /dev/da0a
** Last Mounted on /
** Root filesystem
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
509 files, 38827 used, 205772 free (92 frags, 25710 blocks, 0.0% fragmentation)
** /dev/da0e
** 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
9907 files, 154990 used, 826537 free (2393 frags, 103018 blocks, 0.2% fragmentation)
** /dev/da0f
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
146 files, 580 used, 122131 free (83 frags, 15256 blocks, 0.1% fragmentation)
** /dev/da0g
** 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
4 files, 3 used, 122708 free (20 frags, 15336 blocks, 0.0% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****
** /dev/da0h
** Last Mounted on /s
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
49948 files, 494996 used, 5375777 free (2105 frags, 671709 blocks, 0.0% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****
** /dev/da1e
** Last Mounted on /t
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
18285 files, 205326 used, 4098363 free (2715 frags, 511956 blocks, 0.1% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****
# fsck -p
/dev/da0a: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/da0a: clean, 205772 free (92 frags, 25710 blocks, 0.0% fragmentation)
/dev/da0e: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/da0e: clean, 826537 free (2393 frags, 103018 blocks, 0.2% fragmentation)
/dev/da1e: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/da1e: clean, 4098363 free (2715 frags, 511956 blocks, 0.1% fragmentation)
/dev/da0f: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/da0f: clean, 122131 free (83 frags, 15256 blocks, 0.1% fragmentation)
/dev/da0g: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/da0g: clean, 122708 free (20 frags, 15336 blocks, 0.0% fragmentation)
/dev/da0h: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/da0h: clean, 5375777 free (2105 frags, 671709 blocks, 0.0% fragmentation)
# halt

Notice how it completely exited after da0f and printing "WAS MODIFIED" ?

Not to mention how we cannot shut down cleanly. :-(

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020708044114.22412380A>