Author Topic: Root Filesystem Corruption After Reboot  (Read 3015 times)

sommi

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • http://
Root Filesystem Corruption After Reboot
« on: April 07, 2005, 02:52:54 pm »
Hi!

I recently installed the pdaXrom kathrin rc9 on my Zaurus
SL-C750. The first reboot after the flashing finished without
any errors.

Today my Zaurus crashed with a garbled screen so I had
to reboot it. As I was still able to log in to the Zaurus via ssh,
I issued the "reboot" command.
The Zaurus seemed to reboot normally, but then I got
strange messages during startup:

Code: [Select]
...
Eep. Child "System.profile-K0I8-U" (ino #2832) of dir
ino #2820 doesn't exist
Inode #1771 was a directory with children -removing those too...
Inode #2799 was a directory with children -removing those too...
...

startx then complained about missing libraries and I noticed that
some symlinks disappeared.

Has anyone else gotten these error messages during reboot?
Or is this a sign that my internal flash is going to fail soon (not good)?
Or could this be a bug in the jffs2 driver?

Is there any way to avoid this corruption?

Thanks!

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Root Filesystem Corruption After Reboot
« Reply #1 on: April 07, 2005, 03:44:13 pm »
Quote
...
Code: [Select]
...
Eep. Child "System.profile-K0I8-U" (ino #2832) of dir
ino #2820 doesn't exist
Inode #1771 was a directory with children -removing those too...
Inode #2799 was a directory with children -removing those too...
...

startx then complained about missing libraries and I noticed that
some symlinks disappeared.
...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74084\"][{POST_SNAPBACK}][/a][/div]

OK, firstly I'm not stating absolutely that its not the case that there's a correlation between your missing libraries and the jffs2 errors but I will say that you get those messages in normal operation.

jffs2 will absolutely avoid writing to the flash at all costs if it can help it. This means zeroing data on the file system when it's already marked the file as delete in its journal.

The reason is quite simple. It's trying to extend the life of the flash device.

To recreate the errors if you don't believe this reflash your Z so that its completely clean, create a large directory structure with a lot of files and directories and then delete that structure. You will get a LOT of those messages. They are just messages and some people on the jffs2 news groups really complain that the file system is just too 'chatty' and alarms too many users into rebuilding their systems.

As far as the missing libraries go, I would reinstall them.

Andy
« Last Edit: April 07, 2005, 03:44:45 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

MarcusKracht

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Root Filesystem Corruption After Reboot
« Reply #2 on: April 07, 2005, 04:26:43 pm »
I noticed something similar. Xpdf does not work, so I used the trick that someone
pointed out: link the freetype-libraries to freetype.so.6.3.4 instead of freetype.so.6.3.7.
This works, but every now and then Xpdf crashes and I find that the libraries have
been relinked to freetype.so.6.3.7. Occasionally the system would also not find an
executable file after I have edited the path in /etc/system. Seems that this is a similar
type of problem.

-- Marcus

osteron

  • Newbie
  • *
  • Posts: 6
    • View Profile
Root Filesystem Corruption After Reboot
« Reply #3 on: April 08, 2005, 06:48:26 am »
Quote
This works, but every now and then Xpdf crashes and I find that the libraries have
been relinked to freetype.so.6.3.7.

I think this happens because ldconfig automatically links to the highest version when run.

sommi

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • http://
Root Filesystem Corruption After Reboot
« Reply #4 on: April 08, 2005, 08:25:43 am »
Quote
To recreate the errors if you don't believe this reflash your Z so that its completely clean, create a large directory structure with a lot of files and directories and then delete that structure. You will get a LOT of those messages. They are just messages and some people on the jffs2 news groups really complain that the file system is just too 'chatty' and alarms too many users into rebuilding their systems.

As far as the missing libraries go, I would reinstall them.

That's good to know. I am not familiar with the jffs2 filesystem, so I thought these
messages would indicate an inconsistent state or something like that...

So there must be another cause for my problems. I noticed that the libraries themselves
aren't missing, but that symlinks pointing to them were removed (most of my applications
are installed on an sd-card).

In any case, thanks for your answer!