Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

Recommend a filesystem for SSD

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
63 posts
  • 1
  • 2
  • 3
  • Next

What filesystem do you use?

ext 2,3,4
67
57%
f2fs
4
3%
btrfs
22
19%
xfs
17
14%
zfs
6
5%
other
2
2%
 
Total votes: 118
Your vote has been cast.

Author
Message
zah21
n00b
n00b
Posts: 27
Joined: Fri Jan 15, 2021 10:38 am

Recommend a filesystem for SSD

  • Quote

Post by zah21 » Tue Feb 16, 2021 7:08 am

Hi guys,

I'll be upgrading to new laptop pretty soon so at the moment I'm trying to decide what file system to use on an SSD. I've always used Ext4 and I've had no major issues with it so far. From what I've heard elsewhere it seems like filesystems such as btrfs and f2fs seems to have good ssd support, so I'd like to hear your opinion on what you think about those.

Thanks.
Last edited by zah21 on Tue Feb 16, 2021 12:37 pm, edited 1 time in total.
Top
Ionen
Developer
Developer
User avatar
Posts: 3014
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Tue Feb 16, 2021 7:10 am

Hardly matters, use what you prefer based on features or robustness.

Note that F2FS is mostly useful for "dumb" flash storage (like a usb thumbdrive), any remotely modern SSDs don't need this.
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2404
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Tue Feb 16, 2021 9:19 am

Ionen wrote:...
Note that F2FS is mostly useful for "dumb" flash storage (like a usb thumbdrive), any remotely modern SSDs don't need this.
That's not correct. It was designed for SSD, NVMe and the like by people from Samsung, who make quite a lot of that stuff. It has some issues that can be mitigated (note that if you apply their changes, they need the filesystem formatted with the "extra_attr" flag, which breaks grub's ability to read it).

My experience so over the past year with an F2FS NVMe rootfs is fine. It also supports FSCRYPT, like ext4, which may be of interest for laptop security if you don't want to go down the LUKS route.
Greybeard
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Feb 16, 2021 9:21 am

ext4. boring fs is best fs.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56100
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Feb 16, 2021 11:01 am

zah21,

I use ext4. On some filesystems where I don't mind throwing them away is there is a problem, wint the -O ^has_journal option.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Administrator
Administrator
Posts: 6635
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Tue Feb 16, 2021 11:23 am

asturm wrote:ext4. boring fs is best fs.
+ 1

I am using ext4 on desktop and notebook (both having a SSD as boot medium).
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Feb 16, 2021 11:23 am

As asturm say, ext4
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Tue Feb 16, 2021 9:21 pm

Especially SATA SSDs are "cooked" interfaces and deal with wear leveling automatically so there's no need to run a flash centric filesystem.

When they start forcing us to use "WinSSS" (aka solid state storage with the "Winmodem" moniker) then perhaps we need to start using f2fs of some sort, and waste CPU cycles/memory to deal with wear leveling and block allocation. But even so, unless you have some sort of power guarantee (battery or at least some capacitor backup) there's a high risk for corruption if you can't finish metadata writes. SATA SSDs will detect power failures and clean up before going dark, something that you can't guarantee with F2FS on solely line power.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Tue Feb 16, 2021 9:35 pm

ext4

You can pick something more exotic for more exotic purposes, but ext4 is just fine for root.
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2404
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Wed Feb 17, 2021 9:19 am

eccerr0r wrote:Especially SATA SSDs are "cooked" interfaces and deal with wear leveling automatically so there's no need to run a flash centric filesystem.

When they start forcing us to use "WinSSS" (aka solid state storage with the "Winmodem" moniker) then perhaps we need to start using f2fs of some sort, and waste CPU cycles/memory to deal with wear leveling and block allocation. But even so, unless you have some sort of power guarantee (battery or at least some capacitor backup) there's a high risk for corruption if you can't finish metadata writes. SATA SSDs will detect power failures and clean up before going dark, something that you can't guarantee with F2FS on solely line power.
IIUC F2FS is, like ext4, a journalling filesystem. So presumably after a power failure it's a case of replaying the journal for both ext4 and f2fs.
Greybeard
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

  • Quote

Post by Irre » Wed Feb 17, 2021 10:51 am

Bad, bad experience with f2fs on my first Raspberries. Even on a Google mobile phone the f2fs got corrupted during an update.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Wed Feb 17, 2021 3:38 pm

Goverp wrote:IIUC F2FS is, like ext4, a journalling filesystem. So presumably after a power failure it's a case of replaying the journal for both ext4 and f2fs.
Still can't guarantee atomic writes when power is unreliable. Even mechanical hard drives have "last gasp" writes for when power goes out, no guarantees when doing in software.

Granted if you run f2fs on a storage medium that supports reliable writes, then it's not nearly as much of a problem...still redundant...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
msst
Apprentice
Apprentice
Posts: 259
Joined: Tue Jun 07, 2011 11:06 pm

  • Quote

Post by msst » Thu Feb 18, 2021 8:06 pm

I prefer btrfs nowadays. Works without problems and adds transparent compression and lvm / raid type features without needing to add extra layers of complexity.

