this post was submitted on 04 May 2024
122 points (96.9% liked)

Linux

55187 readers
1106 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 6 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 πŸ˜ƒ

(page 2) 50 comments
sorted by: hot top controversial new old
[–] winterayars@sh.itjust.works 5 points 1 year ago (1 children)

XFS. It fills the same role as ext4 but it's less likely to lose your data and that's probably the most important part of a file system. Not that ext4 is bad or anything, but XFS is good. The only downside to XFS is you can't shrink the filesystem size.

load more comments (1 replies)
[–] LeFantome@programming.dev 5 points 1 year ago (4 children)
[–] pastermil@sh.itjust.works 5 points 1 year ago (1 children)

Chill. That thing just hit the mainline.

Thank you brave pioneers. I just felt confident to switch to btrfs last year.

[–] possiblylinux127@lemmy.zip 3 points 1 year ago (2 children)
load more comments (2 replies)
[–] kixik@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

Uff, somehow missed your post. See mine. That's the FS I'm hoping to use next. I'm waiting for it to support swapfile, or alternatively read from official sources they won't ever support it, :). But yes, that's the one I'm looking forward to use.

load more comments (1 replies)
[–] communist@beehaw.org 4 points 1 year ago (2 children)

I use f2fs on ssd's and ext4 on hdd's

I don't see the need for snapshots, I backup externally

[–] toastal@lemmy.ml 2 points 1 year ago

SSDs* HDDs*

f2fs does one of the weirdest things with compression by default: the files are compressed but they still take up the same amount of blocks as the uncompressed files. This can get you the slight performance boost of compressed files, but doesn’t actually save you space which is an odd choice. You can enable a flag in the kernel but it has other effects as well.

load more comments (1 replies)
[–] jsh@sh.itjust.works 4 points 1 year ago* (last edited 8 months ago) (1 children)

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

[–] refreeze@lemmy.world 2 points 1 year ago (1 children)

I'm curious, why do you use LVM with BTRFS and not just use BTRFS built in subvolumes?

load more comments (1 replies)
[–] nialv7@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (1 children)

Well since so many people recommend btrfs because "it have never lost any data for me". I want to suggest OP to never use btrfs ever. Because it has lost my data, at least three separate times, the most recent time a week ago. And it's not because of a power loss or anything, it just corrupted my files for absolutely no reason at all.

Stay away from btrfs at all costs.

load more comments (1 replies)
[–] VHS@hexbear.net 3 points 1 year ago (1 children)

I've always used XFS on spinning drives and F2FS on SSDs. No issues, they're very solid

load more comments (1 replies)
[–] secret300 3 points 1 year ago (1 children)

I like btrfs but only cause it got transparent compression. I don't need the extra disk space and it only helps a bit but I just think it's neat

[–] ta00000@hexbear.net 2 points 1 year ago (1 children)

If you're on spinning rust with a modern CPU, compression actually helps your read/write speeds quite a bit. It's faster for the CPU to compress/decompress then read/write less data because hard drives are so slow in comparison.

load more comments (1 replies)
[–] wargreymon2023@sopuli.xyz 2 points 1 year ago* (last edited 1 year ago)

FS is for nubz, do these instead:

Read

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

Write

dd if=/dev/stdin of=/dev/sda
[–] intelisense@lemm.ee 2 points 1 year ago (2 children)

BTRFS for the OS partitions, ext4 for /home, tmpfs for /tmp. I rarely need to use snapshots, but I do use a rolling release. It's one of those things you don't need until you really fucking NEED it. Tumbleweed support is great - I can roll back a bad update in about as long as it takes to reboot.

[–] Evil_Shrubbery@lemm.ee 2 points 1 year ago

This is exactly how and what Im using.

Home and other ext4 are backed up one form or another on by NAS.

load more comments (1 replies)
[–] Frederic@beehaw.org 2 points 1 year ago

I used ext4 for yeeeeaaaarrssss but now I'm using LUKS+btrfs, stable, encrypted.

load more comments
view more: β€Ή prev next β€Ί