Understanding ext filesystem and fsck utility
Hello, In order to better use sd card on an embedded arm board running kernel 2.6, I try to understand :
-The difference between ext2 and ext3
-What is doing fsck ? File system check, which is "recommended for data safety". but why is it needed and how is it processed ? This operation is long, is it possible to take care of the file system and then never need to use fsck?
-The usage of fsck is often scheduled each x days or each x mounts. Is it possible to detect when running fsck is required and not running it systematically ?
Today I mount my sdcard with "mount -o async /dev/mmcblk0p1 /mnt/sdcard" on each startup. But sometimes it fails and I have "input/output errors" message when I try to write in sdcard. The idea behind those questions is to make an embedded platform with a sdcard storing pictures, and to be sure to have the best boot time (avoiding to run a long fsck operation on startup)
In worse case, is it possible to process fsck before umount (at system shutdown) rather than after mount (on system startup) ?
Thanks for your explanations/links
Last edited by niamov; 08-17-2011 at 08:40 AM.
|