What Linux-only filesystem to choose for a microSD card?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What Linux-only filesystem to choose for a microSD card?
What filesystem to use on microSD card (in a card reader) for Linux file storage?
I've always just used VFAT on thumbdrives and microSD cards for compatibility with more different OS'es. For this one I'm setting up, it will just be used by Linux, so I'm checking if something would be better than VFAT. Will mostly be used to store multi-Gb encrypted file containers (TrueCrypt type stuff) that contain files that are written once, read occasionally, never updated. Maybe a few occasional non-encrypted files that are written, maybe updated a few times, read a few times, then deleted (basic thumbdrive type of stuff)
I've used ext2 on mine . If it/files gets corrupted with a dirty unmount. It is easy enough to fix in gparted on my linux laptop.
Edit: I will explain a little better on why I do this this way.
I just replaced the micro sd card on my phone. Because continuous read write cycles probably killed my 64 gig Sandisk Ultra.
Journaling file systems seem to kill these type of cards. Ext2 is not a journaling file system. It <ext2> kept my crappy phison ssd drives on my old eeepc's from dying so I could sell them when I moved on.
I never ran ext3 or ext4 on those phison ssd drives. Just ext2. I did the same on puppy installs on sd cards for the same reason.
ExFAT was specifically designed for the likes of SD and USB media so that the number of writes to the media is minimised.
While I'm not the biggest fan of the implementation of exfat within linux (it works fine, I'm just not a fan of it), this is a very good reason for using the file system.
Thanks for all the thought provoking replies. I tend to get set in my ways sometimes, comfortable with what I know, and not making the effort to see if some other way might be better. Hence all my VFAT formatted thumbdrives. Yeah, they work fine under VFAT, and changing to a different FS will probably only be a minor improvement in the grand scheme of things.
But it's good to ask, investigate, and learn so that the world does not pass me by. Thanks!
And how many other things in life are covered by patents and could be charged at any time that you don't worry about.
There is such a thing as taking things to a ridiculous extreme and you seem to be approaching that.
FAT32 is patented by MS as well by the way, or had you forgotten that??.
I see no reason to use an encumbered filesystem unless it will be used in a constrained environment - say Windows or my PVR. Having a natural aversion to log-structured filesystems I use ext4. If I was concerned about journal traffic, and in this case it seems a non-issue, I'd use ext4 without a journal. That way you get the benefits of the current code base.
I wasn't looking for any specific improvement. I was just asking to see if there was anything better than VFAT (with the implied question, "why is it better?")
Seeing as how this is an external microSD card that does not contain critical stuff, and is rarely used, I am not concerned about performance. Longevity, I guess I am concerned about that. But again, being rarely used, the card will probably outlast me before it croaks.
It's good to learn new things, see other peoples perspectives, etc. Just to keep my brain from getting stale. Someone might point out an improvement in a specific filesystem that I was not familiar with. And at that time I might say, "yeah, I want that". But it appears that there are almost as many different opinions on which filesystem to use as there are filesystems. Hence, for my generic non-specific use (except for the encryted containers) it probably doesn't matter what file system I choose. Which is the outcome that I predicted, but you never know until you ask and learn. Thanks for all the feedback and opinions!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.