But of course ext4 is the most common default option for a reason. If you need / want none of the other features, why experiment? SSD support is solid on ext4 as well.
Top
nikolis
Apprentice
Apprentice
Posts: 209
Joined: Thu Aug 21, 2003 5:20 pm
Location: Athens

  • Quote

Post by nikolis » Sat Mar 06, 2021 1:04 am

/ ext4

/var/portage XFS (builds + distfiles)

/home XFS (data, VMs, media)
Last edited by nikolis on Tue Dec 02, 2025 8:10 pm, edited 1 time in total.
Top
mustafasalih1993
n00b
n00b
User avatar
Posts: 38
Joined: Tue Feb 09, 2021 1:39 am

  • Quote

Post by mustafasalih1993 » Sat Mar 06, 2021 3:14 am

I use ext4, always happy with it :)
Top
Roman_Gruber
Advocate
Advocate
Posts: 3854
Joined: Tue Oct 03, 2006 8:43 am
Location: Austro Bavaria

  • Quote

Post by Roman_Gruber » Fri Mar 12, 2021 6:05 pm

What filesystem do you use?

I use that for ages. It matter more which drive manufactuerer you buy. I had good experience with crucial, and the worst with my ADATA and Sandisk drives.
SATA 2.5" -> GPT -> LVM2 -> LUKS -> ext4

You want to use something which can be easily recovered and has no big performance impact.
Top
Tom_
Guru
Guru
User avatar
Posts: 450
Joined: Thu May 20, 2004 5:55 pm
Location: France

  • Quote

Post by Tom_ » Sat Mar 13, 2021 8:01 am

I just bought new SSDs and i was wondering about which filesystem to use. I thought about BTRFS but in the end I suppose that I'll stick to the trusty lvm2 + ext4 combo.
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sat Mar 13, 2021 10:17 am

Mix of things here.

Mostly btrfs (now), 2 mirrored raid boxes are btrfs now, but about a year ago they were reiser3.
Except for one of my samsung ssd's (old root pre nvme) that I used ext4 for and the reason for ext4 is that the ext* systems seem to be faster for serving qemu images.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
xahodo
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Thu May 17, 2007 12:36 pm
Location: Gouda, the Netherlands

  • Quote

Post by xahodo » Sat Mar 13, 2021 6:45 pm

ext4 all the way. I had reiserfs for /home and /var for a while, to reduce space consumption by smaller files, but I'm a bit hesitant to use it these days as I'm not sure about its maintenance and development status.
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4703
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Sat Mar 13, 2021 6:51 pm

All-in btrfs here.
The multi-device btrfs setups and one laptop.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
Jojobinha_2009
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 77
Joined: Sat Mar 27, 2021 8:11 pm
Location: Brazil

  • Quote

Post by Jojobinha_2009 » Mon Apr 05, 2021 12:42 am

Using BTRFS... noticed Gentoo runs faster with it instead of ext4.
Intel Core i5-9400F / 24GB DDR4 2666MHz / GeForce GTX 1060 3GB

Powered by Gentoo for x86_64

======================================================

Seize the day, and remember to have fun!
Top
The_Great_Sephiroth
Veteran
Veteran
Posts: 1609
Joined: Fri Oct 03, 2014 9:34 pm
Location: Fayetteville, NC, USA

  • Quote

Post by The_Great_Sephiroth » Wed Aug 18, 2021 1:45 am

BTRFS on mechanical. It is faster and has bit-rot protection which HAS saved me a few times.

I also wanted to vote F2FS because that is all I use on systems with SSDs. It smokes ext4 and BTRFS on an SSD. I mean SMOKES IT HARD.
Ever picture systemd as what runs "The Borg"?
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Wed Aug 18, 2021 2:29 pm

maybe it's just my imagination, but i always found 'ext3/4' to chatty - like reiserfs.

i only use 'xfs' and never disappointed me, even after 'power outage'.
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
sitquietly
Apprentice
Apprentice
User avatar
Posts: 153
Joined: Sat Oct 23, 2010 9:20 pm
Location: On the Wolf River, Tennessee

  • Quote

Post by sitquietly » Thu Aug 19, 2021 7:58 pm

CooSee wrote:i only use 'xfs' and never disappointed me, even after 'power outage'.
Similar.

I use xfs for root because "xfs never disappointed me, even after power outage" and because I know it has had a lot of work put into it for years now and is preferred by RedHat.

I use zfs for data disks (on enterprise HDs). It has been very reliable giving me many terrabyte*years without a single disappointment. I also like that my zfs raid10 array manages to give me uninterrupted, glitch-free 24bit 96kHz audio playback even during massive rsync transfers and ebuilds on the same array. From Ann-Sophie Mutter to Yo Yo Ma we all love zfs.

boot ssd = xfs
data HDs = zfs

I'm only missing a yfs.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Thu Aug 19, 2021 8:22 pm

asturm wrote:ext4. boring fs is best fs.
Yeah,
Been waiting for years btrfs 5/6 to become boring...
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
Post Reply
  • Print view

63 posts
  • 1
  • 2
  • 3
  • Next

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic