FORUMS
Remove All Ads from XDA

[MOD] [All ROMS] F2FS for TF700T

1,449 posts
Thanks Meter: 1,698
 
By Pretoriano80, Senior Member on 14th March 2014, 09:35 PM
Post Reply Email Thread
******************* INFO&CREDITS *******************

I know i've been away from this forum for a lot of time (mostly my Nexus 5 fault ) 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
******************* 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.


******************* 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
The Following 44 Users Say Thank You to Pretoriano80 For This Useful Post: [ View ] Gift Pretoriano80 Ad-Free
 
 
14th March 2014, 09:35 PM |#2  
Pretoriano80's Avatar
OP Senior Member
Thanks Meter: 1,698
 
Donate to Me
More
Post 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
The Following 9 Users Say Thank You to Pretoriano80 For This Useful Post: [ View ] Gift Pretoriano80 Ad-Free
14th March 2014, 09:46 PM |#3  
Recognized Developer / Recognized Contributor
Thanks Meter: 4,088
 
Donate to Me
More
Quote:
Originally Posted by Pretoriano80

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.
The Following 9 Users Say Thank You to _that For This Useful Post: [ View ]
15th March 2014, 01:42 AM |#4  
Senior Member
Flag Portland, Oregon
Thanks Meter: 701
 
More
Do you run into any issue with this f2fs so far?
The Following User Says Thank You to LetMeKnow For This Useful Post: [ View ] Gift LetMeKnow Ad-Free
15th March 2014, 06:31 AM |#5  
Pretoriano80's Avatar
OP Senior Member
Thanks Meter: 1,698
 
Donate to Me
More
Quote:
Originally Posted by LetMeKnow

Do you run into any issue with this f2fs so far?

Nope, no issue so far. At some point i was afraid that internal storage will die on me with all the formatting, installing and erasing i've did during F2FS tests, but still no issues.

Sent from my Nexus 5
The Following 2 Users Say Thank You to Pretoriano80 For This Useful Post: [ View ] Gift Pretoriano80 Ad-Free
16th March 2014, 03:47 PM |#6  
Senior Member
Flag Glendale Heights
Thanks Meter: 316
 
More
So does this zips the full internal storage or just the data part with apps and stuff?

Sent from my HTCONE using Tapatalk
16th March 2014, 08:58 PM |#7  
ariadnejro's Avatar
Senior Member
Thanks Meter: 52
 
More
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?
17th March 2014, 09:08 AM |#8  
Pretoriano80's Avatar
OP Senior Member
Thanks Meter: 1,698
 
Donate to Me
More
Quote:
Originally Posted by deadlocked007

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.


Quote:
Originally Posted by ariadnejro

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
The Following User Says Thank You to Pretoriano80 For This Useful Post: [ View ] Gift Pretoriano80 Ad-Free
20th March 2014, 09:17 AM |#9  
berndblb's Avatar
Recognized Contributor
Flag Los Angeles, CA
Thanks Meter: 1,973
 
More
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
20th March 2014, 09:45 AM |#10  
Pretoriano80's Avatar
OP Senior Member
Thanks Meter: 1,698
 
Donate to Me
More
Quote:
Originally Posted by berndblb

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
The Following User Says Thank You to Pretoriano80 For This Useful Post: [ View ] Gift Pretoriano80 Ad-Free
20th March 2014, 10:54 PM |#11  
dude2k5's Avatar
Senior Member
Thanks Meter: 281
 
More
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!
The Following 2 Users Say Thank You to dude2k5 For This Useful Post: [ View ] Gift dude2k5 Ad-Free
Post Reply Subscribe to Thread

Tags
f2fs, mod, tf700t

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes