How to fix JFFS2 with some kind of repair tool or manually?
Hi,
I???m just looking for an advice. My JFFS2 FS has some errors and I???d like to find a way to fix them.
An image of the JFFS2 was created on some other platform, which is not accessible anymore. Also I have no more devices to create another FS except RAM and almost no free space on the JFFS2. How to fix JFFS2 with some kind of repair tool or manually?
Thanks,
Vlad
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. jffs2_scan_inode_node(): CRC failed on node at 0x00047c18: Read 0xe423cf57, calculated 0x4640389bjffs2_scan_inode_node(): CRC failed on node at 0x00077210: Read 0x3abfa661, calculated 0x32e8414cjffs2_scan_inode_node(): CRC failed on node at 0x000ede90: Read 0x3c9570f6, calculated 0x34c297dbjffs2_scan_eraseblock(): Node at 0x001464b0 {0x1985, 0xe002, 0xffff0046) has invalid CRC 0x32fe3396 (calculated 0x8cd82169) jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464b4:0x0046 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464b8:0x3396 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464bc:0x2406 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464c0:0x0001 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464c4:0x2180 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464d0:0xa27e insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464d4:0xa27e insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464d8:0xa27e insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001464e0:0x0002 instead
Further such events for this erase block will not be printed jffs2_scan_dirent_node(): Node CRC failed on node at 0x0017a9c8: Read 0xcb43e738, calculated 0x428507d7
Eep. Child "hdd7" (ino #499) of dir ino #3 doesn't exist!
Eep. Child "sdao15" (ino #2127) of dir ino #3 doesn't exist! Eep. Child "hdcr15" (ino #6194) of dir ino #781 doesn't exist! Eep. Child "mouse2" (ino #9222) of dir ino #787 doesn't exist! Eep. Child "mouse2" (ino #9222) of dir ino #787 doesn't exist!
VFS: Mounted root (jffs2 filesystem) readonly.
Quoted 2 lines · Vladimir Doukhanine
Hi,
I=E2=80=99m just looking for an advice. My JFFS2 FS has some errors and=
I=E2=80=99d like to
Quoted 3 lines
find a way to fix them.
An image of the JFFS2 was created on some other platform, which is not accessible anymore. Also I have no more devices to create another FS ex=
cept
Quoted 1 line
RAM and almost no free space on the JFFS2. How to fix JFFS2 with some k=
ind
Quoted 1 line
of repair tool or manually?
Just copy a bunch of files around, until all that offending entries are=20 removed by garbage-collect..
--=20
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de
For how long I should copy files around? :-)
After two hours of exercising I still have the same entries:
#
# du /garbage du: /garbage/i2o/hdcr15: Input/output error 0 /garbage/i2o du: /garbage/hdd7: Input/output error du: /garbage/input/mouse2: Input/output error 0 /garbage/input du: /garbage/sdao15: Input/output error 0 /garbage # # rm -rf garbage rm: unable to stat `garbage/i2o/hdcr15': Input/output error rm: unable to remove `garbage/i2o': Directory not empty rm: unable to stat `garbage/hdd7': Input/output error rm: unable to stat `garbage/input/mouse2': Input/output error rm: unable to remove `garbage/input': Directory not empty rm: unable to stat `garbage/sdao15': Input/output error rm: unable to remove `garbage': Directory not empty #
Quoted 14 lines · Thomas Gleixner
Quoted 10 lines · Vladimir Doukhanine
Hi,
I???m just looking for an advice. My JFFS2 FS has some errors and I???d like to
find a way to fix them.
An image of the JFFS2 was created on some other platform, which is not accessible anymore. Also I have no more devices to create another FS except
RAM and almost no free space on the JFFS2. How to fix JFFS2 with some kind
of repair tool or manually?Just copy a bunch of files around, until all that offending entries are removed by garbage-collect..
Quoted 1 line · Vladimir Doukhanine
For how long I should copy files around? :-)
:)
Can you please provide a binary image of your flash ?
Signature · 5 lines
Thomas ________________________________________________________________________ linutronix - competence in embedded & realtime linux http://www.linutronix.de mail: tglx at linutronix.de