[Asus Transformer TF700] Pretoriano80:
******************* 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>, [MENTION=4878287]_that[/MENTION] [MENTION=912474]Dees_Troy[/MENTION] (TeamWin ), [MENTION=2077215]dasunsrule32[/MENTION] (cyanogenmod), [MENTION=4931250]Hundsbuah[/MENTION] 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 *******************​

Backup of your personal data to an external card or PC (photo,music,ringtones,etc)

Create a backup from recovery and store it in a safe place (external sdcard or PC)

Download twrp_f2fs from the Download Section (second post )

Download a kernel from the Download Section (second post) - _that and Hundsbuah are for stock based roms only ; CM11 is for Cyanogenmod based.

Download your favorite rom

******************* Install Steps *******************​

1) Install twrp_f2fs recovery using one of the methods bellow

Fastboot method

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:

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 [MENTION=518363]sbdags[/MENTION]) here

**** Install steps ****

Download all the files from Rom2SD section in the Download page ( post #2) and save them on MicroSD

Download a Kernel from the Download page ( choose the correct one depending on your favorite ROM base) and save it to MicroSD

Boot your device in Recovery

Install Rom2SD_F2fs.zip

Install Rom2SD1.zip

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)

Go to Wipe and press Format Data (this will format your external data partition to F2FS) - if is failing check the Mount option again

Install your favorite ROM (don't reboot)

Install an F2FS Kernel (don't reboot)

Install Rom2SD2.zip

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 ;)

Boot to Recovery

Install Rom2SD1.zip

Go to Restore and select the desired backup and check only Data

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 ***

Download Format Data to EXT4.zip from the download section and save it to MicroSD

Reboot to Recovery

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) ***

Download Format Data to EXT4.zip from the download section and save it to MicroSD

Download Rom2SD1.zip from the download section and save it to MicroSD

Reboot to Recovery

Install Rom2SD1.zip

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