Re: Filesystem with errors

Wojtek Slusarczyk (wojtek@SHADOW.EU.ORG)
Wed, 28 Oct 1998 09:04:30 +0100 (CET)


On Tue, 27 Oct 1998, Theodore Y. Ts'o wrote:

Hello,

> These are actually very minor filesystem errors; e2fsck should have
> absolutely no trouble fixing this kind of damage.
>
> What makes you think that e2fsck is having trouble repairing this
> damage? What messages is it printing out?

O.K Ted, look:

magellan /root:$ umount /export
magellan /root:$ fsck -p /dev/sda3

Parallelizing fsck version 1.12 (9-Jul-98)
/dev/sda3 contains a file system with errors, check forced.
/dev/sda3: 905/247808 files (33.3% non-contiguous), 504530/987997 blocks

magellan /root:$ mount /dev/sda3
EXT2-fs error (device 08:03): ext2_check_blocks_bitmap: Wrong free
blocks count
for group 12, stored = 6980, counted = 6978
EXT2-fs error (device 08:03): ext2_check_blocks_bitmap: Wrong free
blocks count
for group 15, stored = 4805, counted = 4803
EXT2-fs error (device 08:03): ext2_check_blocks_bitmap: Wrong free
blocks count
for group 40, stored = 1176, counted = 1175
EXT2-fs error (device 08:03): ext2_check_blocks_bitmap: Wrong free
blocks count
for group 89, stored = 1255, counted = 1251

magellan /root:$ umount /export
magellan /root:$ e2fsck -pfc /dev/sda3
/dev/sda3: 905/247808 files (33.3% non-contiguous), 504530/987997 blocks

magellan /root:$ mount /dev/sda3
EXT2-fs error (device 08:03): ext2_check_blocks_bitmap: Wrong free
blocks count
for group 12, stored = 6980, counted = 6978
..............................................

magellan /root:$ umount /export
magellan /root:$ e2fsck -c /dev/sda3
e2fsck 1.12, 9-Jul-98 for EXT2 FS 0.5b, 95/08/09
Checking for bad blocks (read-only test): done
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences: -300061 -316422 -316445 +328029 +729821
+732381
Fix<y>? yes

Block bitmap differences: -729821 -732358 -732381
Fix<y>?
...............................
/dev/sda3: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda3: 905/247808 files (33.3% non-contiguous), 504530/987997 blocks

magellan /root:$ mount /dev/sda3
EXT2-fs error (device 08:03): ext2_check_blocks_bitmap: Wrong free
blocks count
for group 12, stored = 6980, counted = 6978
EXT2-fs error (device 08:03): ext2_check_blocks_bitmap: Wrong free
blocks count
for group 29, stored = 6048, counted = 6047
................................................................
magellan /root:$ cat /etc/fstab
/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext2 defaults 1 1
/dev/sda3 /export ext2 nodev,nosuid 1 2
/dev/sdb1 /dsk1 ext2 nodev,nosuid 1 3
/dev/fd0 /mnt/floppy ext2 noauto 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0
pts /dev/pts devpts gid=5,mode=620 0 0

regards,

-- 
Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu

- 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.tux.org/lkml/