From: carlj@hpcvmcdj.cv.hp.com (Carl Johnson) Subject: Re: SLS 1.03: Massive file system corruption? Date: Tue, 10 Aug 1993 00:09:40 GMT
I have gotten a couple responses by email (thanks guys!) with
suggestings and asking for further information, so I am adding part of
the messages from a e2fsck (not the full 800 lines) as well as the
partition information. I had been using the same partitions for the SLS
1.03 as I had been using successfully for SLS 1.01.
I just tried another installation to see exacly what messages I did
receive when running the upgrade. I first did an e2mkfs and then ran
e2fsck -fvts which reported no problems. I then ran a full SLS
installation of 1.03 which reported no errors until the end, and then
reported several cases of freeing already freed blocks while it was
setting permissions. Another e2fsck -fvts gave the results that I show
part of later. I did not fill up the partition, so that shouldn't have
been the problem. It does now show several bad blocks, separated by
about 2-3k blocks each, a disturbing regularity even though not exact.
Any suggestions would be much appreciated.
First the fdisk information on my partitions:
=========================================
Disk /dev/sda: 64 heads, 32 sectors, 496 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/sda1 1 1 30 30704 4 DOS 16-bit <32M
/dev/sda2 31 31 157 130048 81 Linux/MINIX
/dev/sda3 158 158 170 13312 82 Linux swap
/dev/sda4 171 171 496 333824 5 Extended
/dev/sda5 171 171 268 100351+ 81 Linux/MINIX
/dev/sda6 269 269 280 12287+ 81 Linux/MINIX
/dev/sda7 281 281 388 110591+ 81 Linux/MINIX
/dev/sda8 389 389 496 110591+ 81 Linux/MINIX
Disk /dev/hda: 7 heads, 35 sectors, 845 cylinders
Units = cylinders of 245 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/hda1 * 1 1 844 103372+ 6 DOS 16-bit >=32M
Now the fstab that I use:
===================================
/dev/hda1 /dos1 ignore defaults 0 0 # 101MB, dos 6.0
/dev/sda1 /dos2 ignore defaults 0 0 # 30MB, extra dos
/dev/sda2 / ext2 defaults 0 1 # 127MB, Linux root
/dev/sda3 none swap defaults 0 0 # 13MB, Linux swap
/dev/sda5 /home ext2 defaults 0 2 # 98MB, Linux /home
/dev/sda6 /ext1 ignore defaults 0 0 # 12MB, extra
/dev/sda7 /ext2 ignore defaults 0 0 # 108MB, extra
/dev/sda8 /ext3 ignore defaults 0 0 # 108MB, extra
none /proc proc defaults
Now part of the e2fsck -ftvs:
(this is long even though I removed much of it)
=======================================
e2fsck 0.3, 93/04/22 for EXT2 FS 0.3a
Reading tables
Block size = 1024
Fragment size = 1024
32512 inodes
130048 blocks
6502 reserved blocks
First data block = 1 (1)
30577 free blocks
24533 free inodes
16 groups (1 descriptors block)
Group 0: block bitmap at 3, inode bitmap at 4, inode table at 5
5826 free blocks, 1558 free inodes, 16 used directories
Group 1: block bitmap at 8195, inode bitmap at 8196, inode table at 8197
4536 free blocks, 1585 free inodes, 21 used directories
Group 2: block bitmap at 16387, inode bitmap at 16388, inode table at 16389
0 free blocks, 1528 free inodes, 33 used directories
Group 3: block bitmap at 24579, inode bitmap at 24580, inode table at 24581
200 free blocks, 1603 free inodes, 45 used directories
Group 4: block bitmap at 32771, inode bitmap at 32772, inode table at 32773
4147 free blocks, 1580 free inodes, 20 used directories
Group 5: block bitmap at 40963, inode bitmap at 40964, inode table at 40965
2097 free blocks, 1600 free inodes, 38 used directories
Group 6: block bitmap at 49155, inode bitmap at 49156, inode table at 49157
5205 free blocks, 1521 free inodes, 12 used directories
Group 7: block bitmap at 57347, inode bitmap at 57348, inode table at 57349
437 free blocks, 1229 free inodes, 22 used directories
Group 8: block bitmap at 65539, inode bitmap at 65540, inode table at 65541
0 free blocks, 1600 free inodes, 37 used directories
Group 9: block bitmap at 73731, inode bitmap at 73732, inode table at 73733
0 free blocks, 1494 free inodes, 17 used directories
Group 10: block bitmap at 81923, inode bitmap at 81924, inode table at 81925
0 free blocks, 1603 free inodes, 39 used directories
Group 11: block bitmap at 90115, inode bitmap at 90116, inode table at 90117
0 free blocks, 1562 free inodes, 26 used directories
Group 12: block bitmap at 98307, inode bitmap at 98308, inode table at 98309
0 free blocks, 1523 free inodes, 18 used directories
Group 13: block bitmap at 106499, inode bitmap at 106500, inode table at 106501
165 free blocks, 1370 free inodes, 44 used directories
Group 14: block bitmap at 114691, inode bitmap at 114692, inode table at 114693
4608 free blocks, 1565 free inodes, 23 used directories
Group 15: block bitmap at 122883, inode bitmap at 122884, inode table at 122885
3356 free blocks, 1604 free inodes, 56 used directories
8192 blocks per group
8192 fragments per group
2032 inodes per group
Checking root directory
Reading bad blocks list
Testing the disk for bad blocks
2625... 4769... 7073... 9377... 11697... 14017... 16337... 18625... 20929... 23249... 25553... 27873... 30193... 32481... 34785... 37105... 39425... 41745... 44065... 46337... 48641... 50961... 53265... 55569... 57889... 60177... 62481... 64785... 67105... 69409... 71729... 74017... 76321... 78641... 80961... 83281... 85601... 87889... 90193... 92513... 94833... 97153... 99473... 101761... 104065... 106385... 108705... 111025... 113345... 115633... 117937... 120257... 122561... 124881... 127185... 129457..
Bad blocks list: 0
Reading directories and checking files
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/ispell.elc'. Clear? no
Block nr 1852597620 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.elc'. Remove block? no
Block nr 1629516901 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.elc'. Remove block? no
Block nr 1948279918 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.elc'. Remove block? no
Block nr 1701735525 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.elc'. Remove block? no
Block nr 1919903342 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.el'. Remove block? no
517 similar lines removed :->
Block nr 1769234797 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.el'. Remove block? no
Block nr 170815087 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.el'. Remove block? no
Block nr 1852785418 > BLOCKS (130048) in file `/usr/local/emacs/lisp/ispell.el'. Remove block? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/spell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/spell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/spell.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/rnewspost.elc'. Clear? no
Block 11264 has been used before. Now in file `/usr/local/emacs/lisp/rnewspost.elc'. Clear? no
20 similar lines removed
Block 11520 has been used before. Now in file `/usr/local/emacs/lisp/tex-start.el'. Clear? no
Block 11520 has been used before. Now in file `/usr/local/emacs/lisp/studly.elc'. Clear? no
Block 39168 in file `/usr/bin/grodvi' is marked not in use. Mark in use? no
Block 39168 has been used before. Now in file `/usr/bin/grodvi'. Clear? no
47 similar lines removed
Block 11264 has been used before. Now in file `/usr/src/net-src/telnet/README'. Clear? no
Block 11520 has been used before. Now in file `/usr/src/net-src/telnet/telnet/telnet.c'. Clear? no
Block 15376 in file `/usr/X386/lib/X11/fonts/75dpi/courR14.pcf' is marked not in use. Mark in use? no
Block 80900 has been used before. Now in file `/usr/X386/lib/X11/fonts/75dpi/courR14.pcf'. Clear? no
Block 15400 in file `/usr/X386/lib/X11/fonts/75dpi/courR14.pcf' is marked not in use. Mark in use? no
Block 27394 has been used before. Now in file `/usr/g++-include/gen/RAVLMap.ccP'. Clear? no
Block 27420 has been used before. Now in file `/usr/g++-include/gen/RAVLMap.ccP'. Clear? no
Inode 14481 marked not used, but used for file '/usr/TeX/lib/tex/fonts/black.tfm'.
Mark in use? no
Block 63232 has been used before. Now in file `/usr/TeX/lib/tex/fonts/black.tfm'. Clear? no
Inode 14482 marked not used, but used for file '/usr/TeX/lib/tex/fonts/blacklj.tfm'.
Mark in use? no
Block 63232 has been used before. Now in file `/usr/TeX/lib/tex/fonts/blacklj.tfm'. Clear? no
Inode 14483 marked not used, but used for file '/usr/TeX/lib/tex/fonts/bline10.tfm'.
Mark in use? no
Inode 14484 marked not used, but used for file '/usr/TeX/lib/tex/fonts/chess10.tfm'.
Mark in use? no
Block 63488 has been used before. Now in file `/usr/TeX/lib/tex/fonts/chess10.tfm'. Clear? no
Inode 14485 marked not used, but used for file '/usr/TeX/lib/tex/fonts/chess20.tfm'.
Mark in use? no
Block 63488 has been used before. Now in file `/usr/TeX/lib/tex/fonts/chess20.tfm'. Clear? no
Inode 14486 marked not used, but used for file '/usr/TeX/lib/tex/fonts/chess30.tfm'.
Mark in use? no
Block 63488 has been used before. Now in file `/usr/TeX/lib/tex/fonts/chess30.tfm'. Clear? no
Inode 14487 marked not used, but used for file '/usr/TeX/lib/tex/fonts/chessfig10.tfm'.
Mark in use? no
Block 63488 has been used before. Now in file `/usr/TeX/lib/tex/fonts/chessfig10.tfm'. Clear? no
Inode 14488 marked not used, but used for file '/usr/TeX/lib/tex/fonts/circle10.tfm'.
Mark in use? no
Block 63488 has been used before. Now in file `/usr/TeX/lib/tex/fonts/circle10.tfm'. Clear? no
Block 63488 has been used before. Now in file `/usr/TeX/lib/tex/fonts/cmr7.300pk'. Clear? no
Searching for lost inodes
Checking inodes counts
Inode 14481 used, not counted in the bitmap. Mark in the bitmap? no
7 similar lines removed
Inode 18441, i_nlinks=0, counted=1. Set i_nlinks to count? no
Free inodes count wrong (24533, counted=24525). Repair? no
25 similar lines removed
Checking blocks count
Block 15376: marked not in use, counted=1
Mark? no
Block 15400: marked not in use, counted=1
Mark? no
Block 39168: marked not in use, counted=25
Mark? no
Block 63473: marked in use, no file uses it. Unmark? no
Block 63481: marked in use, no file uses it. Unmark? no
124 similar lines removed
Checking file sizes
Inode 18441, incorrect size, 17920 (counted = 550912). Set size to counted? no
Inode 18441, i_blocks wrong 0 (counted=538) .Set i_blocks to counted? no
Inode 18442, incorrect size, 39168 (counted = 550912). Set size to counted? no
Inode 18442, i_blocks wrong 0 (counted=538) .Set i_blocks to counted? no
Inode 18443, i_blocks wrong 0 (counted=6) .Set i_blocks to counted? no
Inode 18444, i_blocks wrong 0 (counted=18) .Set i_blocks to counted? no
Inode 18445, i_blocks wrong 0 (counted=20) .Set i_blocks to counted? no
Inode 18446, i_blocks wrong 0 (counted=10) .Set i_blocks to counted? no
Inode 18447, i_blocks wrong 0 (counted=2) .Set i_blocks to counted? no
Inode 18448, i_blocks wrong 0 (counted=2) .Set i_blocks to counted? no
7979 inodes used (24%)
99471 blocks used (76%)
0 bad blocks
7247 regular files
467 directories
68 character device files
95 block device files
3 fifos
139 links
106 symbolic links (106 fast symbolic links)
0 sockets
======
8125 files
--Carl Johnson carlj@cv.hp.com