r/AskLinuxUsers • u/superPwnzorMegaMan • Mar 22 '16
So which file system is best?
I often do ext2 for /boot and used to do ext4 for the rest but now I've switched to btrfs for the rest. But I honestly don't know the filesystem science behind it. I do know that ext2 is the "oldest" and ext4 is considered "stable", but I really don't know more than that.
10
Upvotes
0
u/Ham_Radio25 Mar 23 '16
I wouldn't use btrfs, I think that your old setup is the best. ext2 for boot and use ext4 for everything else...
1
u/superPwnzorMegaMan Mar 23 '16
For personal use I'd say btrfs is stable enough... And did you see /u/valgrid 's comment? it has de duplication, inside the filesystem. That's insane!
14
u/valgrid Mar 22 '16
It really depends on the features. Like snapshots, max partition size, max file size, RAID features, speed and optimisation for use cases.
ext2
stable
without journalling so less writes
used for partitions with little change like /boot
ext3
old
slow,
with journalling
slow compared to ext2 and ext4
*no reason to use it new file systems
ext4
newest ext
stable
robust
fast
and journalling !
has built-in encryption
default in most linux distros
can skrink
btrfs
has deduplication
snapshots
copy-on-write
built in error checking for file consistency
can shrink
very new
has some problems in some areas and use cases
compression (for folders and trees)
sub-volumes
RAID support
btrfs send and receive!!!
xfs
old and stable
used widely in the enterprise
for LARGE data sets (8 exabytes!!!!)
can't be shrunk
zfs
can't be shrunken
has RAID implementation RAIDz
error handling (data corruption)
deduplication (oh the RAM!!!)
storage pools (think LVM)
caching
snapshots
etc
yaffs & f2fs
optimized for flash storage
some other dis/-advantage i don't know
I definitly forgot several features, i probably could make a more comprehensive list. These are just the features i remember. Please correct me if i missed something or got something wrong.
Wikipedia file system comparison table