Just a simple question : Which file system do you recommend for Linux? Ext4…?
EDIT : Thanks to everyone who commented, I think I will try btrfs on my root partition and keep ext4 for my home directory 😃
harsh3466 ( @harsh3466@lemmy.ml ) 84•11 months agoIf you’re just doing a vanilla Linux install, ext4 is the way to go.
Yozul ( @yozul@beehaw.org ) 38•11 months agoHonestly, unless there’s some specific thing you’re looking for just use your distro’s default. If your distro doesn’t have a default I’d probably default to ext4. The way most people use their computers there’s really no noticeable advantage to any of the others, so there’s no reason not to stick with old reliable. If you like to fiddle with things just to see what they can do or have unusual requirements then btrfs or zfs could be worth looking into, but if you have to ask it probably doesn’t matter.
catloaf ( @catloaf@lemm.ee ) English2•11 months agoAgreed, ext4 is a perfectly fine default for the os. Xfs is also a good choice. I have my os on ext4 and data on xfs and I’ve never had issues. My only headache is LVM, because I don’t actually need the additional flexibility it offers. (And mdraid is flaky, but I think that’s because of how I set it up. Maybe you aren’t supposed to use a whole drive, you’re supposed to partition it first?)
Mereo ( @Mereo@lemmy.ca ) 36•11 months agoIn my opinion, it depends. If a distro has BTRFS configured to automatically take a snapshot when upgrading (like OpenSuse Tumbleweed), then BTRFS.
If not, for a beginner, ext4 + timeshift to take snapshots of your system in case an upgrade goes wrong will be fine.
boredsquirrel ( @boredsquirrel@slrpnk.net ) 5•11 months agoBut you can also just use BTRFS without any fancy setup and not use its features, it will still be faster.
narc0tic_bird ( @narc0tic_bird@lemm.ee ) 5•11 months agoBtrfs has many advantages over ext4, but being faster isn’t one of them.
acockworkorange ( @acockworkorange@mander.xyz ) 1•11 months agoMint doesn’t default to btrfs, but will use it if you so choose during install. And it integrates fantastically with Timeshift. I’ve set up daily and weekly snapshots and have peace of mind.
Adanisi ( @Adanisi@lemmy.zip ) English24•11 months agoext4 has been battle-tested for many years and is very stable. Doesn’t have the same fragmentation and data loss issues certain other filesystems like NTFS have.
mbirth ( @mbirth@lemmy.mbirth.uk ) English10•11 months agoAnd it has repair tools that actually work and can make the filesystem usable again.
Possibly linux ( @possiblylinux127@lemmy.zip ) English1•11 months agoUntil you pull the power at the wrong time. Its better to use Btrfs as others have said.
blackstrat ( @blackstrat@lemmy.fwgx.uk ) 3•11 months agoBut pulling the power on a btrfs drive at the wrong time results in you not even being able to mount it as read only. No snapshotting can help you there.
Possibly linux ( @possiblylinux127@lemmy.zip ) English1•11 months agoI have not had that experience
rotopenguin ( @rotopenguin@infosec.pub ) English20•11 months agoBtrfs. Just format as one big partition (besides that little EFI partition of course) and don’t worry about splitting up your disk into root and home. Put home on its own subvolume so that root can be rolled back separately from it. You can have automatic snapshots, low-overhead compression, deduplication, incremental backups. Any filesystem can fsck its own metadata, but btrfs is one of the few that also cares if your data is also intact.
blackstrat ( @blackstrat@lemmy.fwgx.uk ) 1•11 months agoIt cares so much that when it goes wrong you can’t even mount the partitions as readonly to try get your data back. It will stubbornly hold on to it and refuse any access at all. Boy I am so glad it didn’t let me access a potentially corrupted byte somewhere!
OsrsNeedsF2P ( @OsrsNeedsF2P@lemmy.ml ) 18•11 months agoAs someone who ran BTRFS for years, I’m personally switching back to EXT4. Yes, the compression and other features are nice, but when things go wrong and you have to do a recovery, it’s not worth the complexity
Possibly linux ( @possiblylinux127@lemmy.zip ) English11•11 months agoI’ve found it much easier and way more reliable. If I pull out the power on ext4 it is likely to cause corruption and sometimes you can’t fix it.
Btrfs is pretty much impossible to completely corrupt. I’ve had drives fail and I didn’t lose anything
OsrsNeedsF2P ( @OsrsNeedsF2P@lemmy.ml ) 18•11 months agoLemme say this - While complex, I can vouch for recovering files on BTRFS. I can’t vouch for recovering files on ext4, because I never had to.
tearsintherain ( @tearsintherain@leminal.space ) 17•11 months agoext4 unless you need features offered by another FS.
billgamesh ( @billgamesh@lemmy.ml ) 5•11 months agoEspecially just getting into linux. Ext4 works well enough, when you learn enough to care about what it doesn’t do well try something then
muhyb ( @muhyb@programming.dev ) 13•11 months agoI personally use ext4 everywhere but it is recommend to have BTRFS for your OS partition if you take snapshots often.
darklamer ( @darklamer@lemmy.dbzer0.com ) 12•11 months agoIf you don’t actually have an opinion, just go with the default, ext4 really is a very good file system, but if you want to have an opinion and not go with the default, zfs is truly a fantastic file system.
Andromxda 🇺🇦🇵🇸🇹🇼 ( @Andromxda@lemmy.dbzer0.com ) English12•11 months agoBtrfs is cool because it supports snapshots, if you don’t plan on using these, just go with ext4
Eyck_of_denesle ( @Eyck_of_denesle@lemmy.zip ) 6•11 months agoI don’t use snapshots but i love the compression.
leopold ( @leopold@lemmy.kde.social ) English1•11 months agoNot just snapshots. Also compression and CoW.
verdigris ( @verdigris@lemmy.ml ) 11•11 months agoExt4 for most home users, because it’s simple and intuitive. Btrfs for anyone who has important data or wants to geek out about file systems. It’s got some really cool features, but to actually use most of them you’ll have to do some learning.
cmnybo ( @cmnybo@discuss.tchncs.de ) English11•11 months agoI would recommend using btrfs on SSDs and ext4 on hard drives.
caseyweederman ( @caseyweederman@lemmy.ca ) 4•11 months agoOk but please explain subvolumes, the information has failed to latch onto my brain
cmnybo ( @cmnybo@discuss.tchncs.de ) English3•11 months agoSubvolumes are somewhat like a partition, but they don’t have fixed size. What they allow you to do is take snapshots. Snapshots are used to backup and restore the subvolume. They can be created instantly and don’t take up any space until something is changed.
caseyweederman ( @caseyweederman@lemmy.ca ) 2•11 months agoIf I’m trying to install Linux with BTRFS, and it doesn’t work, what are some of the most likely mistakes I’ve made?
cmnybo ( @cmnybo@discuss.tchncs.de ) English3•11 months agoWhat distro? Some installers will set everything up for you and others you have to setup subvolumes manually.
Possibly linux ( @possiblylinux127@lemmy.zip ) English2•11 months agoExt4 on hard drives? Btrfs would be better for both.
SavvyWolf ( @savvywolf@pawb.social ) English10•11 months agoFor standard use, ext4. If you want to tinker and use fancy features, btrfs (or maybe zfs?).
Liam Mayfair ( @LiamMayfair@lemmy.sdf.org ) 10•11 months agoBtrfs. It was the default filesystem already when I used Fedora on both my personal and work laptops. Not a single problem. It is true I don’t really make much use of most of its advanced features like snapshotting, CoW, etc., but I also didn’t notice any difference whatsoever in stability compared to ext4 so I’m pretty happy with it as my new default.
Björn Tantau ( @bjoern_tantau@swg-empire.de ) 10•11 months agoJust go with whatever is the default of your distribution.
That said I’ve come to love the automatic snapshots OpenSUSE gives me with BTRFS. I think they use snapper to automate that. It does a snapshot before and after every packet install, update or removal. And it has some system to delete snapshots that aren’t needed anymore but it always keeps enough to give you peace of mind, especially when you’re experimenting.
I should look into keeping some snapshots of my ~ as well. And I should implement that especially for my family.
kurcatovium ( @kurcatovium@lemm.ee ) English3•11 months agoSnapper is life saver. I don’t get it why nobody else use it by default, it’s so great. It saved me many times. My coworker, who happens to be kind of non-linux user forced there by MS bullshit, uses Ubuntu and she’s got to problems so many times, and all those would be couple clicks repair with Snapper…