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

Search This thread

aosp

Inactive Recognized Developer
Aug 12, 2010
2,135
4,997
Add settings to enable/disable f2fs forcing mode so we can switch on …
…the fly. Force will force all wipe/format calls to use f2fs or ext4 depending on the selection. Also added code to ensure settings are re-written back to internal sd after a super wipe. Also removed fstab code to determine the mode since we now have a setting for it

http://goo.gl/NTamfl

Add code to analyze the fstab to determine whether we are in f2fs mod…
…e or ext4 mode

http://goo.gl/MJXQpE
 

Shaky156

Senior Member
Aug 19, 2012
1,214
2,240
HTC Desire
HTC Desire HD
Can anyone do a benchmark of androbench on ext4? Im running slimkat, with franco kernel, and heres the screenshot of f2fs, i dont think its an improvement compared to z1

uploadfromtaptalk1400351447732.jpg
 
It has it built in now by deafult. "Add GUI option to change or repair file systems on individual partitions. The change is destructive so backup your data including internal sdcard first. This option should make it a little easier to migrate a device from ext4 -> f2fs, for instance. You will find this option under Wipe -> Advanced Wipe, then select only one partition and then press the Repair or Change File System button. "

taken from the twrp thread for n5

I used it on my grouper and had no problems

Sent from my Nexus 5 using XDA Premium HD app
 
Last edited:

Roy360

Senior Member
May 18, 2011
101
1
unable to mount /cache, storage, /data

after installing that second zip

In rom, I have no access to /sdcard
 

Subrad5446@aol.com

Senior Member
Dec 17, 2011
225
23
I am having trouble getting this to work. I can get my rom converted and booting, but when I try to flash any custom kernel whatsoever, I get stuck at the google logo. Any idea?
 

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.