Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recommend a filesystem for SSD
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

What filesystem do you use?
ext 2,3,4
59%
 59%  [ 61 ]
f2fs
2%
 2%  [ 3 ]
btrfs
16%
 16%  [ 17 ]
xfs
13%
 13%  [ 14 ]
zfs
4%
 4%  [ 5 ]
other
1%
 1%  [ 2 ]
Total Votes : 102

Author Message
zah21
n00b
n00b


Joined: 15 Jan 2021
Posts: 27

PostPosted: Tue Feb 16, 2021 7:08 am    Post subject: Recommend a filesystem for SSD Reply with quote

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
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2851

PostPosted: Tue Feb 16, 2021 7:10 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2177

PostPosted: Tue Feb 16, 2021 9:19 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9261

PostPosted: Tue Feb 16, 2021 9:21 am    Post subject: Reply with quote

ext4. boring fs is best fs.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Tue Feb 16, 2021 11:01 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5093
Location: Bavaria

PostPosted: Tue Feb 16, 2021 11:23 am    Post subject: Reply with quote

asturm wrote:
ext4. boring fs is best fs.

+ 1

I am using ext4 on desktop and notebook (both having a SSD as boot medium).
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31257
Location: here

PostPosted: Tue Feb 16, 2021 11:23 am    Post subject: Reply with quote

As asturm say, ext4
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9823
Location: almost Mile High in the USA

PostPosted: Tue Feb 16, 2021 9:21 pm    Post subject: Reply with quote

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 R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3420

PostPosted: Tue Feb 16, 2021 9:35 pm    Post subject: Reply with quote

ext4

You can pick something more exotic for more exotic purposes, but ext4 is just fine for root.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2177

PostPosted: Wed Feb 17, 2021 9:19 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Wed Feb 17, 2021 10:51 am    Post subject: Reply with quote

Bad, bad experience with f2fs on my first Raspberries. Even on a Google mobile phone the f2fs got corrupted during an update.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9823
Location: almost Mile High in the USA

PostPosted: Wed Feb 17, 2021 3:38 pm    Post subject: Reply with quote

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 R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
msst
Apprentice
Apprentice


Joined: 07 Jun 2011
Posts: 259

PostPosted: Thu Feb 18, 2021 8:06 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
nikolis
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 200
Location: Athens

PostPosted: Sat Mar 06, 2021 1:04 am    Post subject: Reply with quote

xfs for all
Back to top
View user's profile Send private message
mustafasalih1993
n00b
n00b


Joined: 09 Feb 2021
Posts: 38

PostPosted: Sat Mar 06, 2021 3:14 am    Post subject: Reply with quote

I use ext4, always happy with it :)
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Fri Mar 12, 2021 6:05 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Tom_
Guru
Guru


Joined: 20 May 2004
Posts: 448
Location: France

PostPosted: Sat Mar 13, 2021 8:01 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sat Mar 13, 2021 10:17 am    Post subject: Reply with quote

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.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
xahodo
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2007
Posts: 82
Location: Gouda, the Netherlands

PostPosted: Sat Mar 13, 2021 6:45 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3687
Location: Rasi, Finland

PostPosted: Sat Mar 13, 2021 6:51 pm    Post subject: Reply with quote

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

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Jojobinha_2009
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2021
Posts: 77
Location: Brazil

PostPosted: Mon Apr 05, 2021 12:42 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Wed Aug 18, 2021 1:45 am    Post subject: Reply with quote

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"?
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1468
Location: Earth

PostPosted: Wed Aug 18, 2021 2:29 pm    Post subject: Reply with quote

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 "
Back to top
View user's profile Send private message
sitquietly
Apprentice
Apprentice


Joined: 23 Oct 2010
Posts: 150
Location: On the Wolf River, Tennessee

PostPosted: Thu Aug 19, 2021 7:58 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3848

PostPosted: Thu Aug 19, 2021 8:22 pm    Post subject: Reply with quote

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. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum