[MOD] [All ROMS] F2FS for TF700T

Search This thread

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,952
******************* INFO&CREDITS *******************

I know i've been away from this forum for a lot of time (mostly my Nexus 5 fault :D ) but when i've seen that F2FS it's now possible on this device i decided to create an easier way to create&use this filesystem,so average users can try it and decide.The best part of XDA is that everyone can contribute in the best way he/she can.
Anyway all credit goes to: samsung (for the f2fs) , Alex Page <alex@apage.me>, @_that @Dees_Troy (TeamWin ), @dasunsrule32 (cyanogenmod), @Hundsbuah and to everyone who contributed to make this device better.Thank You all!



******************* About F2FS *******************

F2FS (Flash-Friendly File System) is a flash file system created by Kim Jaegeuk (Hangul: 김재극) 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.
Samsung chose a log-structured file system approach, which it adapted to newer forms of storage. F2FS also remedies some known issues of the older log structured file systems, such as the snowball effect of wandering trees and high cleaning overhead. Because a NAND-based storage device shows different characteristics according to its internal geometry or flash memory management scheme (such as the Flash Translation Layer or FTL), Samsung also added various parameters not only for configuring on-disk layout, but also for selecting allocation and cleaning algorithms. (source Wikipedia )


******************* WARNING *******************

* Please be aware that F2FS is still experimental and DATA LOSS or other issue may occur.
* You agree to use this MOD on you own risk and i don't take any responsability if you encounter any issue or if your personal data is lost

******************* Requirements *******************

  • Your tf700t device must be Unlocked
  • An external MicroSD card or a PC (for backup/restore )
  • A brain :D
******************* Preinstalling steps *******************


  1. Backup of your personal data to an external card or PC (photo,music,ringtones,etc)
  2. Create a backup from recovery and store it in a safe place (external sdcard or PC)
  3. Download twrp_f2fs from the Download Section (second post )
  4. Download a kernel from the Download Section (second post) - _that and Hundsbuah are for stock based roms only ; CM11 is for Cyanogenmod based.
  5. Download your favorite rom


******************* Install Steps *******************

1) Install twrp_f2fs recovery using one of the methods bellow

Fastboot method
Code:
fastboot -i 0x0B05 flash recovery twrp_f2fs.blob
fastboot -i 0x0B05 reboot
Terminal/ADB
Save twrp_f2fs.blob to the root of your /sdcard directly (internal memory only).
Launch terminal emulator or connect to your computer and open an adb shell, then type the following:
Code:
su

dd if=/sdcard/twrp_f2fs.blob of=/dev/block/mmcblk0p4
and reboot your device
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2) Reboot to recovery (if the recovery was installed you will see the 4 linux penguins after pressing the RCK button)
3) Enter the WIPE menu and select Format DATA ( warning all your personal data will be lost )
4) Wait until the format is complete then reboot to recovery again (if previous step was succefull your DATA partition is now F2FS )
5) Wipe Cache (Wipe Menu --> Advanced --> select only Cache partition and go)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

6) ROM installation ( you can choose several methods to get your system back and running)

a) if you already have a System installed you can skip to step 7)
b) install your favorite ROM from external sdcard and Reboot to Recovery
c) restore your previous backup from an external sdcard (select only SYSTEM and DATA partitions) and Reboot to Recovery

7) Install one of the F2FS kernels (based on the ROM you have) and REBOOT SYSTEM
Remember that everytime you install a new ROM you have to Reboot to Recovery and install an F2FS kernel.

That's it,the system should boot with an F2FS data partition,start playing with it. :good: :laugh:


******************* Rom2SD_F2FS *******************

NOTE:
  • In order to use Rom2SD you need to have a running and rooted stock-based ROM with busybox and a kernel with preinit support (_that and hundbuah kernels are one of them ;)
  • Also make sure there are no residual folders&files from an old Data2SD/Rom2SD setup ( basically delete the /boot folder in /system if there is one)

Partitioning your MicroSD -- > You can find a good tutorial (thx @sbdags) here

