just a question
The most compelling reason to use Btrfs is because it has a lot of extra features not present in ext4 or other filesystems. A good example of this that you may be familiar with is the support for filesystem snapshots. If you enable snapshots on your home partition, you can make a change to any file in your home directory and have access to both the changed file, and the file before it was changed for example.
If you are interested in learning more about the many features Btrfs has, there is a ton of information available in the docs or elsewhere online. See here, for example: BTRFS â The Linux Kernel documentation
If you arenât going to take advantage of any Btrfs features in your home directory, ext4 is a good choice because it is known for being very reliable and is faster than Btrfs for certain use cases.
thank you
You should do some research. Garuda is basically cutting edge, so they usually pick the âlatest and greatest,â but with that said, ext4 has been around for a long time, so it is highly supported/stable, yadda, yadda.
I think the downside (and I havenât looked into this for awhile) with BTRFS is it does fragment files, so compare how that is against ext4. I think Garuda use to have a defragment option if I remember correctly, not sure if that is still a thing or if it has been automated?? Just some questions to ponder/research.
Funny side note, I think there was recently a hacker thing exploiting ext4 announced in the news, but with linux, it was patched immediately.
Just to be technical here (), both filesystems are prone to fragmentation. Iâm not sure if one is more prone to fragmentation than the other; it most likely depends on the specific workload and usage patterns.
The difference you may be thinking of is Btrfs can suffer a performance penalty on a disk which has become heavily fragmented, even on an SSD. Tracking all the extents on a fragmented disk can translate to a lot of IOPS and become extra work for the CPU. This is why some folks recommend periodically defragmenting a Btrfs disk, even if it is on an SSD.
It may be worth mentioning that a lot of folks choose to not do this (itâs probably not a noticeable performance hit for most common use cases).
On an SSD using ext4 (or any non-COW filesystem) fragmentation doesnât really matter that much; a common recommendation is to skip defragmentation altogether to spare the disk some write cycles.
In the case of spinning rust, all filesystems perform worse with a fragmented disk.
I think we can all agree that as long as itâs not NTFS, itâs better. Unless itâs created and maintained by some lunatic who goes off the rails and kills his wife. Lookinâ at you, Hans Reiser.
I prefer the âcomfortâ of ext4, personally.
For external data storage drives I prefer Ext4 for its rock solid stability. However, it also has another advantage that no one has mentioned, data recovery. If you ever experience a failure, data recovery software is far more supported on Ext4 than btrfs.
For my system partitions I use BTRFS, then I simply symlink my large storage drives into my home directory.
To add what the others have said, snapshots can be a real time saver.
Even though it was a test VM I setup snapshots. I installed some updates to software I was testing and it broke waybar. I had a snapshot so I rolled back my home dir and everything was restored.
Automatics snapshots on updates is a huge feature.
Regards,
how do you use snapshots with you home partition ?
Youâve mentioned Reiser so many times lately, Iâm beginning to think youâre going to be testifying at his parole board hearing. You donât need to be ashamed, most famous psychopathic killers have a bevy of prison pen pals, (many looking for marriage) these days.
Easy, same as the default setup for root. I used btrfs-assistant-launcher
Create a new config for /home Set the schedule, enable the schedule, apply systemd changes and save. I have regular daily snapshots and usually before a big software change that changes my config files I do a manual snapshot
But you can do that for other subvolumes also.
Don
OMG, am I that obvious?
I was running on ReiserFS at the time he, well, you know. If Linus did the sameâand who knows?âeveryone would take another look at their kernel, at least.
At least Btrfs & Ext4 donât have spouses (I think).