LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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.

Notices



Reply
 
Search this Thread
Old 10-07-2005, 05:46 PM   #1
Denes
Member
 
Registered: Mar 2004
Distribution: CentOS 4.3/4.5
Posts: 72

Rep: Reputation: 15
ext3 file system in a file


Hello,

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.
 
Old 10-07-2005, 06:57 PM   #2
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
You can have a vfat partition that holds a ext3 partition as a file on it... yes...
 
Old 10-07-2005, 07:08 PM   #3
Denes
Member
 
Registered: Mar 2004
Distribution: CentOS 4.3/4.5
Posts: 72

Original Poster
Rep: Reputation: 15
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:
mkdir /mnt/flash1
mkdir /mnt/ext3flash
mount -t vfat /dev/sda1 /mnt/flash1
cd /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
 
Old 10-08-2005, 10:59 PM   #4
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
IMHO, yeah, sure... but remember, Vfat doesn't have a journal, so if your system crashes, your vfat partition might lose the file, and therefore, your ext3 file.

Someone correct me if I'm wrong.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to freeze ext3 file system A-Liang Programming 8 09-23-2004 01:27 AM
How to ext3 file system A-Liang Programming 2 09-13-2004 11:14 PM
ext3: File system error big_gie Linux - General 6 07-16-2004 12:44 PM
Help File System EXT3 x REISERFS julio menezes Linux - Newbie 1 03-14-2004 06:32 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 08:45 AM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration