What filesystem type to use for L5 SD card?

What would be the best file system to use on an SD card inside the Librem 5? I have a 256 GB SD card. I want to encrypt the SD card content. I read this article, but I’m also interested in your recommendations and opinions.

I’m using f2fs ( Flash-Friendly File System) with encryption and compression:

sudo mkfs.f2fs -O encrypt,compression -l<label> /dev/<sdcard>
sudo mount -o compress_algorithm=zstd,compress_extension='*' -L<label> /mnt/
fscrypt encrypt /mnt/

The motive for F2FS was to build a file system that, from the start, takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards)

https://www.kernel.org/doc/html/latest/filesystems/f2fs.html
https://en.wikipedia.org/wiki/F2FS
https://wiki.archlinux.org/title/Fscrypt

4 Likes

Depends what you are doing with it.

I’ve put a bunch of publicly-available multimedia content (write once, read many) so no need for encryption and no special requirements. So I went with ext4.

I’m mounting it with the noatime option.

2 Likes

This should be:
sudo mount -o compress_algorithm=zstd,compress_extension='*' -L<label> /mnt/

1 Like

Indeed, the -o got lost in the copy/paste, thanks for the heads up :slight_smile:

I’ve corrected it my post :sunglasses:

1 Like