F2fs on root in Manjaro

I really want to use F2FS file system on my desktop for experimental reasons. However, it has proven to quite difficult to install F2FS using the manjaro installer. The installer always fails to produce a grub config file. The compiler returns a non zero exit status saying mkconfig failed for grub. Can anyone help me with detailed instructions on how f2fs can be made usable in Manjaro. Like why is it even in the installer if you cannot install it?

Are you able to successfully install Manjaro on this computer using Ext4 or XFS? Just to rule out F2FS.

Yes. Ext4 and Btrfs and Zfs works.
I used the following link to install zfs: forum. level1 techs . com/t/manjaro-root-on-zfs-with-encryption/170428
But I want to also play with F2fs if that will be at all possible.
There is very little information about f2fs and manjaro online. I can follow detailed instruction but not good at figuring out what to do.

I think GRUB doesn’t fully support F2fs

Arch wiki:

  • While GRUB supports F2FS since version 2.0.4, it cannot correctly read its boot files from an F2FS partition that was created with the extra_attr flag enabled

But it has the known issue:

  • F2FS has a weak fsck that can lead to data loss in case of a sudden power loss

2 Likes

Power loss is not issue for me. What you are saying makes sense. As far as I know boot files can be found in /boot folder. I have the following partitions.
/boot/efi ---- Fat32
/boot ---- EXT2
/swap ----- swap
/ ----- F2FS

/boot folder is EXT2, so i do not understand why it does not read EXT2. I know people are using F2FS with Arch, Manjaro and open Mandriva without any issues. So, if you can focus on how to get it working than why you think it is not working would be very helpful. like I showed ZFS is clearly has less support for linux than F2FS. but still it has clearer instruction.

![image|690x381](upload://h2dLt3tvvGTsryiQaYQirfTh1xZ.png)

I am not even understanding what they are trying to say in this image to get f2fs to work.

## Troubleshooting

### Unsupported file systems

In case that GRUB does not support the root file system, an alternative `/boot` partition with a supported file system must be created. In some cases, the development version of GRUB [grub-git](https://aur.archlinux.org/packages/grub-git/)<small>AUR</small> may have native support for the file system.

If GRUB is used with an unsupported file system it is not able to extract the [UUID](https://wiki.archlinux.org/title/UUID) of your drive so it uses classic non-persistent `/dev/sdXx` names instead. In this case you might have to manually edit `/boot/grub/grub.cfg` and replace `root=/dev/sdXx` with `root=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX`. You can use the `blkid` command to get the UUID of your device, see [Persistent block device naming](https://wiki.archlinux.org/title/Persistent_block_device_naming).

While GRUB supports [F2FS](https://wiki.archlinux.org/title/F2FS) since version 2.0.4, it cannot correctly read its boot files from an F2FS partition that was created with the `extra_attr` flag enabled.

These instructions makes zero sense. What is this guy trying to say to get the f2fs to work.

i also dont understand the restriction on sharing links or image on this website.

Thank you for your help guys. I found out the problem. The problem was Calamares but not grub. It is a bad installer because it cannot really mount a /boot properly. It has many options but most of it hardly works. If use ctrl + alt +f4 to go to the command line and install it the arch way there is no problem with f2fs.
But the challenge I am facing now is installing gnome minimal from cli. The manajro gnome minimal DE is really what I want. but if install it like pacman -Syu gnome it installs all the bloatware. How can I replicate manjaro gnome minimal from CLI. Any one?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.