WRITELOOP

SET F2FS ON UBUNTU

2020 August 1

How to enable f2fs on linux

I have recently purchased an NVMe M2 SSD enclosure for my disk to use as portable storage. Kept hearing about how great f2fs filesystem can be for these kind of disk, so I had to enable it on ubuntu (should work on other distributions). That is how you can do it:

  • Enable the kernel module:
$ sudo modprobe -v f2fs
  • Enable the module at boot:
$ sudo vim /etc/modules
# Then, add the line below there:
f2fs
  • Install packages to deal with the filesystem:
$ sudo apt install -y f2fs-tools libf2fs-format4 android-libf2fs-utils -y