power failure file corruption.

Andrew Xiang andrewxiang at gmail.com
Wed Dec 10 15:27:29 EST 2008


While I am reading a file(mounted as squahsfs) and writing a new file
in a jffs2 partition, power failure happened, the funny thing is that
the file I am only reading got corrupted. I don't care if the new file
is corrupt because power failure happened in the middle.

Below is a dump using jffs2dump, Is there a better utility that can
tell me more about the corruption?


# /mnt/nfs/builds/mtd-utils-1.0.1/jffs2dump -vc /mnt/ffs/opt-images/opt2
[15782.659000] Data CRC 9b86b503 != calculated CRC f30eb2c4 for node at 01ae508c
Wrong bitmask  at  0x00000000, 0x7368
Wrong hdr_crc  at  0x000149f8, 0xb097541a instead of 0x59298659
Wrong bitmask  at  0x000149fc, 0xdd24
Wrong hdr_crc  at  0x0003b378, 0x5815167f instead of 0x69e99abd
Wrong bitmask  at  0x0003b37c, 0x0470
Wrong hdr_crc  at  0x0003fa54, 0x9824d6ff instead of 0x84fd7390
Wrong bitmask  at  0x0003fa58, 0x1f77
Wrong hdr_crc  at  0x000ea838, 0xd385f17d instead of 0x30147257
Wrong bitmask  at  0x000ea83c, 0x5da7
Wrong hdr_crc  at  0x00140d6c, 0x7e6e5333 instead of 0x7a4b9e57
Wrong bitmask  at  0x00140d70, 0xd6e6
Wrong hdr_crc  at  0x00159ba8, 0xc0d1a9b2 instead of 0x038d2e30
Wrong bitmask  at  0x00159bac, 0x718b
Wrong hdr_crc  at  0x001782d0, 0x8fca9394 instead of 0xfcd64501
Wrong bitmask  at  0x001782d4, 0x6b8d
Wrong hdr_crc  at  0x0019e0c8, 0xe19f7086 instead of 0x8b833bc9
Wrong bitmask  at  0x0019e0cc, 0x31dc
Wrong hdr_crc  at  0x00204090, 0x7688ff48 instead of 0xd7d76241
Wrong bitmask  at  0x00204094, 0xd076
Wrong hdr_crc  at  0x00210610, 0x1845eb0a instead of 0x0e391d66
Wrong bitmask  at  0x00210614, 0x7ac0
Wrong hdr_crc  at  0x002de420, 0x1f126541 instead of 0x154607a6
Wrong bitmask  at  0x002de424, 0xb685
Wrong hdr_crc  at  0x00301fac, 0xd9a556c4 instead of 0x236e4537
Wrong bitmask  at  0x00301fb0, 0xc975
Wrong hdr_crc  at  0x0034775c, 0x129e9c23 instead of 0x61af2646
Wrong bitmask  at  0x00347760, 0x96ea
Wrong hdr_crc  at  0x0037743c, 0x2b1acec7 instead of 0xc4d9ade4
Wrong bitmask  at  0x00377440, 0xb672
Wrong hdr_crc  at  0x00394160, 0x48b0afbb instead of 0x23a395bc
Wrong bitmask  at  0x00394164, 0xd6b0
Wrong hdr_crc  at  0x003a9084, 0x56784033 instead of 0x23a737de
Wrong bitmask  at  0x003a9088, 0xdf0b
Wrong hdr_crc  at  0x003b132c, 0x6ccf713c instead of 0x41ebba64
Wrong bitmask  at  0x003b1330, 0xeac2
Wrong hdr_crc  at  0x004cfaa4, 0x117aa44d instead of 0x2a0582c9
Wrong bitmask  at  0x004cfaa8, 0x4577
Wrong hdr_crc  at  0x00592ad8, 0x2456bca9 instead of 0x0f2def7f
Wrong bitmask  at  0x00592adc, 0x39d9
Wrong hdr_crc  at  0x005d54f0, 0xbe5f2551 instead of 0x3cacbae3
Wrong bitmask  at  0x005d54f4, 0xfcfe
Empty space: 0, dirty space: 12984320



More information about the linux-mtd mailing list