Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am building a headless embedded Linux system with a usb based flash reader attached. The flash needs to be as reliable as possible in terms of writing data recieved from an external data source so I was thinking of using the ext3 filesystem with data=journal set when mounting. I still want to be able to let the user remove it from the system and then copy the information to another flash drive as a backup so I want to keep the default vfat file system (in other words so it can be copied on both Linux and non-Linux systems) on the flash and create a ext3 file system in a file.
Is this a valid concept? Or is the fact that the ext3 file system is contained in a vfat based file completely ruin the data journaling that I want from ext3.
I know that this will work, I have tried it, but will I get the full benefit of journaling in the ext3 file system since it really is still a file in the vfat file system.
This is how I am currently creating and mounting it:
mount -t vfat /dev/sda1 /mnt/flash1
dd if=/dev/zero of=fs.ex3 bs=1024 count=5120
mke2fs -j -F fs.ex3
mount -t ext3 fs.ex3 /mnt/ext3flash -o loop=/dev/loop0 data=journal