[RECOVERY][All-F2FS] TWRP-2.7.0.0 with All-F2FS support [11/03/14]

legolas93

Senior Member
Jul 13, 2010
644
1,267
0
TWRP-2.7.0.0 with "All-F2FS" support

I have modified the standard TWRP recovery to work with F2FS partitions.
This is different from the previous recoveries that i published.
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
  • TWRP-recovery img: Here

Chagelogs:

- 11/03/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 N7.

You need:
- Two files you can download above (img and FormatPartitions.zip)
- A ROM with "All-F2FS" support (Like my SlimKat version)
(Or Make your ROM 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 N7
  • Copy GApps to your N7
  • Copy FormatPartitions.zip to your N7
  • 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

Hope i dind't any errors writing this down. I personally tested this procedure.
Enjoy. :D
 
Last edited:

farmerbb

Senior Member
Oct 9, 2011
459
339
0
Somewhere, Utah
Awesome work legolas!

So if I understand correctly, just having an f2fs-supported kernel isn't enough to run f2fs on all partitions? We need a modified ROM as well?

Also, are you going to make a modified TWRP 2.7 with MultiROM support?
 

legolas93

Senior Member
Jul 13, 2010
644
1,267
0
Awesome work legolas!

So if I understand correctly, just having an f2fs-supported kernel isn't enough to run f2fs on all partitions? We need a modified ROM as well?

Also, are you going to make a modified TWRP 2.7 with MultiROM support?
Yes. You need a modified ROM too.

Yes when i have some free time! As now this doesn't support MultiROM for the reason writed in OP.

Curious about which ROM has "All F2FS" support? Lego, did you modify one as such?

Sent from my Nexus 7 using Tapatalk
Yes :D. My SlimKat version is ready.
 
  • Like
Reactions: farmerbb and adomol

adomol

Senior Member
Jan 25, 2014
664
592
0
/etc/init.d
I can verify that everything is working as advertised... Installed your modified files and am now up and running with F2FS.

I'll post if I run into anything odd.


[EDIT] Finished restoring all my apps and data. And it's blazing! Ran an ANTUTU benchmark test and scored a

14829 vs. 12726 of a stock Nexus 7!!!

And the here are the numbers for the Quadrant benchmark: 5748 vs. 3517 for stock... nice!!

Thanks again legolas!
 
Last edited:

bhu1

Senior Member
Aug 1, 2011
5,307
4,517
0
25
Jaipur
Does the standard omni ROM will work with this? If not then where can I find a modified omni ROM? And where can we find modified gapps?

Sent from my Nexus 7 using Tapatalk
 

SkOrPn

Senior Member
Jun 3, 2007
2,932
931
113
Albuquerque, NM
www.planetamd64.com
Does the standard omni ROM will work with this? If not then where can I find a modified omni ROM? And where can we find modified gapps?

Sent from my Nexus 7 using Tapatalk
I believe users will have to ask their devs to provide a modified version of their ROM of choice. I'm going to give SlimKat a try with M-kernel here soon I think, just because legolas seems to be the only dev taking F2FS support seriously. I like that about him.

What is meant by "Normal Gapps"? I wasn't aware there was a Gapps considered not normal. There are only different versions of it. Can someone provide a link to "Normal Gapps" please? OP says in the play store but I do not find anything in the play store called normal gapps, or even gapps (although I did find something called Gapps Manager, hmmm). I normally use PA gapps or the latest CM gapps. Thank you

EDIT: Never mind, I just found that SlimROM's has their own version of Gapps, which seems to me to be the best choice if I am going to try SlimKat. lol

Sent from my Nexus 7 using Tapatalk
 
Last edited:

legolas93

Senior Member
Jul 13, 2010
644
1,267
0
I can verify that everything is working as advertised... Installed your modified files and am now up and running with F2FS.

I'll post if I run into anything odd.


[EDIT] Finished restoring all my apps and data. And it's blazing! Ran an ANTUTU benchmark test and scored a

14829 vs. 12726 of a stock Nexus 7!!!

And the here are the numbers for the Quadrant benchmark: 5748 vs. 3517 for stock... nice!!

Thanks again legolas!
Glad you like this :)

I believe users will have to ask their devs to provide a modified version of their ROM of choice. I'm going to give SlimKat a try with M-kernel here soon I think, just because legolas seems to be the only dev taking F2FS support seriously. I like that about him.

What is meant by "Normal Gapps"? I wasn't aware there was a Gapps considered not normal. There are only different versions of it. Can someone provide a link to "Normal Gapps" please? OP says in the play store but I do not find anything in the play store called normal gapps, or even gapps (although I did find something called Gapps Manager, hmmm). I normally use PA gapps or the latest CM gapps. Thank you

EDIT: Never mind, I just found that SlimROM's has their own version of Gapps, which seems to me to be the best choice if I am going to try SlimKat. lol

Sent from my Nexus 7 using Tapatalk
With "Normal" i mean the usual GApps you used (There are no need for some sort of special GApps..). Maybe "normal" can be a bit confusing.. :silly:
 

SkOrPn

Senior Member
Jun 3, 2007
2,932
931
113
Albuquerque, NM
www.planetamd64.com
Glad you like this :)

With "Normal" i mean the usual GApps you used (There are no need for some sort of special GApps..). Maybe "normal" can be a bit confusing.. :silly:
Ok, yeah that is a bit confusing, or at least the way you typed it is. Kinda made it seem like there was a different version I needed to look for, lol. So, normal is just what ever Gapps package you prefer to use? In other words, they should all work? Cool, thanks legolas... :good:
 

brclho

Senior Member
Jun 22, 2011
135
14
0
I can verify that everything is working as advertised... Installed your modified files and am now up and running with F2FS.

I'll post if I run into anything odd.


[EDIT] Finished restoring all my apps and data. And it's blazing! Ran an ANTUTU benchmark test and scored a

14829 vs. 12726 of a stock Nexus 7!!!

And the here are the numbers for the Quadrant benchmark: 5748 vs. 3517 for stock... nice!!

Thanks again legolas!
only got 13840 on my cm11 nexus 7 on antutu. looking forward to more f2fs development!
 

brclho

Senior Member
Jun 22, 2011
135
14
0
so that's the difference when all (system & data & cache) is in F2FS : 14k+ in antutu ? And a rom with just the data partition in F2FS got 13k+ ?
sorry i will clarify. i have not done f2fs conversion yet. this is stock file system (whatever it is) with cm11 antutu score.
 

SkOrPn

Senior Member
Jun 3, 2007
2,932
931
113
Albuquerque, NM
www.planetamd64.com
so that's the difference when all (system & data & cache) is in F2FS : 14k+ in antutu ? And a rom with just the data partition in F2FS got 13k+ ?
In real world terms, that is all the difference you need. The only other way to get your OS's file system any faster is to replace it with a real ssd. Its simple really, F2FS was made for NAND, and EXT4 was not.
 

SkOrPn

Senior Member
Jun 3, 2007
2,932
931
113
Albuquerque, NM
www.planetamd64.com
Ok, before I start all over can someone tell me how long the Google logo is supposed to stay on the screen please?Its been about 20 minutes now, so I am wondering if its upgrading android in the background but just not displaying it. lol

EDIT: Ok, 45 minutes later, I am giving up. Going to do it all a second time now.
EDIT2: 1 hour later. Got it working second time around. I guess this recovery does not like flashing all kinds of things at once. Just flashed Rom and Gapps and its booting apparently. Will flash the 3rd party kernel and MoAB later.
 
Last edited: