corrupted file on jffs2 mtd on dataflash AT45DB2562

Yomie Chan yomiechan at octopuscards.com
Mon Jul 5 21:08:18 EDT 2004


Dear all:
Can someone give me some comment on how to detect this kinda error before
hand?
Seems to me that the "i-node" table or the file itself is partially
corrupted or what causes that?
Dataflash is getting old?

I dont understand how this error would occur. Please give me some hands

looking forward for your reply
=================================================================
[root at AT91RM9200DK /D]$Node header CRC failed at 003919f4. But it must have
been
 OK earlier.
Node was: { 0000, 2000, 00001481, 0000002d }
Node totlen on flash (0x00001481) != totlen from node ref (0x00000080)
jffs2_do_read_inode(): No data nodes found for ino #126
AR/AR.12345678: Input/output error
============================================================================
My kernel version is linux-2.4.21-rmk1 on at91rm9200dk
I met some very weird case in which a directory on the dataflash becomes a
file.
Several weeks ago, similar case also occurs. But the error was that a normal
file turned to a directory.
It occurs randomly  and the error cant be replicate.  

on my dataflash, I perform the following steps
1. get D.tar, E.tar by ftp
2. mkdir .tar
3. mv *.tar .tar
4. (at /E) rm -R *
5. ctrl-Z
6. bg

Note: /D and /E are my two mtd partitions. And please find some major error
messages including "input/out error" and the while directory is getting
weird
[root at AT91RM9200DK /E]$rm -R *

[1]+  Stopped                 rm -R *
[root at AT91RM9200DK /E]$bg
[1]+ rm -R * &
[root at AT91RM9200DK /E]$cd /D
[root at AT91RM9200DK /D]$ls
lib                    ¤Ø             ...................<extra weird file
along with other normal files>

[root at AT91RM9200DK /D]$Node header CRC failed at 003919f4. But it must have
been
 OK earlier.
Node was: { 0000, 2000, 00001481, 0000002d }
Node totlen on flash (0x00001481) != totlen from node ref (0x00000080)
jffs2_do_read_inode(): No data nodes found for ino #126
AR/AR.12345678: Input/output error

[root at AT91RM9200DK /D]$AR: Directory not empty
AR: Directory not empty

[1]+  Exit 1                  rm -R *  (wd: /E)
(wd now: /D)
[root at AT91RM9200DK /D]$








More information about the linux-mtd mailing list