Author Topic: Fsck.jffs2?  (Read 5054 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Fsck.jffs2?
« on: June 08, 2006, 12:20:59 pm »
Hello,

is there a way to check the /dev/mtdblock3 fs (jffs2) on a C3100?
I'd like to make sure there are no fs errors after a system crash.
Thanks
daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Fsck.jffs2?
« Reply #1 on: June 08, 2006, 02:09:23 pm »
jffs2 is a journalling file system. after a crash the file system will be brought into a consistent state and there are some internal checks when this happens.

But no, I have not come across any tools to analyse jffs2.

Please be aware that a lot of the 'errors' that you see are warnings... you will over and over get messages about child nodes not existing and files not existing in directories. These are purely informational and do not effect the representation of the file system.

The reason that jffs2 does not 'fix' these is because this would involve unnecessary writes to a hardware device that has a finite number of writes in its lifetime - behaviour is by design.

-Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Fsck.jffs2?
« Reply #2 on: June 08, 2006, 03:22:17 pm »
Quote
jffs2 is a journalling file system. after a crash the file system will be brought into a consistent state and there are some internal checks when this happens.

But no, I have not come across any tools to analyse jffs2.

Please be aware that a lot of the 'errors' that you see are warnings... you will over and over get messages about child nodes not existing and files not existing in directories. These are purely informational and do not effect the representation of the file system.

The reason that jffs2 does not 'fix' these is because this would involve unnecessary writes to a hardware device that has a finite number of writes in its lifetime - behaviour is by design.

-Andy
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130433\"][{POST_SNAPBACK}][/a][/div]

Thank you Andy,
so I don't have to be afraid of a corrupted /home file system at all.
What remains is the SD card with 2GB ext2 user data on it, but that's not a problem to check.

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

ldrolez

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://zaurus.palmopensource.com
Fsck.jffs2?
« Reply #3 on: June 10, 2006, 09:23:37 am »
Hi !

My /home was corrupted, I could read strange messages when the Z rebooted. To fix the problem, I used the sharp backup/restore application and the messages dissapeared ! So no need for a fsck.

Cheers,

  Ludo.
- ludo
http://zaurus.palmopensource.com - the Zaurus Open Source Portal
http://www.drolez.com/software/zaurus - Misc Zaurus stuff (wifi drivers, hacks and more)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Fsck.jffs2?
« Reply #4 on: June 10, 2006, 02:05:51 pm »
Quote
Hi !

My /home was corrupted, I could read strange messages when the Z rebooted. To fix the problem, I used the sharp backup/restore application and the messages dissapeared ! So no need for a fsck.

Cheers,

  Ludo.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130654\"][{POST_SNAPBACK}][/a][/div]

Did you restore a backup you made before the error messages appeared. or did you make a backup after the messages appeared and they disappeared after one backup / restore cycle?

What error messages did you see?

Thanks
daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0