harsh3466 ,

If you’re just doing a vanilla Linux install, ext4 is the way to go.

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

Upvoted. Not everyone wants to rely on backups and restore broken system every month like on BTRFS

2xsaiko ,
@2xsaiko@discuss.tchncs.de avatar

We're not in 2014 anymore.

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

File system is a core component of any electronic system. Even if it's just 1% less stable than other ones, it's still less stable. Maybe it's faster in some cases and supports better backups but ehh idk if it's worth it. Losing documents is something you probably want to avoid at all costs

2xsaiko ,
@2xsaiko@discuss.tchncs.de avatar

Yeah, but it isn't noticeably "less stable" if at all anymore* unless you mean stable as in "essentially in maintenance mode", and clearly good enough for SLES to make it the default. Stop spreading outdated FUD and make backups regularly if you care about your documents (ext4 won't save you from disk failure either which is probably the more likely scenario).

* not talking about the RAID 5/6 modes, but those are explicitly marked unstable

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

Well gtk if it's really as stable as ext4. I will still stick to ext4 though because why change what already works well and tested on almost any machine you can possibly imagine?

boredsquirrel ,

I suppose by being more efficient, "using modern technology" (everything saving Google, Meta, Amazon etc. money and is thus extremely well funded, all server related stuff), is good for the environment.

If something runs faster on the same hardware, it may use less energy. It may also just be restricted in hardware usage, like not using multithreading.

Linux Distros shipping x86_64-v2 packages is a whole other problem...

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

I have an x86_64-v2 CPU so I highly disagree with your statements.

boredsquirrel ,

Like, all of them... or would you be a bit more specific?

Old CPUs are an okay use case, but targeting will literally remove all benefits in efficiency that were made in the last 14 or so years.

My Thinkpad T430 has v3, and it is a 3rd gen intel. People honestly running hardware older than that are rare.

For sure the hardware should be supported, but it is not the target audience and pulls the others down.

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

So what solution do you recommend? Only making v3 packages and leaving older hardware support for AUR geeks?

boredsquirrel ,

No, and this is for sure an issue. Having different repos would increase fragmentation a lot.

boredsquirrel ,

My short BTRFS history

  1. Installed on a 1TB NVME
  2. used for 2 years
  3. Rebased my system a ton, used rpm-ostree a ton (which uses BTRFS for the snapshots I think?)
  4. Physically broke the SSD by bending (lol used a silicon cooler pad but it bent it) which resulted in hardware crashes
  5. With dd barely managed to get all the data onto a 1TB SATA SSD
  6. dd-ed the SATA SSD onto a 2TB NVME
  7. deleted and restored the MBR, resized the BTRFS partition to max, resized the BTRFS filesystem to max, balanced it

Still works, never had a single failure

wildbus8979 ,

And LVM is more than good enough for occasional snapshots before a major upgrade.

Eol ,

What's lvm like compared to btrfs?

sping ,

Well lvm makes a shit filesystem and btrfs is useless at volume management.

atzanteol ,

LVM creates "block devices" and is FS agnostic. You can install btrfs on an LVM volume if you wanted. Or any other FS for that matter.

But since it doesn't know anything about the FS it can be a bit more cumbersome to modify volumes (especially when shrinking).

Mereo , (edited )
@Mereo@lemmy.ca avatar

I disagree. My partition is ext4, but Timeshift saved my ass when an upgrade went wrong. I just had to restore the system from a previous snapshot taken before the upgrade.

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

Of course updates can break stuff. What I don't understand is why would you intentionally go for a less stable FS that can break and corrupt all files? It's especially bad on old machines with limited space where full backups are not possible

Mereo ,
@Mereo@lemmy.ca avatar

Are you talking about ext4 or BTRFS?

GolfNovemberUniform ,
@GolfNovemberUniform@lemmy.ml avatar

Updates can break stuff on any file system but BTRFS is known for worse stability, at least in the past

kurcatovium ,
@kurcatovium@lemm.ee avatar

I'm running it for over 3 years as complete linux moron with no issues whatsoever. It was default in openSUSE and its automatic snapshot feature saved my ass multiple times. I've heard everyone saying ext4 is super stable and I should use it, but I went with default and can't complain.

boredsquirrel ,

I never tested BTRFS on SSDs under 128GB or even HDDs, but never had a corrupted one.

Those anecdotes are worth little so it would be best to have current data.

One of the above points was that the claims are outdated, which would be really interesting to verify.

Like, making a study with many different parameters

  • hdd, sata ssd, nvme ssd, emmc, etc.
  • size: 50-200MB, 1GB, 16GB, 128GB, 500GB, 4TB (from small embedded, to IOT, to usb flash drive, to smartphone, to laptop, to Server/Backup)
  • amount of usage: percentage filled, read/write per minute
  • BTRFS actions: snapshots, balance, defragment
BearOfaTime ,

If full backups aren't possible that's an administrator failure.

Reliance on a file system to never fail rather than have proper backups, is an administrator failure.

ANY system can, and will, fail. Thinking and behaving otherwise is an administrator failure.

"Everything gets gone, sooner or later" - being prepared for it is good administrator behaviour.

GolfNovemberUniform , (edited )
@GolfNovemberUniform@lemmy.ml avatar

Yes but why intentionally choose a worse option? Sorry but it's not very smart imo.

And not having enough space is not an administrator failure. It's usually budget issue. And are you saying that making apps bloated (like severely bloated) is ok and the user should always be blamed for having lower hardware?

lemmyreader ,

Good that you mentioned that. Reminded me that I have an Arch Linux install here where I forgot that I did choose BTRFS during installation. Within maybe a month I noticed FS errors. Looked scary. Nervously searching for documentation was even more scary :

