This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

jffs filesystem problem

One of my flash partitions is usually r/o. If I have to change date I do a remount with
mount -w -o remount /partition.
After modifying the filesystem I do a
mount -r -o remount /partition.

It seems that this is not save. Some cleanup work in background and will be interrupted by this remount as r/o.

In an update case I overwrite the complete partition with
umount -l /partition
flash_eraseall /dev/mtdx
nandwrite /dev/mtdx part.jffs2

The following
mount -t jffs2 -o rw,noatime,sync /dev/mtdblockx /partition
mounts not always writable. Especially when filesystem was modified before

As all this happens in a script debug is limited.
Do you know a save way to do this?

  • Hi Arno,

    I'm not sure that understand the "mounts not always writable..." but I suggest you to try with writing a simple C program which doing the same but this will give you ability for debugging when the partition does not succeed to become writable to analyze the errors.

    BR

    Tsvetolin Shulev