File system crashes

Hello,

We are using QNX RTP 6.1 embeded on 32MB DiskOnChip (M-systems). Disk is
used to load system and store some aquired data in files.

It is difficult to say when and why, but sometimes (too often)
filesystem becomes corrupted. We think its because of turning off
system (power switch off) while some files are accessed. chkfsys utility
reports problem but not correct it.

Does anybody can comment something about this? The same problems we hade
when used with flash cards also. But it seems than with normal hard disk
there are no such problems. Maybe it is because DisckOnChip and Flash
Card devices are slow or something? Than they are not suitable for
storing data?

Jonas

Does the whole file system “crash” (the system won’t boot)? Or are you
having problems with specific files?

If it’s just specific files (like data files) there are a couple of things
to try. First, you want to minimize the time that a file is open. For data
collection, try allocating large buffers in memory, and write the data to
file all in one big lump (preferably at the end of some major process).
Once the files have been written and closed, run the system command “sync”
to be sure that the file system has actually flushed the file data to disk.
You also might consider removing the power button from the system, and
forcing the operator to shut the system down using your GUI. That way you
can actually perform a “unix shutdown” then kill the power yourself…

Good luck

– djw –


“Jonas” <jonas@elsis.com> wrote in message
news:3CD7C79A.7030303@elsis.com

Hello,

We are using QNX RTP 6.1 embeded on 32MB DiskOnChip (M-systems). Disk is
used to load system and store some aquired data in files.

It is difficult to say when and why, but sometimes (too often)
filesystem becomes corrupted. We think its because of turning off
system (power switch off) while some files are accessed. chkfsys utility
reports problem but not correct it.

Does anybody can comment something about this? The same problems we hade
when used with flash cards also. But it seems than with normal hard disk
there are no such problems. Maybe it is because DisckOnChip and Flash
Card devices are slow or something? Than they are not suitable for
storing data?

Jonas

Jonas wrote:

We are using QNX RTP 6.1 embeded on 32MB DiskOnChip (M-systems). Disk is
used to load system and store some aquired data in files.

It is difficult to say when and why, but sometimes (too often)
filesystem becomes corrupted. We think its because of turning off
system (power switch off) while some files are accessed. chkfsys utility
reports problem but not correct it.

Does anybody can comment something about this? The same problems we hade
when used with flash cards also. But it seems than with normal hard disk
there are no such problems. Maybe it is because DisckOnChip and Flash
Card devices are slow or something? Than they are not suitable for
storing data?

Try to look at:
http://qdn.qnx.com/support/bok/solution.qnx?10472

Regards,
Greg Wrobel

wrobel@no-spam.zdania.com.pl Experimental Department of Scientific
phone: (+48 12) 617-2883 Equipment and Automation
fax: (+48 12) 634-2205 30-059 Krakow, al.Mickiewicza 30, Poland