What is f2fs?

f2fs is filesystem made by Samsung. It’s currently one of the best filesystems for Linux and probably best one for Android.
If you need more information, Google it 😉

Is it worth to use f2fs on S3 Mini?

Yes. All benchmarks gives more than 2 times better results than using default ext4 filesystem.

Which ROMs supports f2fs?

Currently f2fs is exclusively supported in these of our ROMs:

  1. CyanogenMod 12.0 version 20150131 or newer
  2. CyanogenMod 11.0 version 20140612 or newer, with setup during installation: version 20140820 or newer
  3. OmniROM 4.4 version 20140614 or newer
  4. Carbon 4.4 version 20140614 or newer
  5. Android Open Kang Project 4.4 version 20140620 or newer
  6. SlimROM 4.4 version 20140630 or newer
  7. AOSPA 4.4 version 20140814 or newer, with setup during installation: version 20140821 or newer
  8. CyanogenMod 10.2 version 20140617 or newer

What partition can I format as f2fs?

Our ROM currently supports all Android partitions (/system, /data & /cache) formatted as f2fs.

Will I lose my current data?

/system partition (migrating itself)

You won’t loose any data, because on /system partition are kept only system files, which being installed again with every release.

/data partition (recommended)

If you want to format your /data as f2fs, whole partition (including Internal storage!) is being wiped. Also backup of default ext4 /data made in recovery cannot be restored as f2fs partition, because it’s full partition image, not just copy of files, so when you restore it, /data will be again formatted to ext4. But there are some possibilities for migration without loosing data.

In future we are planing scripts which will able you to make migration without loosing /data, but it would need a lot of time, so we cannot say when.

If you aren’t worried about ADB, you can learn how to make migration without loosing data using it here.

You can also backup your applications with their data with 3rd part software. Remember to push your valuable files from Internal storage to your PC if you select this method!

If you don’t know ADB and don’t want to use 3rd part software, you will lose all your data, including contacts, messages, applications, their data, even files on internal storage, like photos! Don’t forget to push your valuable files from your Internal storage to your PC then!

Don’t worry about external SDcard – nothing is being removed from it!

/cache partition (recommended)

Nothing important is being removed when you wipe /cache partition – all data will be rebuilt on first system boot, so you don’t have to worry about that.

I want to use f2fs. How do do this?

If ROM have setup during installation (check compability list at top of tutorial), you will be able to select desired filesystem for every partition during ROM installation. If not, /system partition is migrating itself when you flash release of ROM supporting f2fs from 20140619 or newer. To migrate /data and/or /cache, just follow this steps:

  1. Install latest software that support f2fs from our download page.
  2. Install latest TWRP recovery from our download page.
  3. Reboot to recovery.
  4. Go to Wipe -> Advanced Wipe.
  5. Select /data or /cache (one partition at time, if you wish to use f2fs on both partitions, you will need to do it later in this way) and select Repair or change filesystem.
  6. Select Change filesystem.
  7. Select f2fs.
  8. Slide to agree for formatting selected partitions.
  9. Done. Now reboot and your phone will boot with f2fs formatted /data.

If you want to go back to ext4, follow steps above, just in step 7. select ext4 instead of f2fs ( ͡° ͜ʖ ͡°)

Author: NovaFusion

