[HOWTO][Bacon][F2FS-ALL] F2FS Filesystem

Search This thread

Jole7

Account currently disabled
Dec 22, 2013
2,185
1,231
GB
meettomy.site
I have followed the above guide, each time after doing so, the system just reboots back to Philz recovery and won't boot the rom, Any thoughts or ideas Jole7?


Some details please rom? kernel?
Make sure the kernel you use is f2fs compatible. If the problem is still there do the process again with a clean flash.
 
Last edited:
D

Deleted member 6870501

Guest
Don't know what's the problem with this rom try from scratch with a clean flash. Are you on philz 6.59.4?
Are you still successfully running the latest version of darkobas rom with lightning kernel and all partitions as f2fs? It's weird because back when I tried the earlier versions of darkobas, your f2fs method worked. But now the rom won't even boot. Just sits at the 1+ logo. Any tips? I made sure I'm running the latest firmware, using clockworkmod advanced v6.59.4 made sure /data and /cache were already f2fs, and then backed up, wiped everything and formatted system as f2fs, then restored. Tried about 3 or 4 times until I gave up. This really sucks because I got to experience how amazing f2fs was :(
 

Jole7

Account currently disabled
Dec 22, 2013
2,185
1,231
GB
meettomy.site
Are you still successfully running the latest version of darkobas rom with lightning kernel and all partitions as f2fs? It's weird because back when I tried the earlier versions of darkobas, your f2fs method worked. But now the rom won't even boot. Just sits at the 1+ logo. Any tips? I made sure I'm running the latest firmware, using clockworkmod advanced v6.59.4 made sure /data and /cache were already f2fs, and then backed up, wiped everything and formatted system as f2fs, then restored. Tried about 3 or 4 times until I gave up. This really sucks because I got to experience how amazing f2fs was :(

I'm on jgcaap's cm13 rom now. Try with system ext4 and data-cache f2fs i don't know if the rom or kernel dosn't support system on f2fs now but not a big deal ext4 on system is fast also.

---------- Post added at 13:31 ---------- Previous post was at 13:26 ----------

I'm on jgcaap's cm13 rom now. Try with system ext4 and data-cache f2fs i don't know if the rom or kernel dosn't support system on f2fs now but not a big deal ext4 on system is fast also.
p.s must be in kernel that doesn't allow system f2fs to boot try also with previous versions of lightning kernel.
 

DerRomtester

Senior Member
Aug 20, 2012
2,899
5,824
27
Neumarkt
I'm on jgcaap's cm13 rom now. Try with system ext4 and data-cache f2fs i don't know if the rom or kernel dosn't support system on f2fs now but not a big deal ext4 on system is fast also.

---------- Post added at 13:31 ---------- Previous post was at 13:26 ----------


p.s must be in kernel that doesn't allow system f2fs to boot try also with previous versions of lightning kernel.

I am sure /system f2fs is a Rom problem if everything is ok in the fstab.
 
  • Like
Reactions: Jole7
D

Deleted member 6870501

Guest
The problem is that Darkobas rom doesn't support f2fs and a few builds back i made it 3 partitions f2fs with a workaround with lightning kernel and philz recovery.

It baffles me that these developers are locking their roms to ext4 ONLY. Simply doesn't make any sense. There's a way to setup the fstab to support both file systems when being flashed. Why all the lack of support for f2fs?
 

Jole7

Account currently disabled
Dec 22, 2013
2,185
1,231
GB
meettomy.site

kingsathurthi

Senior Member
Dec 1, 2013
94
11
Any one tell me purpose of this thread I'm new to xda forum actually I'm oneplus one user, I like to learn something about my device
 

wowschik

Member
Oct 25, 2009
7
0
can someone build my a slim6 Rom with f2fs?
i tryed myself but it doesnt work, i dont know why because im not good in coding and programming etc.

Would be awesome :)
 
D

Deleted member 6870501

