this post was submitted on 04 May 2024
3 points (100.0% liked)

Linux

47484 readers
1245 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by AlpΓ‘r-Etele MΓ©der, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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 πŸ˜ƒ

top 21 comments
sorted by: hot top controversial new old
[–] harsh3466@lemmy.ml 2 points 4 months ago (1 children)

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

[–] GolfNovemberUniform@lemmy.ml -1 points 4 months ago (2 children)

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

[–] 2xsaiko@discuss.tchncs.de 1 points 4 months ago (1 children)

We're not in 2014 anymore.

[–] GolfNovemberUniform@lemmy.ml 0 points 4 months ago (1 children)

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@discuss.tchncs.de 1 points 4 months ago (1 children)

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

[–] boredsquirrel@slrpnk.net 1 points 4 months ago* (last edited 4 months ago)

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

[–] Mereo@lemmy.ca 0 points 4 months ago* (last edited 4 months ago) (1 children)

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@lemmy.ml 0 points 4 months ago (1 children)

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@lemmy.ca 1 points 4 months ago

Are you talking about ext4 or BTRFS?

[–] yozul@beehaw.org 2 points 4 months ago

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.

[–] Adanisi@lemmy.zip 2 points 4 months ago (1 children)

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@lemmy.mbirth.uk 1 points 4 months ago

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

[–] Mereo@lemmy.ca 2 points 4 months ago

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.

[–] wargreymon2023@sopuli.xyz 1 points 4 months ago* (last edited 4 months ago)

FS is for nubz, do these instead:

Read

dd if=/dev/sda of=/dev/stdout

Write

dd if=/dev/stdin of=/dev/sda
[–] jsh@sh.itjust.works 1 points 4 months ago* (last edited 1 week ago)

I always go LVM + BTRFS these days. I simply love the versatility.

EDIT: DO NOT DO THIS LMAO, JUST USE BTRFS, I AM SO STUPID

[–] OsrsNeedsF2P@lemmy.ml 1 points 4 months ago (1 children)

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

[–] possiblylinux127@lemmy.zip 1 points 4 months ago (1 children)

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@lemmy.ml 1 points 4 months ago

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.

[–] ta00000@hexbear.net 1 points 4 months ago

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.

[–] tearsintherain@leminal.space 1 points 4 months ago

ext4 unless you need features offered by another FS.

[–] rotopenguin@infosec.pub 0 points 4 months ago

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.