Re: fs again, damnit

Ragnar Hojland Espinosa (root@lightside.ddns.org)
Wed, 22 Jul 1998 21:14:17 +0200 (MET DST)


Yuck yuck yuck.. time to do some serious backups. Text below has been
slightly edited for readability and brevity. /dev/hda2 showed a few free
blocks count wrong, but no data loss. 2.7.2.3 UP 2.1.111pre1 no IDE DMA.

Btw, hows that clean umounting and fscking after forces check?

lightside:~# umount /dev/hdc2
lightside:~# date
Wed Jul 22 20:18:46 MET DST 1998
lightside:~# fsck /dev/hdc2
Parallelizing fsck version 1.12 (9-Jul-98)
e2fsck 1.12, 9-Jul-98 for EXT2 FS 0.5b, 95/08/09
/dev/hdc2 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Duplicate blocks found... invoking duplicate block passes.
Pass 1B: Rescan for duplicate/bad blocks
Duplicate/bad block(s) in inode 34274: 149688 150755
Duplicate/bad block(s) in inode 34435: 149688
Duplicate/bad block(s) in inode 34524: 150755
Pass 1C: Scan directories for inodes with dup blocks.
Pass 1D: Reconciling duplicate blocks
(There are 3 inodes containing duplicate/bad blocks.)

File /root/devel/glademm-0.1.3/src/writers/ruler.o (inode #34524, mod time
Tue Jul 21 13:41:53 1998)
has 1 duplicate block(s), shared with 1 file(s):
/root/devel/starjammer/3dsload.c (inode #34274, mod time Mon May 11
04:53:22 1998)
Clone duplicate/bad blocks<y>?

File /root/devel/glademm-0.1.3/src/writers/radiobutton.o (inode #34435,
mod time Tue Jul 21 13:41:36 1998)
has 1 duplicate block(s), shared with 1 file(s):
/root/devel/starjammer/3dsload.c (inode #34274, mod time Mon May 11
04:53:22 1998)
Clone duplicate/bad blocks<y>? yes

File /root/devel/starjammer/3dsload.c (inode #34274, mod time Mon May 11
04:53:22 1998)
has 2 duplicate block(s), shared with 2 file(s):
/root/devel/glademm-0.1.3/src/writers/ruler.o (inode #34524, mod
time Tue Jul 21 13:41:53 1998)
/root/devel/glademm-0.1.3/src/writers/radiobutton.o (inode #34435,
mod time Tue Jul 21 13:41:36 1998)
Duplicated blocks already reassigned or cloned.

Pass 2: Checking directory structure
Entry '..' in ??? (40) has deleted/unused inode 36289. Clear<y>? yes

Entry '..' in ??? (2020) has deleted/unused inode 36290. Clear<y>? yes

Entry '..' in ??? (4037) has deleted/unused inode 36290. Clear<y>? yes

Entry '..' in ??? (8074) has deleted/unused inode 36290. Clear<y>?

[snipped a couple]

Entry 'gbcheckbutton.o' in /root/devel/glade-0.3.1/gbwidgets (30441) has
deleted/unused inode 30513. Clear<y>? yes

Entry 'gbradiobutton.o' in /root/devel/glade-0.3.1/gbwidgets (30441) has
deleted/unused inode 30514. Clear<y>? yes

Entry 'gboptionmenu.o' in /root/devel/glade-0.3.1/gbwidgets (30441) has
deleted/unused inode 30515. Clear<y>? yes

Entry 'gbcombo.o' in /root/devel/glade-0.3.1/gbwidgets (30441) has
deleted/unused inode 30516. Clear<y>? yes

Entry 'texmf' in /usr/lib (32257) has deleted/unused inode 36289.
Clear<y>? yes
Entry '..' in ??? (32274) has deleted/unused inode 36290. Clear<y>?

Entry '..' in ??? (36314) has deleted/unused inode 36289. Clear<y>? yes

Entry '..' in ??? (36315) has deleted/unused inode 36289. Clear<y>? yes

Entry '..' in ??? (38305) has deleted/unused inode 36289. Clear<y>? yes

Entry '..' in ??? (40321) has deleted/unused inode 36289. Clear<y>? yes

Entry 'cm' in ??? (40321) has deleted/unused inode 36290. Clear<y>? yes

Entry '..' in ??? (40322) has deleted/unused inode 36290. Clear<y>? yes

Entry 'misc' in ??? (40322) has deleted/unused inode 36291. Clear<y>? yes

Entry '..' in ??? (42388) has deleted/unused inode 36290. Clear<y>? yes

Entry '..' in ??? (42412) has deleted/unused inode 36289. Clear<y>? yes

Entry '..' in ??? (42438) has deleted/unused inode 36289. Clear<y>? yes

Entry 'gdk' in /root/devel/gtk+-1.0.4 (44455) has deleted/unused inode
34394. Clear<y>? yes

[snipped some more]

Pass 3: Checking directory connectivity
Unconnected directory inode 30252 (...)
Connect to /lost+found<y>? yes

Unconnected directory inode 32278 (...)
Connect to /lost+found<y>? yes

Unconnected directory inode 40321 (...)
Connect to /lost+found<y>? yes

[snipped]

Pass 4: Checking reference counts
Inode 40 ref count is 4, should be 3. Fix<y>? yes

Inode 2020 ref count is 5, should be 4. Fix<y>? yes

Inode 4037 ref count is 3, should be 2. Fix<y>? yes

[snipped]

Unattached inode 34397
Connect to /lost+found<y>? yes

Inode 34397 ref count is 2, should be 1. Fix<y>? yes

Unattached inode 34398
Connect to /lost+found<y>? yes

[snipped]

Free blocks count wrong for group #0 (2635, counted=2633).
Fix<y>? yes

Free blocks count wrong for group #5 (2193, counted=2228).
Fix<y>? yes

Free blocks count wrong for group #15 (0, counted=369).
Fix<y>? yes

[snipped]

Result? Missing stuff and a /lost+found full of files and directories.

____/| Ragnar Hojland (ragnar@lightside.ddns.org) Fingerprint 94C4B
\ o.O| 2F0D27DE025BE2302C
=(_)= "Thou shalt not follow the NULL pointer for 104B78C56 B72F0822
U chaos and madness await thee at its end." hkp://keys.pgp.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html