[RECOVERY][ROMs] Recovery and Rom for All-F2FS 08/06/14

legolas93

Senior Member
Jul 13, 2010
644
1,267
0
Recovery and Rom for All-F2FS

What is F2FS?

F2FS (Flash-Friendly File System) is a flash file system created by Kim Jaegeuk at Samsung for the Linux operating system kernel. 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), which are widely used in computer systems ranging from mobile devices to servers.

What is All-F2FS?

We used F2FS only for /data. It was simply because we have only to flash a compatible Kernel and Format /data partition. With All-F2FS we use F2FS for all partitions and we need a compatible ROM


Instructions:

Compatible ROM:

(All credits to authors. I have only made them compatible with F2FS)

  • Download compatible ROM
  • Download FormatPartitions.zip
  • Download "special" TWRP for All-F2FS: openrecovery-twrp-2.7.1.0-mako-All-F2FS.img
    (This is different for that of simply F2FS)
  • Copy FormatPartitions.zip and ROM on Phone
  • Flash "special" TWRP with Fastboot
  • Flash FormatPartitions.zip with new Recovery
  • Reboot Recovery
  • Flash ROM with new Recovery
  • (Flash GApps with new Recovery)
  • Go to Wipe Menu and press Format Data (The Big BUTTON!) (You will LOSE all your Data! Music, Movies etc!!)
  • Reboot

(Recovery has a RED back button to remember you that you are using the F2FS recovery!)

If you get something like "Unable to mount '/cache'", Flash FormatPartitions.zip and reboot recovery.

Enjoy :)

Phone is snappy and smooth with All-F2FS.




To go back:
- Flash a "normal" recovery
- Format Data
- Reboot Recovery
- Flash RestorePartitions.zip (Untested)
- Reboot Recovery
- Flash your previous ROM

(Required commit)
 
Last edited:

PatrickMac

Senior Member
May 12, 2012
665
218
73
Why you don´t look at the download from the 2 posts before talk!?

Open both and you will see the same link = The same recovery
the important part is the formatpartitions.zip, as this formats the /cache and /system partition to f2fs. the recovery formats the /data partition to f2fs as far as I know
 

halfbytecode

Senior Member
Apr 11, 2012
358
93
0
@legolas93 The required commit is kernel stuff from bricked nexus 5 kernel, if I understand correctly.

Any particular commits for adding F2FS support to a ROM?

Sent from my Nexus 4 using Tapatalk
 

ph37rd

Senior Member
Oct 6, 2012
1,072
634
0
56
No Root

If I do not have root access, is it just a matter of reflashing the ROM?
EDIT:
have to enable it in developer options.
 
Last edited:
  • Like
Reactions: qu3becker