Hi Dear Rico and Fred,
Firstly, I am really thankful for your responses. This short ideas gave me lots of insights.
I am using the standard SD cards sent by cicuitco. They are Kingston Class4 SD card.
I am using standard Angstrom distribution’s filesystem. Corruption occures in rootfs side.
In my application, there is a tcp/ip connection and an image processing program (opencv).
Yesterday I found that I am saving a captured image to my /home/root/Desktop directory for each 5 seconds.
Maybe it causes the over write and sdcard corruption. So I will save the captured image to /dev/shm directory.
By the way I will keep my file in ram. I will review my project in the manner of memory usage and then I will make tests.
On the other hand, for Angstrom systems I think we have to achieve a more stable filesystem. I am planning to
get read-only filesystem for both avoiding corruptions coming from power issues and software issues.
My error is like that:
[ 15.661254] mmcblk0: error -110 transferring data, sector 1802385, nr 128, cmd response 0x900, card status 0x200b00
[ 19.912536] mmcblk0: error -110 transferring data, sector 1802496, nr 17, cmd response 0x900, card status 0x0
[ 19.923004] end_request: I/O error, dev mmcblk0, sector 1802496
With the light of Rico’s response I understand that,
→ I have to change the bootargs of uboot to root=/dev/mmcblk0p1 ro instead of rw
-> I have to find the`` service (rcX?) that remounts the filesystem to r/w and I should remove that service
-> I have to change my /etc/fstab to mount /tmp and /var/run to mount them as tmpfs
Do I have to modify /etc/fstab to mount the filesystem read only? I know how to modify it but whenever I modify it to mount filesystem read only, it does not mount. Maybe it is because of the bootargs and the service that change the fs to rw.
Thank you for all, I will dig the problem.
Regards,
Özen
2012/12/3 fred basset <fredbasset1000@gmail.com>