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?