125 Responses
  • holmson3 says:

    If I backup data before switching to f2fs and after I’ve done, I restore the backup, will the f2fs be still there or it comes back to ext4?

    • Piero Ulloa says:

      Back to ext4. The backup is indeed like a .iso file of a partition on your phone internal memory.

      • holmson3 says:

        Ok so clean install, after that. No problem

      • cviniciusm says:

        No, if you backup using Titanium Backup for example then you can restore apps data.

        • Elmario says:

          Yeah, but what about other files resident in /data?
          I think just copying them by filemanager and copying them back after format change wouldn’t work, would it`?

          Maybe rsync?
          Could rsync work while the OS is running at all?

    • Obeybe Baybe says:

      That’s what i was thinking, but then again f2fs is a whole image so even tho we restore our backup it will migrate to it’s compatible resource which is the ext4 and may suffer loss of data. This is where im scared x(

    • kiiver says:

      I had the same problem, it seems to be bug with “tar” large file support >2GB
      To avoid that error, data.tar file must be <2GB.
      If already deleted your /data partition then its needed to "repair" the data.tar
      For that i needed to split it to two files.
      There is multiple ways to do this but i used PC as intermediary so first transfer data.tar to PC:
      adb pull /external_sd/data.tar C:\data.tar
      Then made two copies of data.tar and deleted half data from one and exactly another half from other tar so both were less than 2GB. (used 7zip in windows)
      Put data back to phone:
      adb push C:\data1.tar /external_sd/data1.tar
      adb push C:\data2.tar /external_sd/data2.tar
      wipe /data partition again, restart recovery
      And do step 12. which is now slightly modified:
      cd /external_sd && tar -xvf data1.tar -C /data/ && tar -xvf data2.tar -C /data/ && cd /data && mv data backupf2fs && rm -r media && cd backupf2fs && mv * ../ && cd .. && rm -r backupf2fs
      reboot recovery
      install latest soft again
      wipe dalvik
      To avoid this problem the data.tar should be already generated less than <2GB or splitted.

      • kiiver says:

        This comment was meant to be under “Backup: ext4 -> f2fs”
        as some have error:
        “Error: tar: seek failure: Value too large for defined data type”

      • maqifrnswa says:

        Another tip: when you split the tar, make sure you preserve permissions (default when you use tar as super user). e.g.:
        $ sudo tar -xvf data.tar
        $ sudo tar -cvf data_media.tar data/media

        (the sudo implies -p –same-owner, which is important)

  • Adam says:

    Lenny face!!! <3

  • Antonn says:

    Heya. Just wanted to say, I think most of us would be more than okay if you focused your efforts on a script to safely migrate to f2fs from ext4 instead of on regular groundbreaking releases. If this can become accessible to the average user, that will be groundbreaking in itself. Just a thought.

    Keep up the awesome work!

  • ritvik says:

    i cant see f2fs, its not shown on the screen

  • Pavel says:

    Hi, thanks for all your effort, I know this may be a dumb question but, does the sd card also gets wiped or just the phone memory??

  • Márcio says:

    Done. And now, how do I know if I’m using f2fs? is all the same, I do not see any difference.

    • Dekkerm says:

      It is good that you “see” no difference. Everything is supposed to work as it always did. What should change is that your apps should run faster as the file system should be more efficient with flash memory.

      Please let us know if the phone is quicker or if it makes no difference between.

    • Holidroo says:

      Start in TWRP
      => “Wipe”
      => “Advanced Wipe”
      => select Partition
      => “Repair or Change File System”
      => look: “Current file system:”
      => go back and restart

  • JynAlek says:

    Can i use f2fs on stock ROM? or need a compatible kernel for this?

  • Obeybe Baybe says:

    Is carbon 4.4.3 fully supported? B’coz i didnt see it in the changelog. soo , it’s either they forgot, or still now fully supported? please let me know Asap. Thanks 🙂

  • Tadeas says:

    How to instal with CWM recovery? (v6.0.2.7)

    • Obeybe Baybe says:

      Y use CWM? Dude use TWRP.
      Well you can flash CWM using Odin. But u have 2 download Odin’s , odin package not the recovery. But if u have a previous vr.of CWM, u can also still flash the latest CWM using ur current CWM.

      Stand me if i am incorrect.

  • Obeybe Baybe says:

    Oh and, what if i backup only the Data file. And then when i want to restore, ill just migrate to ext4 again.. and then restore my backup. Would this method work?

  • Abner says:

    Well, this is probably a dumb question, but I’m quite a begginer on this Rom changing thing, but what if I do a backup using Titanium Backup before migrate to f2fs and then, after migrating, return the apps from the previous backup, would it work?

  • Sergio Leon says:

    Hi..I did everything like you said…But now TWRP said that it is unable to mount internal storage…How can i solve that? thanks

  • felipe says:

    Don’t We have to reinstall gapps?

  • ItsPeet says:

    Most of the answers are in the Tutorial.

    Please read carefully before asking… 😉

  • Márcio says:

    After a day of use f2ps, I see no difference in performance from my phone. Basically, everything is as before, performance or speed of apps, etc, all the same. The only difference I see is that with f2ps the phone is much more unstable. The system locks a lot, and almost always have to take the battery out to restart it. Sometimes the phone gets very hot. With ext4, never had problems like these. So today I will go back to ext4. I think it’s more stable and performance is the same. Anyway, congratulations for all the excellent work they do every day. Sorry for my bad english, im from Portugal.

  • Bill Gufran says:

    Can anybody tell me the difference betwwen ext4 and f2fs? Is it really worth to move on to f2fs?
    Thanks before 🙂

  • Mal Articulo says:

    Is this possible only for /data partitio?

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • gian says:

    When I tap change/repair filesystem. It says “Invalid file selection”

    Please help me

  • Penserbjorne says:

    yoni says:
    June 14, 2014 at 7:31 am
    guys if you have problems with installing the latest twrp recovery then use this method. i promise it works!! 😀
    1) download the recovery version of twrp from this site
    2) extract the zip file and copy the recovery.img to your internal storage
    3) download an app called rashr from the google play store
    4) open it and grant superuser
    5) go to flash recovery>other from storage>select the recovery.img
    6) hit yes please. it will flash the recovery(should take a few seconds)
    7) you now have the latest recovery without any md5 errors.

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • derell says:

    when i tap Repair/Change filesystem:
    i got an error saying: Invalid Partition selection. Can someone help me?

  • Evildog1 says:

    so the next is /system or /sdcard0 ?

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • David says:

    found the solution: dont select cache + data, just cache or data AND Internal storage (since that’s part of data)
    somehow TWRP can’t reformat more than one partition at a time

  • Tobiaš says:

    Can I format f2fs /system ??

  • google play service error after changing file system from ext4 to f2fs on s3 mini .. im using the latest carbon rom update .. please help!!


  • BmC says:

    Hi sir I tried cache partition changing to f2fs and done it correctly the problem is I am stock at the boot animation what shud I do

  • homhai says:

    can move system to f2fs ?

  • BmC says:

    Hi im having a problem I had change my cache partition into f2fs and its ok says in the twrp but the thing is when reboot inti system I got at boot animation screen for half and hour and still doesnt go through plss I need help what shall I do

  • BmC says:

    Ive done changing my data partitiin into f2fs and it work well than I tried the cache partition and went well but when I reboot my phone I got stock at boot animatiin screen

  • HattoriShinsan says:

    I know you said that only /cache and /data are supported as f2fs, but I was wandering about sdcard1… should it be the less problematic partition (being only an accessory to the system)? Can it be formatted in f2fs or should it be fat?

  • P. says:

    Hi, where I can find (control) what kind of file system I am using? Thx, P.

  • I read on xda another day that ext4 read operations are faster than f2fs. At least based on the device they tested. You can see here: http://www.xda-developers.com/android/f2fs-put-to-the-test-against-ext4/

    Base on that, it really worth to make the system partition f2fs?

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • How can I check if the partitions are correctly changed in f2fs?

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • jae says:

    hi I don’t know if it will be OK to post this one here.. but im starting to get confused :3 I have my mini in carbon 4.4.3 and I’ve tried to install link2sd.. it works fine. the only problem I’m having is that whenever I’m checking the storage info.. it just only show the internal and SD/emulated… I just want to make sure that this days now, that’s how it works… bec on my previous phone, I’m still able to see the external storage although I have internal storage.. pls do help me figure put this thing :3 tnx..

  • cy says:

    I have no option for f2fs in advanced format (s3mini)
    also /system partition is still ext4 (according to TWRP) after upgrade to 20140623

    used rom: cm11.0_golden.nova.20140623
    used recovery: NovaFusion’s TWRP Recovery v2.7.1.0

  • topo cruz says:

    pregunto….que diferencia hay entre una y la otra-?? especificamente en que…

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • Wodash says:

    I did everything and it worked so far. But when I look up the system partion in twrp it still says ext4.
    Do I manually have to change the file system to f2fs?

  • Mauro Brasil says:

    I can’t find this archive f2fs on the downloads.

  • Quoc Dung says:

    everyone have any problems with f2fs on /cache and /data? i used f2fs on /system so far and i don’t have problem.

  • Mike says:

    If I flash the rom with odin, all partitions will be formatted in f2fs?

  • pon says:

    I can’t seem to find f2fs on the downloads page

  • pon says:

    ha.. sorry ignore my comment.. haha

  • FC says:

    I just flashed latest release with odin and system partitions remain in ext4.
    How to format all partitions to f2fs?
    Should i use twrp to format all partitions one at a time to f2fs including system, thus rendering the phone useless without OS and then reflash with odin?

  • FC says:

    I just flashed latest CM11 with odin and system partitions remain to ext4.
    Should i use twrp to reformat all partition to f2fs and then reflash with odin?

  • gaby says:

    OmniROM running with ext4s. After changing partitions to f2fs with TWRP and reboot I got stuck at boot screen for more than half an hour and doesn’t go on. Anyone can help me with this issue?

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • I’m new, just a question, my cellphone gonna be faster????. Thanks

  • Phrosh says:

    I just flashed the new TWRP release for S3 Mini from here, made a TWRP-backup of my /data partition as ext4, went through your new CM11 installer and chose f2fs.
    All methods to restore and maintain the new file system were unsuccessful due to various resons (ADB driver probs when in recovery, Android not recognizing symlinks when i use adb backup…) so I used my previously created TWRP backup to restore my /data back to how it was before.
    The amazing thing is, that TWRP recognized the different filesystems of backup and acutal partition and restored my data while remaining the new f2fs filesystem.
    If you are able to reproduce this, you could post this here 😉

  • rulosis says:

    Hi friends…i have a problem..the key back,menu , and option …i dont can use it…these dont function …pñease helpme

  • daRookie says:

    How can i use f2fs on the /system partition? /data and /cache works fine. but how can i change /system from ext to f2fs??? thnx!

  • webwiller says:

    Sry…I know it’s not th eright place but I could’n find good info’s on the net so… I ask here where we’r all interested in S3-mini. What about overclocking/undervolting? Has anybody some good link/infos about it? Ty very much!

    Great job ’bout the ROM…I just installed with f2fs and it seems already faster…hope it’ll remain stable but I’m trustful! Keep-up! Thx again!

  • johnstivas says:

    hallo, I formatted \system as f2fs and after reboot samsung s3 mini can’t boot up

    • webwiller says:

      Try a fresh install with Recovery, the new installer allows you to format all partitions neede (/system /data /cache) in f2fs, you have just to confirm all options already thicked. I had same problem cause I formatted first…and I solved this way. GL! 🙂

  • webwiller says:

    I followed all instruction to migrate ext4/f2fs without loosing data with ADB. In the very end ADB seemed to ask something (can I post a screenshot somehow?!) which I ignored. The phone works fine but I did loose data and I still have my data.tar file. How can I try to restore my datas with the data.tar file without having to go through the whole process? Thx in advance!

  • Petryk says:

    Please, help me, i formatted \system \cache and \data, and after reboot samsung s3 mini can’t turn on, what i can do? HELP ME

    • webwiller says:

      Hi! It happened to me as well. I guess you already tried a fresh install. Did you install it through Odin or Recovery? Whatever it is try the other way, if you flashed it with Odin try with Recovery. Can you boot into TWRP? You should check a number of things and try again. If you want skype me: webwiller
      GoodLuck! 😉

    • akonrad says:

      Take the battery out, connect your S3 Mini with USB to PC. Prepare ODIN for new Firmware installation, install the battery again, Press VOL- & HOME & POWER Buttons combination, use VOL+ if you see warning and start immediately firmware download with ODIN.

  • Juergen says:

    Just an experience I made a few days ago: according to the tutorial I booted TWRP and formatted cache and data to f2fs (system already was f2fs). Then installed the new CARBON ROM and in the installer (very nice feature!) I decided to format data and cache (again) to f2fs. Then installed CARBON, performed full wipe and installed GApps. Booting up gave me an error that “Encryption was interrupted” and “Factory reset is required”. Rebooted two times incl. factory reset but always the before-mentioned error message appeared.
    I booted then into TWRP, flashed CARBON again (and again I formatted data and cache to f2fs) and immediate reboot after flashing. Worked fine! Then flashed GApps and now CARBON is running on f2fs.

  • Peppe says:

    Hello guys. Is it normal that it wants a lot of time to start after the procedure?
    Thank you

  • Rafi says:

    I tried to format the SD external card and it was formatted to f2fs.
    However, Android wasn’t able to mount it unless it formats it to vfat file system.
    Can f2fs be used on SD cards?
    (My ROM is SlimKat 4.4.4)

    • Frank says:

      Yes, I just made it working:

      take a look at the file /data/local/userinit.sh. This script is called by an init script at boot time
      I slightly modified it to work:


      umount “$REALMNT” 2>/dev/null
      mount -t f2fs /dev/block/mmcblk1p1 “$REALMNT”

  • Fram Polar says:

    when i try to reboot from TWRP i get: your device does not appear to be rooted install supersu now
    no matter what option I try the phone hangs on samsung s3 mini text and the OS doesn’t boot(probably)

  • Adrian says:

    Hi, is it possible,that you make cm12 for my lg g2 f2fs compatible?

  • S.S.Mani says:

    I am with CM 11 latest. I am more than happy with it. Now for changing the file system, do I need to start all over again flashing? Or just I can change the file system. I have nandroid, helium and Titanium back ups. Thanks in advance

  • dziadzi says:

    I have an issue with CM12 Lolipop (20150210) for S3Mini
    I can format /system to f2fs, but after installing CM12 (20150210) by TWRP i get back to ext4.
    During installation there is no option to choose f2fs or ext4

    No issue with /cache and /data

  • Mani says:

    In a functioning phone, how to check the file system that is in use?

  • Nykson says:

    Pardon me for asking, but I can do this with the partition /system? or can’t you? does not work?

  • Ilya says:

    I can format /system to f2fs by TWRP (great tool!), but on installing CM 5.1 it format /system back to ext4

    Device: Samsung Galaxy S3 mini
    TWRP: Team Vin Recovery Project v2.8.0.0
    CM: cm12.1_golden.nova.20150427.zip

    Installing /…/cm12.1_golden.nova.20150427.zip
    Checking for MD5 file…
    Skipping MD5 check: no MD5 file found
    detected filesystem f2fs for /dev/block/mmcblk0p22
    detected filesystem ext4 for /dev/block/mmcblk0p22

    Any Idea?

  • Peter says:

    Hi, I want to use AFWall+. I have installed it from F-Droid and it requires root access. It is enabled as device administrator, but it still does not work. What can I do?


  • jerome says:

    TWRP 2.8, first time install of 12.1
    If you format everything on f2fs
    then /system reverts back to ext4…
    I need to wait for an update? thanks

  • Pieter W says:

    I really want to try it out because I heard it makes your phone faster, and my s3 mini (with cyanogenmod 11.0) is getting pretty slow sometimes. But I see here in the forums people are having many issues with it, and since I’m not an expert at such coding stuff etc (I can do everything for cyanogenmod with a guide, but that’s it. If something goes wrong, idk what to do), I’m scared that this will waste my phone.

    Can anyone tell me what it really does, and whether the guide at the top of this page is 100% complete or not?


  • Wes says:

    Actually, I have discovered that the Novafusion driver package does not partition the whole system to ext4 but only one directory. (I don’t which from memory but you see it while TWRP is working) I’m assuming this directory contains the ext4 sensitive files while the rest of the system can run on f2fs

  • […] full f2fs support – the best filesystem for Android (tutorial here!) […]

  • Matteo says:

    Is possibile format sistem partition to f2fs?

  • Amine4817 says:

    Work In i8200 s3 mini ve versión??

  • dutty says:

    Still, System cant be formated in f2fs. After formating it in twrp, system wont start. After formating and installing, odin and recovery method change system to ext4 again. Does it have to be like that?

  • YU says:

    I can’t flash cm12 on my s3 mini because of this
    warning no file_contexts detected filesystem ext4 for /dev/block/mmcblk0p22
    What should I do?

  • Radu says:

    Does it work on galaxy s2 as well? I can see the option to change to f2fs in twrp but I read that the kernel must be f2fs compatible or the phone hardbricks.

  • MJ says:

    Actually under TWRP most backup file are not full partition images but are just tar.gz archives (or just tar archives when not compressed). In fact the only difference between a TWRP backup of an ext4 partition and a f2fs partition is the filename of the backed up files. To change the system and cache partitions from ext4 to f2fs:

    1. Backup the system and cache partitions.

    2. Change the ‘.ext4.’ part of the *.win file filenames to ‘.f2fs.’.

    3. Either:

    * Disable MD5 checks and delete the .md5 file for good measure or,

    * Change the ‘.ext4.’ part of the *.md5 files to ‘.f2fs.’ and edit the filenames inside those files.

    3. And restore.

    Make sure you have a proper, separate backup before doing any of this!!

    This won’t work on the data partition, as currently TWRP won’t reformat it during backup restore. (I’m not sure if this is meant to be a bug or a feature.) As a result taking a backup of an ext4 formatted data partition, reformatting it as f2fs and then restoring it will not return the partition to ext4 but keep it as f2fs. The /data partition will be intact but the internal device storage which will be walloped.

    (I’m using Novafusion’s TWRP v2.8.0.0)

  • TPBO says:

    I changed /system do f2fs and then installed cm12.1 ROM. However, after the installation, /system returns to ext4. What am I doing wrong?

  • meiner says:

    How to get root access for titanium backup after flashing this rom?

    background: coming from 4.4.4 with root I want to live without play store from now on…
    so I have made a TWRP-full-backup (just in case something goes wrong) and also a backup with TitaniumBackup (all apps, system…); both on sd-card.

    Now I want to flash ne new custom rom, get root for TB and restore some tools, calendar, sms and so on.
    But I’m stuck at getting root:
    I’v tried http://download.chainfire.eu/supersu-stable which get’s me to “UPDATE-SuperSU-v2.65-20151226141550.zip” –> in TWRP it reporting “Boot Image: not found, aborting”

    any help is appreciated

  • galang says:

    Iam using s3 mini.. N iam try to cm12 n cm12.1 .. After iam repair partitions /system /data /chache .. System partitiom back to ext4 format after install ROM .. Please guide me

  • Leave a Reply