**** Install steps ****

  1. Download all the files from Rom2SD section in the Download page ( post #2) and save them on MicroSD
  2. Download a Kernel from the Download page ( choose the correct one depending on your favorite ROM base) and save it to MicroSD
  3. Boot your device in Recovery
  4. Install Rom2SD_F2fs.zip
  5. Install Rom2SD1.zip
  6. Go to Mount option and make sure Data partition is unchecked ,if not,uncheck it and press Home icon to go back to the Main menu (don't press back)
  7. Go to Wipe and press Format Data (this will format your external data partition to F2FS) - if is failing check the Mount option again
  8. Install your favorite ROM (don't reboot)
  9. Install an F2FS Kernel (don't reboot)
  10. Install Rom2SD2.zip
  11. Reboot and enjoy Rom2SD_F2FS

**** Tips ****
If you have a Backup for the Rom installed on external then you can restore your data and avoid the waste of time needed to configure everything again ;)

  1. Boot to Recovery
  2. Install Rom2SD1.zip
  3. Go to Restore and select the desired backup and check only Data
  4. Swipe to restore and then reboot to system


******************* Back2EXT4 Script *******************

Description: This script will help you format the Data partition to EXT4 without the need to change the recovery.

Instructions:

**** Internal Data ***


  1. Download Format Data to EXT4.zip from the download section and save it to MicroSD
  2. Reboot to Recovery
  3. Install Format Data to EXT4.zip --> Warning,your personal data will be lost
Now your data (mmcblk0p8) partition it's EXT4 but you can still use twrp_f2fs


**** External Data (Rom2SD/Data2SD setup) ***

  1. Download Format Data to EXT4.zip from the download section and save it to MicroSD
  2. Download Rom2SD1.zip from the download section and save it to MicroSD
  3. Reboot to Recovery
  4. Install Rom2SD1.zip
  5. Install Format Data to EXT4.zip --> Warning,your personal data will be lost
Now your data (mmcblk1p2) partition it's EXT4 but you can still use twrp_f2fs



*********************************************************************************************************************************************************************************************************************
Note: As you can see there are several ways to get your system up and running after your Data partition was formated with F2FS.Also based on my tests you can use an "old" EXT4 backup to restore on F2FS and should work viceversa too.
I will also update this thread with info on how to go back to EXT4 without changing the recovery,and also i will try to modify the Data2SD/Rom2SD scripts and make them F2FS compatible.


And btw,please kick that THANKs button
 
Last edited:

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,952
Downloads

********************************************************* Downloads *********************************************************

++++++++ Kernels ++++++++

That_F2FS.zip --> MD5 Sum: 1165247d099f5dbd5f5a4d4a848ff186
Kernel_F2FS_Hund_v3.4.5 --> MD5 Sum: 888e71f5fade857ed7a062dc08b36d77
CM11_Kernel_F2FS.zip --> MD5 Sum: e9772d2b8a63a009d0499c43fb93a6db
Build by @sbdags F2FS kernels



++++++++ Recovery ++++++++

twrp_f2fs.blob --> MD5 Sum: 4391cdfac9bf9660f52b8b0081543ea0


++++++++ Rom2SD_F2FS++++++++

Rom2SD_F2fs.zip -- > MD5 Sum: f5629e4fc9c40cbb7590152001de8179
Rom2SD1.zip -- > MD5 Sum: f6a6b0e5f0260078782a86c2e60c664e
Rom2SD2.zip -- > MD5 Sum: e82008368cb8ee663a70e63c6cb10040

++++++++ Back2EXT4 Script ++++++++

Format Data to EXT4.zip -- > MD5 Sum: 7ddbbbbe5d7e3c546c46ab8c185b4a70

********************************************************* Sources *********************************************************

Recovery - build from the official sources available in Omnirom 4.4 tree (android_bootable_recovery)with @that kernel (kernel source ).
Hundsbuah kernel - original kernel from here + modified ramdisk
_that kernel - original kernel from here + modified ramdisk
CM11 kernel - Source + Patch
 
Last edited:

_that

Recognized Developer / Inactive RC
Oct 2, 2012
4,821
4,211
Reboot to recovery (if the recovery was installed you will see the 4 linux penguins after pressing the RCK button)

Even if you hadn't told me before, I could guess which kernel your recovery is using. ;)

Thanks for making this package available to all users!

A warning to all potential users of f2fs: There is still no program to repair a corrupted filesystem - fsck.f2fs can only detect corruption but not fix it. Don't store anything important on f2fs.
 

ariadnejro

Senior Member
Apr 3, 2008
246
56
Xiaomi Poco F3
Thank you for the new recovery with f2fs support.
I'm running latest crombikk with your own cm kernel and the system is running smoothly. Androbench shows that the random write speed gets doubled.
However, my system is not completely stable. Sometimes it freezes without rebooting, specially trying to copy very large files. And sometimes the internal storage gets unmounted. I suppose it's kernel related.
Are you planning to give the option to format also /system and /cache on f2fs? Or you think it's not worth it?
 

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,952
So does this zips the full internal storage or just the data part with apps and stuff?

Sent from my HTCONE using Tapatalk

Internal storage will be completely wiped,so /data/media too.


Thank you for the new recovery with f2fs support.
I'm running latest crombikk with your own cm kernel and the system is running smoothly. Androbench shows that the random write speed gets doubled.
However, my system is not completely stable. Sometimes it freezes without rebooting, specially trying to copy very large files. And sometimes the internal storage gets unmounted. I suppose it's kernel related.
Are you planning to give the option to format also /system and /cache on f2fs? Or you think it's not worth it?

Didn't experienced issues so far but i 'm using CromiX here.
F2FS it's useful mostly for random write (or writing operations in general) ,there's no point using it for /system or /cache imo.

Sent from my Nexus 5 using Tapatalk
 
  • Like
Reactions: berndblb

berndblb

Inactive Recognized Contributor
Nov 22, 2012
4,875
2,113
Los Angeles, CA
I assume twrp_f2fs is compatible with the current .10 bootloader and all the current roms: CROMi-X 5.4, CROMBi-KK and CM 11?

Sent from my K00C using Tapatalk
 

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,952
I assume twrp_f2fs is compatible with the current .10 bootloader and all the current roms: CROMi-X 5.4, CROMBi-KK and CM 11?

Sent from my K00C using Tapatalk

twrp_f2fs it's based on official TWRP 2.7.0 and it should work fine with latest bootloader and all ROMs.
Basically i tested all those roms mentioned in your post and are working fine.

Sent from my Nexus 5
 
  • Like
Reactions: berndblb

dude2k5

Senior Member
Jul 9, 2010
761
284
www.futurenology.com
Seems to work well! I'm on the 3-19 build of CM11. Had really major IO issues with the device, nothing would make it even remotely usable, even on the performance CPU profile in both the cpu govenor and the asus cpu changer. It was always slow and laggy, it would not handle multiple things well, you basically had to single task. However, flashing this, doing my usual modifications, and it's making this baby fly again. I can open multiple apps and actually navigate without too much lag. Not sure if it's a placebo effect, but so far, it seems great, I'm able to install multiple things at once. I'll see how long this lasts (Wiping the SD can have some beneficial effects too) and I'll try to give an update later, it usually slows down after a few weeks. But this could be "settling" still, it's a fresh flash, even so, I'm happy it's usable again!
 

yew123

Senior Member
Dec 29, 2010
84
25
Brisbane
Hey is there any method available yet for this to work with rom2sd? Just imagining F2FS, rom2d, cromix 5.4 and hunds ET :p
 

_that

Recognized Developer / Inactive RC
Oct 2, 2012
4,821
4,211
Hey is there any method available yet for this to work with rom2sd? Just imagining F2FS, rom2d, cromix 5.4 and hunds ET :p

In theory it should work like any ROM2SD installation:

* install rom2sd1 to switch the device nodes to the external card
* format data to f2fs
* install your ROM and a kernel with f2fs-enabled fstab in the ramdisk, don't reboot
* install rom2sd2 to move the ramdisk files to the external /system and modify mount points

Disclaimer: Not tested, there may be issues with the CROMI-X installer trying to be too clever, ...
 

sbdags

Inactive Recognized Contributor
Jun 24, 2007
12,753
15,558
Kenilworth, Coventry
OnePlus 9 Pro
In theory it should work like any ROM2SD installation:

* install rom2sd1 to switch the device nodes to the external card
* format data to f2fs
* install your ROM and a kernel with f2fs-enabled fstab in the ramdisk, don't reboot
* install rom2sd2 to move the ramdisk files to the external /system and modify mount points

Disclaimer: Not tested, there may be issues with the CROMI-X installer trying to be too clever, ...

Well as long as you only do the data partition it should be OK. I'll look into f2fs support this week.
 

yew123

Senior Member
Dec 29, 2010
84
25
Brisbane
In theory it should work like any ROM2SD installation:

* install rom2sd1 to switch the device nodes to the external card
* format data to f2fs
* install your ROM and a kernel with f2fs-enabled fstab in the ramdisk, don't reboot
* install rom2sd2 to move the ramdisk files to the external /system and modify mount points

Disclaimer: Not tested, there may be issues with the CROMI-X installer trying to be too clever, ...

Thanks @_that, when i've got some free time i'll give it a go
 
Mar 31, 2013
14
0
Kyiv
CM10 kernel?

Have a request for you, guys. Can someone make f2fs kernel for CM10?
Because I really don't want update my TF700 to 4.4, and stock-based roms isn't my choice...
 

Frostbiter

Senior Member
Jan 5, 2012
287
85
Newark
I made 2 kernels for CM11 for data2sd setup with f2fs (sorry I know not CM10). But here they are if anyone wants to test them.

_thatv9 cm11 data2sd f2fs
DOWNLOAD
md5 sum : 8c340aca96c50ed734b0c903b80d8312

Hunds 3.4.5 cm11 data2sd f2fs
DOWNLOAD
md5 sum : 92cbf93223c07410758feb9921694353

These Kernels will work on all CM based roms not just cromi-kk?

Sent from my SPH-L710 using Tapatalk
 

I end up with encryption unsucessful error on boot using the _that/sbdags kernel then reboots and twrp runs an open recovery script, reformatting cache with the mk_ext4 (IIRC), then same error on boot.

The CM kernel runs smoothly for me, but cannot get the touchscreen to respond from a deep sleep. The screen will turn on / off with power button press, but unable to get past the reboot screen or slide to wake screen because there isn't a response with touch. Fully charged the screen reads 'connect your charger' and will not connect to adb so I could not get a log for you.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 45
    ******************* INFO&CREDITS *******************

    I know i've been away from this forum for a lot of time (mostly my Nexus 5 fault :D ) but when i've seen that F2FS it's now possible on this device i decided to create an easier way to create&use this filesystem,so average users can try it and decide.The best part of XDA is that everyone can contribute in the best way he/she can.
    Anyway all credit goes to: samsung (for the f2fs) , Alex Page <alex@apage.me>, @_that @Dees_Troy (TeamWin ), @dasunsrule32 (cyanogenmod), @Hundsbuah and to everyone who contributed to make this device better.Thank You all!



    ******************* About F2FS *******************

    F2FS (Flash-Friendly File System) is a flash file system created by Kim Jaegeuk (Hangul: 김재극) 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.
    Samsung chose a log-structured file system approach, which it adapted to newer forms of storage. F2FS also remedies some known issues of the older log structured file systems, such as the snowball effect of wandering trees and high cleaning overhead. Because a NAND-based storage device shows different characteristics according to its internal geometry or flash memory management scheme (such as the Flash Translation Layer or FTL), Samsung also added various parameters not only for configuring on-disk layout, but also for selecting allocation and cleaning algorithms. (source Wikipedia )


    ******************* WARNING *******************

    * Please be aware that F2FS is still experimental and DATA LOSS or other issue may occur.
    * You agree to use this MOD on you own risk and i don't take any responsability if you encounter any issue or if your personal data is lost

    ******************* Requirements *******************

    • Your tf700t device must be Unlocked
    • An external MicroSD card or a PC (for backup/restore )
    • A brain :D
    ******************* Preinstalling steps *******************


    1. Backup of your personal data to an external card or PC (photo,music,ringtones,etc)
    2. Create a backup from recovery and store it in a safe place (external sdcard or PC)
    3. Download twrp_f2fs from the Download Section (second post )
    4. Download a kernel from the Download Section (second post) - _that and Hundsbuah are for stock based roms only ; CM11 is for Cyanogenmod based.
    5. Download your favorite rom


    ******************* Install Steps *******************

    1) Install twrp_f2fs recovery using one of the methods bellow

    Fastboot method
    Code:
    fastboot -i 0x0B05 flash recovery twrp_f2fs.blob
    fastboot -i 0x0B05 reboot
    Terminal/ADB
    Save twrp_f2fs.blob to the root of your /sdcard directly (internal memory only).
    Launch terminal emulator or connect to your computer and open an adb shell, then type the following:
    Code:
    su
    
    dd if=/sdcard/twrp_f2fs.blob of=/dev/block/mmcblk0p4
    and reboot your device
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    2) Reboot to recovery (if the recovery was installed you will see the 4 linux penguins after pressing the RCK button)
    3) Enter the WIPE menu and select Format DATA ( warning all your personal data will be lost )
    4) Wait until the format is complete then reboot to recovery again (if previous step was succefull your DATA partition is now F2FS )
    5) Wipe Cache (Wipe Menu --> Advanced --> select only Cache partition and go)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    6) ROM installation ( you can choose several methods to get your system back and running)

    a) if you already have a System installed you can skip to step 7)
    b) install your favorite ROM from external sdcard and Reboot to Recovery
    c) restore your previous backup from an external sdcard (select only SYSTEM and DATA partitions) and Reboot to Recovery

    7) Install one of the F2FS kernels (based on the ROM you have) and REBOOT SYSTEM
    Remember that everytime you install a new ROM you have to Reboot to Recovery and install an F2FS kernel.

    That's it,the system should boot with an F2FS data partition,start playing with it. :good: :laugh:


    ******************* Rom2SD_F2FS *******************

    NOTE:
    • In order to use Rom2SD you need to have a running and rooted stock-based ROM with busybox and a kernel with preinit support (_that and hundbuah kernels are one of them ;)
    • Also make sure there are no residual folders&files from an old Data2SD/Rom2SD setup ( basically delete the /boot folder in /system if there is one)

    Partitioning your MicroSD -- > You can find a good tutorial (thx @sbdags) here

    **** Install steps ****

    1. Download all the files from Rom2SD section in the Download page ( post #2) and save them on MicroSD
    2. Download a Kernel from the Download page ( choose the correct one depending on your favorite ROM base) and save it to MicroSD
    3. Boot your device in Recovery
    4. Install Rom2SD_F2fs.zip
    5. Install Rom2SD1.zip
    6. Go to Mount option and make sure Data partition is unchecked ,if not,uncheck it and press Home icon to go back to the Main menu (don't press back)
    7. Go to Wipe and press Format Data (this will format your external data partition to F2FS) - if is failing check the Mount option again
    8. Install your favorite ROM (don't reboot)
    9. Install an F2FS Kernel (don't reboot)
    10. Install Rom2SD2.zip
    11. Reboot and enjoy Rom2SD_F2FS

    **** Tips ****
    If you have a Backup for the Rom installed on external then you can restore your data and avoid the waste of time needed to configure everything again ;)

    1. Boot to Recovery
    2. Install Rom2SD1.zip
    3. Go to Restore and select the desired backup and check only Data
    4. Swipe to restore and then reboot to system


    ******************* Back2EXT4 Script *******************

    Description: This script will help you format the Data partition to EXT4 without the need to change the recovery.

    Instructions:

    **** Internal Data ***


    1. Download Format Data to EXT4.zip from the download section and save it to MicroSD
    2. Reboot to Recovery
    3. Install Format Data to EXT4.zip --> Warning,your personal data will be lost
    Now your data (mmcblk0p8) partition it's EXT4 but you can still use twrp_f2fs


    **** External Data (Rom2SD/Data2SD setup) ***

    1. Download Format Data to EXT4.zip from the download section and save it to MicroSD
    2. Download Rom2SD1.zip from the download section and save it to MicroSD
    3. Reboot to Recovery
    4. Install Rom2SD1.zip
    5. Install Format Data to EXT4.zip --> Warning,your personal data will be lost
    Now your data (mmcblk1p2) partition it's EXT4 but you can still use twrp_f2fs



    *********************************************************************************************************************************************************************************************************************
    Note: As you can see there are several ways to get your system up and running after your Data partition was formated with F2FS.Also based on my tests you can use an "old" EXT4 backup to restore on F2FS and should work viceversa too.
    I will also update this thread with info on how to go back to EXT4 without changing the recovery,and also i will try to modify the Data2SD/Rom2SD scripts and make them F2FS compatible.


    And btw,please kick that THANKs button
    9
    Downloads

    ********************************************************* Downloads *********************************************************

    ++++++++ Kernels ++++++++

    That_F2FS.zip --> MD5 Sum: 1165247d099f5dbd5f5a4d4a848ff186
    Kernel_F2FS_Hund_v3.4.5 --> MD5 Sum: 888e71f5fade857ed7a062dc08b36d77
    CM11_Kernel_F2FS.zip --> MD5 Sum: e9772d2b8a63a009d0499c43fb93a6db
    Build by @sbdags F2FS kernels



    ++++++++ Recovery ++++++++

    twrp_f2fs.blob --> MD5 Sum: 4391cdfac9bf9660f52b8b0081543ea0


    ++++++++ Rom2SD_F2FS++++++++

    Rom2SD_F2fs.zip -- > MD5 Sum: f5629e4fc9c40cbb7590152001de8179
    Rom2SD1.zip -- > MD5 Sum: f6a6b0e5f0260078782a86c2e60c664e
    Rom2SD2.zip -- > MD5 Sum: e82008368cb8ee663a70e63c6cb10040

    ++++++++ Back2EXT4 Script ++++++++

    Format Data to EXT4.zip -- > MD5 Sum: 7ddbbbbe5d7e3c546c46ab8c185b4a70

    ********************************************************* Sources *********************************************************

    Recovery - build from the official sources available in Omnirom 4.4 tree (android_bootable_recovery)with @that kernel (kernel source ).
    Hundsbuah kernel - original kernel from here + modified ramdisk
    _that kernel - original kernel from here + modified ramdisk
    CM11 kernel - Source + Patch
    9
    Reboot to recovery (if the recovery was installed you will see the 4 linux penguins after pressing the RCK button)

    Even if you hadn't told me before, I could guess which kernel your recovery is using. ;)

    Thanks for making this package available to all users!

    A warning to all potential users of f2fs: There is still no program to repair a corrupted filesystem - fsck.f2fs can only detect corruption but not fix it. Don't store anything important on f2fs.
    9
    Here are 4 kernels I repacked for f2fs - let me know if there are any problems.

    CM11 4.4.2 Kernels
    _thatv9 cm11 f2fs
    DOWNLOAD
    md5 sum : a93873064ab6b3cc15cc4512bde2937e

    Hunds 3.4.5 cm11 f2fs
    DOWNLOAD
    md5 sum : eb4229add5c6e1b6523901b92b6d6616

    Asus Stock 4.2.1 Kernels
    _thatv9 f2fs
    DOWNLOAD
    md5 sum : 71491c7c88d32b0253c0c664a35ed43c

    Hunds 3.4.5 f2fs (with LMKs tweaks)
    DOWNLOAD
    md5 sum : 4be1ff9900c7dcbaa511f669bfc96c1e
    5
    I made 2 kernels for CM11 for data2sd setup with f2fs (sorry I know not CM10). But here they are if anyone wants to test them.

    _thatv9 cm11 data2sd f2fs
    DOWNLOAD
    md5 sum : 8c340aca96c50ed734b0c903b80d8312

    Hunds 3.4.5 cm11 data2sd f2fs
    DOWNLOAD
    md5 sum : 92cbf93223c07410758feb9921694353