Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Oct 2014 13:23:21 +0800
From:      Erich Dollansky <erichsfreebsdlist@alogt.com>
To:        freebsd-stable@freebsd.org
Subject:   fsck after recovery, journal seems to be wrong
Message-ID:  <20141009132321.25e91ead@X220.alogt.com>

next in thread | raw e-mail | index | archive | help
Hi,

my machine rebooted last night while doing a backup and formating a
device.

Ok, can happen, but the difference between an fsck useing the journal
and a full fsck without using the journal surprises me a bit.

While fsck with the journal showed no error, a full fsck came to this
result: 

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] y

SUMMARY INFORMATION BAD
SALVAGE? [yn] y

BLK(S) MISSING IN BIT MAPS
SALVAGE? [yn] y

uname -a says:

FreeBSD X220.alogt.com 10.1-RC1 FreeBSD 10.1-RC1 #8 r272672: Tue Oct  7
14:35:32 WITA 2014     erich@X220.alogt.com:/usr/obj/usr/src/sys/X220
amd64 

I did not realise any damage until just now when I found one file
missing. This made me doing the fsckes. 

At the end, I also found the missing file under a different name in the
proper directory. It could have been that the machine crashed while
kate was trying to save this file and left it with the extention
cppgh6857.new. It seems that nothing is missing from the file.

Erich

PS:

The full information:

[X220]/usr (root) > fsck -t
ufs /dev/label/H500GB2home.eli ** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] y

** SU+J Recovering /dev/label/H500GB2home.eli
** Reading 33554432 byte journal from inode 27.






[X220]/usr (root) > fsck -t ufs /dev/label/H500GB2home.eli
** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] y

** SU+J Recovering /dev/label/H500GB2home.eli
** Reading 33554432 byte journal from inode 27.



=======================

fsck -t ufs /dev/label/H500GB2home.eli
** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] y

** SU+J Recovering /dev/label/H500GB2home.eli
** Reading 33554432 byte journal from inode 27.

RECOVER? [yn] y

** Building recovery table.
** Resolving unreferenced inode list.
** Processing journal entries.

***** FILE SYSTEM MARKED CLEAN *****
[X220]/usr (root) > fsck -t ufs /dev/label/H500GB2home.eli
** /dev/label/H500GB2home.eli

USE JOURNAL? [yn] n

** Skipping journal, falling through to full fsck

** Last Mounted on /usr/home
** 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? [yn] y

SUMMARY INFORMATION BAD
SALVAGE? [yn] y

BLK(S) MISSING IN BIT MAPS
SALVAGE? [yn] y

2799785 files, 87344020 used, 12632063 free (131743 frags, 1562540
blocks, 0.1% fragmentation)

***** FILE SYSTEM IS CLEAN *****

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




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