https://wiki.archlinux.org/title/btrfs#btrfs_check -> This article or section is out of date. (Discuss in Talk:Btrfs)
Warning: Since Btrfs is under heavy development, especially the btrfs check command,
it is highly recommended to create a backup and consult btrfs-check(8) before
executing btrfs check with the --repair switch.

What is this? My beloved Arch Wiki is not 100% perfect!

Then found this :

WARNING: Using '--repair' can further damage a filesystem instead of helping if it can't fix your particular issue.

Warning

Do not use --repair unless you are advised to do so by a developer or an experienced
user, and then only after having accepted that no fsck successfully repair all types
of filesystem corruption. E.g. some other software or hardware bugs can fatally damage
a volume.

I figure this explains the popularity of BTRFS snapshot configurations.
Luckily I had some backups :)

Ephera ,

Filesystem snapshots won't help, if the filesystem itself corrupts. But I've been using BTRFS for 6 years now and haven't had a file system corruption, so mileage may obviously vary.

Mereo ,
@Mereo@lemmy.ca avatar

In 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 ,

But 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 avatar

Btrfs has many advantages over ext4, but being faster isn't one of them.

eager_eagle ,
@eager_eagle@lemmy.world avatar

Btrfs is slower than ext4, xfs, and f2fs in pretty much every metric. Noticeably slower app opening times is the reason I switched to F2FS for good.

boredsquirrel ,

Very interesting. I heard F2FS has no journalling, but afaik Fedora Atomic doesnt rely on it?

It might be worth looking into, as it beat many tests.

boredsquirrel ,

Edit: BTRFS has advantages that likely make it better for me.

It has compression and allows flexible partition sizes. The compression may explain the speed decreases.

eager_eagle ,
@eager_eagle@lemmy.world avatar

Compression might be useful in some cases, but the bulk of my data is already compressed or not much compressible (think videos, images, compressed archives, game assets). So the trade off doesn't make much sense to me.

boredsquirrel ,

That is true, not for Flatpaks but for sure.

I wonder how much of a pain it would be not having BTRFS subvolumes on atomic Fedora. Will try F2FS in a VM.

acockworkorange ,

Mint 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 avatar

ext4 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 ,

And it has repair tools that actually work and can make the filesystem usable again.

possiblylinux127 ,
@possiblylinux127@lemmy.zip avatar

Until you pull the power at the wrong time. Its better to use Btrfs as others have said.

yozul ,
@yozul@beehaw.org avatar

Honestly, 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.

rotopenguin ,
@rotopenguin@infosec.pub avatar

Btrfs. 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.

ta00000 ,

I'm going to go against the flow here and say BTRFS. It's stable enough to the point of being a non consideration. You get full backups using a negligible amount of storage. Even using it on Windows is easier than using ext4 with the winbtrfs driver.

possiblylinux127 ,
@possiblylinux127@lemmy.zip avatar

Be really careful with winbtrfs. It will corrupt your data and cause crashes. Also I feel bad for the dev as Windows users are very demanding

tearsintherain ,
@tearsintherain@leminal.space avatar

ext4 unless you need features offered by another FS.

billgamesh ,

Especially just getting into linux. Ext4 works well enough, when you learn enough to care about what it doesn't do well try something then

OsrsNeedsF2P ,

As 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

pastermil ,

Care to explain?

OsrsNeedsF2P ,

When booting into a live CD, mounting the various subpartitions is super annoying.

When your disk space hits full, things break uncontrollably because different programs don't have a consistent measurement of how much space is left.

When shrinking partitions, you can lose data if you shrink it too much. I'm not talking about forced overrides of any configs, I'm talking about things like KDE Partition Manager.

All of these things can be excused one way or another, but at the end of the day I just want a stable filesystem that doesn't lose my docs.

pastermil ,

Ah yes, the free space calculation stuff is still a mess.

Overall, I've been daily-driving btrfs on some system and it's been treating me well. But yeah, they still got a long way to go.

possiblylinux127 ,
@possiblylinux127@lemmy.zip avatar

I'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 ,

Lemme 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.

HarriPotero ,
@HarriPotero@lemmy.world avatar

btrfs every day of the week. The only scenario where I'd even consider something else is for databases that would suffer from CoW.

I've been running it on my home server since 2010. The same array has grown from 6x2TB to 6x4TB, one disk at a time as they've failed. Currently sitting at 2x18TB+1x4TB. No data loss even though many drives have failed.

darklamer ,
@darklamer@lemmy.dbzer0.com avatar

If 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 avatar

Btrfs is cool because it supports snapshots, if you don't plan on using these, just go with ext4

Eyck_of_denesle ,

I don't use snapshots but i love the compression.

leopold ,

Not just snapshots. Also compression and CoW.

joel_feila ,
@joel_feila@lemmy.world avatar

Umm correct if um wrong but cant you make a snapshot of ant file system

Andromxda ,
@Andromxda@lemmy.dbzer0.com avatar

Sure, but btrfs has some built-in tools for this and makes it pretty easy

muhyb ,

I personally use ext4 everywhere but it is recommend to have BTRFS for your OS partition if you take snapshots often.

cmnybo ,

I would recommend using btrfs on SSDs and ext4 on hard drives.

caseyweederman ,

Ok but please explain subvolumes, the information has failed to latch onto my brain

cmnybo ,

Subvolumes 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 ,

If 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 ,

What distro? Some installers will set everything up for you and others you have to setup subvolumes manually.

possiblylinux127 ,
@possiblylinux127@lemmy.zip avatar

Ext4 on hard drives? Btrfs would be better for both.

LiamMayfair ,

Btrfs. 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.

verdigris ,

Ext4 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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • kbinchat
  • All magazines