[RECOVERY][All-F2FS] TWRP-2.7.0.0 with All-F2FS support [10/05/14]

Search This thread

adichandra

Senior Member
May 3, 2012
739
155
Elemental X has f2fs support too. i use it and it's been the best so far for me. undervolted 725. no s2wake etc because it wastes battery life.
 

kdh2834

Senior Member
Jul 12, 2012
217
149
Pune

Attachments

  • 1411237008428.jpg
    1411237008428.jpg
    116 KB · Views: 546

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    TWRP-2.7.0.0 with "All-F2FS" support

    NOTE: I don't have a Nexus 5 to test this. It should work.
    Please report back.​

    I have modified the standard TWRP recovery to work with F2FS partitions.
    This is for "All-F2FS" that mean that /system, /cache and /data are formatted with F2FS.
    Keep in mind that this can work only with a compatible kernel and ROM.

    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.

    Download:
    • FormatPartitions.zip: Here (It is named mako but work on N5 too)
    • TWRP-recovery img: Here

    Chagelogs:

    - 10/05/14: Fix TWRP
    - 08/05/14: Initial release

    Here are some explanations. Read them

    Recovery has the usual red back key to remember you that you are using a F2FS-recovery.
    If wiping /system and /cache and making a factory reset from Wipe menu doesn't work, use FormatPartitions.zip. (<- READ THIS)
    Instead wiping /data is fine within the wipe menu.

    To switch your /system, /cache and /data partitions to F2FS follow instructions:
    Keep in mind that you will lose all the files on the memory of your N5.

    You need:
    - Two files you can download above (img and FormatPartitions.zip)
    - A ROM with "All-F2FS" support
    (One way to make your ROM is with Convert To F2FS)
    - GApps (i think you want PlayStore.) Usual GApps. Slim AiO work well.

    • Copy a ROM with "All-F2FS" support to your N5
    • Copy GApps to your N5
    • Copy FormatPartitions.zip to your N5
    • Reboot in bootloader
    • Flash this recovery with Fastboot (Maybe Flashify works too)
    • Reboot in new recovery
    • Flash FormatPartitions.zip
    • Reboot recovery (It's needed for some reasons..)
    • Flash ROM
    • Flash GApps
    • Go to Wipe Menu and Format Data (Not a simple wipe)
    • Reboot
    • Done.

    It's easier than it seems :)



    To restore partitions to stock:


    - Download a standard TWRP
    - Download RestorePartitions.zip (It is named mako but work on N5 too)


    Enjoy. :D


    Thanks for:
    - dennes544 (All-F2FS Recovery is based on his Recovery)


    (Required Commit)
    (Source Here)
    6
    @legolas93 can this be done without the play store app? I can't afford to buy it, but I am comfortable grabbing recovery logs. I just haven't messed with this F2FS stuff yet. Not sure what ROMs, if any, are F2FS compatible already.

    There r no Roms which r f2fs-all compatible yet. But u can edit them urself to make them compatible.

    Without the playstore app also its simple u just hv to change the updater-script of the rom in the META-INF folder


    find for lines as below:
    HTML:
    format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
    mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

    and replace them with this:
    HTML:
    run_program("/sbin/mkfs.f2fs", "/dev/block/platform/msm_sdcc.1/by-name/system");
    run_program("/sbin/busybox", "mount", "/system");

    and sometimes u can see this line isolated
    HTML:
    mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

    so do the same thing and change it to this
    HTML:
    run_program("/sbin/busybox", "mount", "/system");

    and u need f2fs-all compatible kernels aswell..
    5
    You guys can modify these scripts for free

    figue/f2fs-scripts · GitHub - http://goo.gl/FOK6LO
    3
    Thanx :) fronco will be awsome

    Sent from my Nexus 5 using XDA Premium 4 mobile app

    I created a thread

    ill be updating whenever there is a new release within a day or two :)
    2
    Hello @legolas93
    Thanks for interesting
    Here is the log

    http://pastebin.com/4p5HP7cc

    With the help of micr0g (Thank you a lot!) we tested the procedure.

    OP updated with working TWRP Recovery for All-F2FS.

    Enjoy :D


    In case of problems report back.