Guest
Is there a simple way to add f2fs support for /system in a ROM that only supports /data and /cache? It seems the only reason all of our ROMs don't support f2fs on /system is due to laziness of adding support to the kernel the ROM comes with. People say its useless having /system as f2fs because it isn't used often, but I beg to differ.. I flash mods and updates in to /system all the time. F2fs would greatly help with this, along with the benefit of much higher read speed which = faster boot time. Just kinda bothers me f2fs support is 'half-assed' to put it as kindly as possible. Instead of adding full support, we're told its not worth the effort and we should just accept it. Sorry for the rant, I just expected to see more progress after dealing with this dilemma for over 2 years now. Any help on modifying android 6.0 to allow /system as f2fs would be greatly appreciated. Seems like I'm gonna have to do this on my own
 

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    All-F2FS Partitions for Oneplus One

    I am not responsible for any damage to your phone.
    Make always a full nandroid backup.
    Read before downloading or posting in the thread.
    Proceed with caution if you have no experience.
    Again, make always a full (including /data/media) nandroid backup.



    [ What is F2FS ]
    http://www.cnx-software.com/2013/01/15/f2fs-a-new-flash-file-system-for-mobile-devices-elce-2012/
    http://www.xda-developers.com/android/f2fs-put-to-the-test-against-ext4/
    http://en.wikipedia.org/wiki/F2FS


    [ TESTED WITH ROMs ]

    CM12 nightly
    CM11 nightly
    Temasek
    Slim Saber (tested by @Setting.Out)
    CM11S stock using complete guide with ak boot.img from CM11S kernel. (tested by @Leicxan)
    Calkulin's_OPO_ROM (tested by @DarkAngel-81)
    Madhi
    Gummy (tested by @Setting.Out)
    EOS (tested by @Setting.Out)
    Slim (tested by @Setting.Out)


    For CM12 use this guide:

    F2FS for CM12.X

    (if you test other roms, please report here, so we can track working roms)

    Use these recoverys to work with F2FS partitions:
    CWM Advanced Edition - PhilZ Touch
    or
    TWRP




    this guide for All-F2FS on OPO is based on guide of ronedogg.
    Original thread: http://xdaforums.com/showthread.php?t=2694201



    [ Prebuild ROM ]


    Download a F2FS ready ROM:
    CM-11-20141203-NIGHTLY-bacon-F2FS
    CM-11S-XNPH33R-bacon-signed-F2FS
    Calkulin's stock rooted XNPH33R-F2FS (thanks to @LookedPath)
    Madhi 8-30 build-F2FS (thanks to @SchmilK)
    SlimSaber-F2FS (thanks to @dexxa05)
    Droidkang-F2FS (thanks to @SchmilK)
    Carbon-F2FS (thanks to @Setting.Out)


    1. Flash Philz Recovery with F2FS support.

    WARNING make a FULL nandroid backup, and place it on external storage, also SD partition will be formatted
    2. Boot to the Philz Recovery, format /system /cache and "/data and /data/media" to F2FS
    3. Flash the downloaded modified rom, (install the gapps.zip if needed) and AK Kernel for your rom.
    4. Reboot & enjoy the new speed!


    [ Easy Way First time format in F2FS]
    [ without using a prebuild F2FS enabled rom ]

    1. Download latest CM nightly or CM11S
    2. Download:
    F2FS-ALL-CM11.zip for CM11
    F2FS-ALL-CM11S.zip for CM11S ( tanks to @Setting.Out)
    and extract boot.img and updater-script
    3. Copy the extracted boot.img in rom zipfile overwriting original one (tested with 7zip)
    4. Copy the extracted updater-script in rom zipfile overwriting original one, for cm11 is located under .\META-INF\com\google\android\.
    5. Flash Philz Recovery with F2FS support.

    WARNING make a FULL nandroid backup, and place it on external storage, also SD partition will be formatted
    6. Boot to the Philz Recovery, format /system /cache and "/data and /data/media" to F2FS
    7. Flash the modified CM nightly zipfile, the gapps.zip and AK Kernel ( for this step, i've used an OTG cable and an external hdd, because the phone now is completely empty, or use ADB sideloading)
    8. Reboot & enjoy the new speed!


    [ Easy Way Upgrading a rom with partition already on F2FS ]

    [ without using a prebuild F2FS enabled rom ]

    1. Download latest CM nightly (https://download.cyanogenmod.org/?device=bacon)
    2. Download F2FS-ALL-CM11.zip and extract boot.img and fstab.grouper
    3. Copy the extracted boot.img in the CM nightly zipfile overwriting original one
    4. Copy the extracted fstab.grouper in the CM nightly zipfile overwriting original one, located under .\META-INF\com\google\android\
    5. Flash the modified CM nightly zipfile, and AK Kernel
    6. Reboot



    [ Complete guide to manually modify the rom ]


    This is the exact procedure i've used for CM11 (OPO ready)
    to unpack/repack the boot.img i've used http://boot-repacker.blogspot.it/

    Oneplus ONE - CM Nightly with All-F2FS

    1. Download latest CM nightly
    2. Download AK kernel zipfile
    3. Open CM nightly zipfile, extract the boot.img
    4. Open AK kernel zipfile, extract the zImage and rename it boot.img-zImage
    5. Unpack the boot.img in step3
    6. Replace the boot.img-zImage in step5 with AK boot.img-zImage (step4)
    7. Replace fstab.grouper content with this one

    Code:
    # Android fstab file.
    #                                               
    # The filesystem that contains the filesystem checker binary (typically /system) cannot
    # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
    
    /dev/block/platform/msm_sdcc.1/by-name/system       /system         f2fs    ro,noatime,nosuid,nodev,discard,nodiratime,inline_xattr,errors=recover wait
    /dev/block/platform/msm_sdcc.1/by-name/userdata     /data           f2fs    noatime,nosuid,nodev,discard,nodiratime,inline_xattr,errors=recover wait,nonremovable,encryptable=/dev/block/platform/msm_sdcc.1/by-name/reserve4
    /dev/block/platform/msm_sdcc.1/by-name/cache        /cache          f2fs    noatime,nosuid,nodev,discard,nodiratime,inline_xattr,errors=recover wait
    /dev/block/platform/msm_sdcc.1/by-name/persist      /persist        ext4    nosuid,nodev,barrier=1,data=ordered,nodelalloc,nomblk_io_submit,errors=panic wait,check
    /dev/block/platform/msm_sdcc.1/by-name/boot         /boot           emmc    defaults                                                        defaults
    /dev/block/platform/msm_sdcc.1/by-name/recovery     /recovery       emmc    defaults                                                        defaults
    /dev/block/platform/msm_sdcc.1/by-name/misc         /misc           emmc    defaults                                                        defaults
    /dev/block/platform/msm_sdcc.1/by-name/modem        /firmware       vfat    ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0        wait
    
    /devices/platform/xhci-hcd*                         auto            auto    defaults voldmanaged=usbdisk:auto

    8. Repack boot.img place it back in the CM nightly zipfile
    9. On the CM nightly zipfile, edit updater-script and edit these lines:

    Code:
    mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
    replace it with
    Code:
    run_program("/sbin/busybox", "mount", "/data");

    this

    Code:
    mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
    replace it with
    Code:
    run_program("/sbin/busybox", "mount", "/system");

    and these

    Code:
    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");
    replace with
    Code:
    run_program("/sbin/mkfs.f2fs", "/dev/block/platform/msm_sdcc.1/by-name/system");
    run_program("/sbin/busybox", "mount", "/system");


    10. Save the updater-script and put it back to the zipfile. CM nightly zipfile is complete and ready for flashing.
    11. Flash Philz Recovery with F2FS support.

    WARNING make a FULL nandroid backup, and place it on external storage, also SD partition will be formatted
    12. Boot to the Philz Recovery, format /system /cache and "/data and /data/media" to F2FS
    13. Flash the modified CM nightly zipfile, the gapps.zip and AK Kernel ( for this step, i've used an OTG cable and an external hdd, because the phone now is completely empty, or use ADB sideloading)
    14. Reboot
    15. Enjoy the new speed!



    thanks to:
    @ak for the kernel
    @Phil3759 for recovery
    @ronedogg for original guide
    @katinatez & @johnnyslt for OPO F2FS enabled Philz Recovery
    5
    I built a TWRP recovery that supports F2FS. I've confirmed recovery can format and mount /cache so this should be good to go. If anyone feels daring feel free to try it.

    Note it's a public dropbox link so don't abuse it. Mirror it if a few testers can confirm this works.

    EDIT: And yes it's the same device as bacon and should pass as both find7op and bacon.

    https://dl.dropboxusercontent.com/u/31805083/twrp-2.7.1.0-find7op-UNOFFICIAL.img
    5
    Carbon F2FS

    Here's Carbon & Franco "all in one" ... no need to flash anything else but gapps and superSU

    DOWNLOAD

    *Wipe
    *Flash
    *Enjoy
    5
    This should be a working F2FS capable TWRP.

    It seems to be based off TWRP 2.8 as well.

    https://dl.dropboxusercontent.com/u/31805083/twrp-2.8.0.0-bacon-UNOFFICIAL.img

    CM11 flashed and booted fine for me.

    I haven't tested backup/restore yet. It should work fine. If you want to be safe, backup beforehand as this is mostly untested but should work.
    4
    Updated twrp 2.8.0.1 I dropped it in the unofficial twrp thread with f2fs support.

    Enjoy :D

    http://xdaforums.com/showpost.php?p=55417676&postcount=63