yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Original Development] SkOrPn:
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
[Nexus 7 Original Development] legolas93:
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:
[Nexus 7 Original Development] SkOrPn:
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:
[Nexus 7 Original Development] brclho:
only got 13840 on my cm11 nexus 7 on antutu. looking forward to more f2fs development!
[Nexus 7 Original Development] SkOrPn:
Did you modify CM11 yourself to work with All-F2FS?
[Nexus 7 Original Development] brclho:
nope, normal cm11. just wanted to post a comparison to f2fs.
[Nexus 7 Original Development] TarteMan:
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+ ?
[Nexus 7 Original Development] brclho:
sorry i will clarify. i have not done f2fs conversion yet. this is stock file system (whatever it is) with cm11 antutu score.
[Nexus 7 Original Development] TarteMan:
okay :D

but anyone can compare antutu or quadrant score between All-F2FS rom and Data-F2FS Rom ? :p
[Nexus 7 Original Development] SkOrPn:
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.
[Nexus 7 Original Development] SkOrPn:
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.
[Nexus 7 Original Development] top_bunk:
Don't know what I'm doing wrong but every time I flash the format zip and go the reboot recovery I lose SU and can't mount cache after that.

Reverted back to stock then re-rooted, tried again and the same thing.

Any ideas?
[Nexus 7 Original Development] SkOrPn:
Try wiping cache after that, or flash the zip several times. I ignored it and just flashed the zip several times and it still worked.
[Nexus 7 Original Development] Toepack24:
thanks for that update. :)
[Nexus 7 Original Development] CptKlink:
For me I also get the can't/doesn't mount cache after the first install of the formatpartitions.zip. SO i do it the same thing a 2nd time and works every time. So for me to fix that problem just run the format.zip then restart in to recovery again and run the format.zip again and it will work. Like i said this works for me every time.
[Nexus 7 Original Development] SkOrPn:
This also works for me every time. I flash the zip, then reboot the recovery and flash the zip again. Cache mounts just fine after that.
[Nexus 7 Original Development] DasGensu:
That did the trick for me as well, now running all f2fs! One more thing: can I use every Rom with the m-kernel? Or do you need to modify more stuff to get a Rom to work on f2fs?
[Nexus 7 Original Development] top_bunk:
Thanks guys, that did solve the cache issue - it seems to have cause a bigger issue though! On boot after the SlimKat logo it's now asking for a password to decrypt storage...I've never encrypted it. Help! :confused:
[Nexus 7 Original Development] SkOrPn:
Oh boy, this has been answered already a hundred times. You did it wrong. Try again, but change your steps.
[Nexus 7 Original Development] top_bunk:
So it has, I completely missed the format data step. All fixed, thanks for the help!
[Nexus 7 Original Development] SkOrPn:
How did you get your data back onto the sdcard? Did you use an OTG cable or did you use ADB and push the files back. Yeah the decrypt thing is because of a misstep of formatting, or formatting at the wrong time. And the mounting issue is because it needs to be done several times with reboots in between. Not sure why, but it isn't yet supported or documented very well, so everyone is making trial and errors. Glad you got it figured out.
[Nexus 7 Original Development] irishobo:
I was able to simply wipe the cache then reboot recovery. After the reboot I was able to format data without any errors.
[Nexus 7 Original Development] adomol:
At this point, it might even be a good idea to add a note about this error to the OP. So people don't freak out when they run into it.
[Nexus 7 Original Development] SkOrPn:
I wish... lol

---------- Post added at 05:33 PM ---------- Previous post was at 05:31 PM ----------

Yeah several have mentioned that wiping cache also works after the formatting has been done, or flashing the zip twice. I get the same affect doing either but not sure why.
[Nexus 7 Original Development] Heartlessangel2001:
how do you know if fsfs installed is there and apk that tell what the partition are.
[Nexus 7 Original Development] SkOrPn:
Try disk info in play store.
[Nexus 7 Original Development] jamiethemorris:
[MENTION=2743057]legolas93[/MENTION] does the recovery have to be built with a f2fs supported kernel or does only the ROM need an f2fs supported kernel? I'm having trouble adding f2fs support for my device.
[Nexus 7 Original Development] adomol:
Your starting point is the modded TWRP. That will get the partitions formatted to f2fs. Then you go from there with an f2fs ROM and kernel.
[Nexus 7 Original Development] ispukan:
Just curiosity

Just curious if i want to get back to stock data format is it possible ? ( in case i want to sell my tablet )
[Nexus 7 Original Development] SkOrPn:
Yes, just do a restore to stock as usual. I already did it once and it worked just fine
[Nexus 7 Original Development] adomol:
Is that with fastboot and a factory image?
[Nexus 7 Original Development] SkOrPn:
No, I am lazy and used NRT. lol
[Nexus 7 Original Development] adomol:
Got it. I'm on Ubuntu so fastboot is my friend. :)
[Nexus 7 Original Development] SkOrPn:
Fastboot is the proper way imo... Have you ever used Heimdall on Ubuntu for a Samsung device by chance? I want to know if a custom twrp recovery.img can be flashed using it.
[Nexus 7 Original Development] adomol:
Sorry, never owned a Samsung. I haven't heard of Heimdall either. What is that?
[Nexus 7 Original Development] SkOrPn:
ODIN: Its a engineering level flashing app built by Samsung software engineers that has been getting leaked to the public for several years now. Probably one of the best flashing apps on the planet, however its for Windows. All Samsung devices sold have their original software flashed onto them by ODIN, at the manufacturers QA departments. It is made only for Samsung devices.

Heimdall: Is ODIN's arch enemy, and another high quality flashing application originally built for users of Samsung devices who didn't want to use a Windows machine to flash their devices (or didn't trust the initial releases of ODIN, which were known to cause bricks), or who were having problems with getting the drivers to work. Which is my case...

Anyway, this is off topic. Sorry...
[Nexus 7 Original Development] Natakranta:
OT but educational. Thank you!

My only Samsung is Galaxy Nexus, so fastboot all the way :)

I've never seen Odin or Heimdal.
[Nexus 7 Original Development] SkOrPn:
I used both programs back when I was professionally debricking Samsung devices like the Vibrant. Nexus devices use Fastboot but for something like the Galaxy S line it uses Odin or Heimdall. It's been a few years now so I don't know if Samsung has fastboot on their devices or not. I know it was not on my Vibrant but it was on my Nexus S.
[Nexus 7 Original Development] DroidArt:
F2FS conversion success!

Good day fine community.

Since many people experienced various problems with this idea (including me!), I tried to help as best I possibly could.

Warning: I have not tested this fix stopping with TWRP and FormatPartitions.zip. All steps below have been tested including steps to flash ROM (and kernel, if needed - some ROMS have kernels injected within) and GAPPS.

I also did not mention which ROM (and Kernel) I use, for this thread belongs to legolas93, and promoting anything else would be misplaced.

legolas93, very well done indeed!

After 3 days of trial and error and much frustration, I finally could get my aging Nexus 7 2012 to fly again, and like never before at that!:good:

As is expected, this may not work for some of you, but since I reverted back to stock, this could be seen as a uniform starting point, so DO A NAND BACKUP FIRST!

Although I am yet unsure if this has any bearing, I tested this with the 3.34 bootloader.

Again, I am not responsible for anything that happens to your device; I just compiled this quick fix from various data found on XDA.

Unfortunately, since I tried many solutions by doing my homework of reading, reading, reading the threads again and again and again, I cannot pinpoint exactly to whom the credit all goes to. However, I did hit the thank button where appropriate. :silly:

For those who still have trouble converting to F2FS, here's what I did, all precisely laid down in exact sequence. So even if some of them MAY seem odd, unnecessary or in wrong sequence it has worked for me:

1: Back to stock Factory ROM 4.4.2, KOT49H, (with NRT {Wugfresh’s Nexus Root Tool Kit found here});

2: Unlock-Root procedure with NRT, selecting

as well

the option to Flash Recovery (manually choose modded open recovery 2.7.0.0 F2FS found above - will have a Red Arrow on bottom right, as opposed to standard TWRP, if succesfully flashed);

3: Copied both files to sdcard (TWRP-recovery img {even if I flashed it in step 2}, and FormatPartitions.zip), (+ ROM and GAPPS,

see warning below

);

4: Flashed TWRP-recovery img with Flashify TWICE, found here.

5: Rebooted to newly flashed Recovery FROM Flashify (could not from bootloader, nor from NRT, and the fact that 4 way reboot is not installed initially with stock ROM);

6: Flashed FormatpartitionsZIP TWICE;

7: Rebooted to Recovery (within Recovery), installing SuperSU all the while;

*Warning: the steps 8, 9 & 10 REQUIRES that you have a compatible F2FS ROM (and kernel, if not included) and GAPPS, on your device, since I did all the steps in sequence, so I would have a working ROM at the end of the file conversion process.

8: Flashed F2FS compatible ROM TWICE, and F2FS compatible GAPPS TWICE;

9: Rebooted to Recovery;

10: Formatted data (your sdcard) TWICE (from the WIPE menu - NOT wiping anything, just sliding the slider), both times inputting "yes" to format .

11: Rebooted system: Voila! Was in F2FS compatible ROM!

Enjoy F2FS!

Hit the Thank button if I helped you in any way.
[Nexus 7 Original Development] Fransis88:
you know where I can download the 2.7.0 version of TWRP F2FS support for tilapia?

thanks
[Nexus 7 Original Development] minifig:
Just a small note: the link to 'SlimKat version' is not complete (it lacks the 'f' from 'forum' and maybe also the http://.
[Nexus 7 Original Development] minifig:
While flashing all the zips in the new recovery, I noticed a lot of errors about not being able to mount /cache.

I formatted /cache in the new recovery, then formatted /system again to start with a fresh install.

Unfortunately, I formatted /data allready so I can't reinstall the zips of the rom or GApps.

The problem I have now is that my PC doesn't see my tablet as a USB device; not in recovery and not in bootloader menu. So I can't put the files on the SD card.

If anybody can help me out while keeping the new recovery (i.e. not going back to stock image and so on), that would be nice.

Thanks,

Roger
[Nexus 7 Original Development] DroidArt:
@ minifig. You might want to see my post here: http://xdaforums.com/showthread.php?p=52318766
[Nexus 7 Original Development] minifig:
I finally got it working with adb. I pushed the rom and gapps and installed them in recovery.

Your nrt put me in the right direction. Thanks for that.
[Nexus 7 Original Development] DroidArt:
@ minifig. Pleasure. Would be appropriate to thank WugFresh and legolas93 as well, if not done, I think... Without these boys, I would be lost. Cheers! :P
[Nexus 7 Original Development] jazzespresso:
I see a lot of TWICEs:p, so i guess I have to think twice before I do anything or jump on F2FS stuff:cool:

good steps though...thank you!!
[Nexus 7 Original Development] DroidArt:
Happy to assiat, jazzespresso.

It's actually easier than it appears. I just wanted to help legolas93 in my own way.

I have learned that help is the currency in this community, so I chip in. :cool:

Don't forget the help button.
[Nexus 7 Original Development] LucentBirch:
If I want to update my rom (vanir) to the latest nightly, what's the recommended process to do that? I would also like to keep faux123 as the kernel. Would I just flash rom update, reboot to recovery, then flash kernel?
[Nexus 7 Original Development] SkOrPn:
I'm using the F2FS app in the play store with great success. After it creates a F2FS ROM ready for flashing I just flash it and then flash my favorite kernel on top. Working fantastic for the latest SlimKat.
[Nexus 7 Original Development] minifig:
Out of curiosity:what's your favorite kernel?
[Nexus 7 Original Development] SkOrPn:
a tweaked m-kernel is my favorite.
[Nexus 7 Original Development] LucentBirch:
Well, I'm not using all f2fs, only /data at the moment...
[Nexus 7 Original Development] s1l3nt:
Just converted Paranoid Android to f2fs with the app and flashed m kernel as well. So far it's running amazingly well.
[Nexus 7 Original Development] legolas93:
I have just pushed an update for "Convert To F2FS" to support Nexus 7 3G (2012)

I have started a thread for All-F2FS Recovery for Nexus 7 3G (2012) Here

I don't have the 3G version so i can't test it. But it should work without problems.

Finally some love for our brothers.. :D
[Nexus 7 Original Development] Bladyle:
I have a problem.

This recovery can't format my /cache so i end with bootloop

https://drive.google.com/file/d/0B4c1glOsYkwJNjI0dmI3dGt5LTQ/edit?usp=sharing
[Nexus 7 Original Development] minifig:
I had the same thing. Go back into recovery and format /cache manually instead of with the formatpartitions.zip
[Nexus 7 Original Development] LucentBirch:
Is there anyone just on /data f2fs that has ever flashed an update of their rom? What was the process you used?
[Nexus 7 Original Development] PrizmaticSmoke:
You just need to flash a compatible kernel after flashing the rom update, otherwise same as usual.

Edit: I would avoid OTA type updates via apps or built in rom functionality, as you would still need to enter recovery and flash a compatible kernel to boot successfully anyways.
[Nexus 7 Original Development] LucentBirch:
So if I was going to flag faux123, I would flash rom, reboot to recovery and flash kernel?
[Nexus 7 Original Development] PrizmaticSmoke:
I typically never bother with the reboot to recovery step, just flash rom, then kernel (and maybe gapps again if needed), then reboot system.
[Nexus 7 Original Development] LucentBirch:
I did that and now i have the password to decrypt storage page...
[Nexus 7 Original Development] PrizmaticSmoke:
Try flashing the kernel again, make sure it's one that supports /data on f2fs format (lego kernel, m-kernel test 2, and faux's latest should all support this i believe).

If using faux or m-kernel, you may have to flash lego kernel first to get the modified ramdisk in place, then flash the other kernel on top of it, as i don't believe faux or m-kernel include the modified ramdisk needed for this to work.
[Nexus 7 Original Development] LucentBirch:
I don't need to do any cache or dalvik wipe? Or what about formatting data? I've been reading all over this thread and the slimkat, and it seems no one else has been asking about this at all... :P
[Nexus 7 Original Development] PrizmaticSmoke:
You can wipe cache and dalvik, but that shouldn't be what's causing your issue. You also shouldn't need to format data if it's already f2fs and you're only updating the rom you were already using.

Not a lot out there about just /data on f2fs anymore as i think a lot of folks have switched to all-f2fs. This and the slimkat thread are both more relevant to all-f2fs. The lego kernel thread (http://xdaforums.com/showthread.php?t=2664392) may have more info in it about only /data on f2fs, that's really where this all started.
[Nexus 7 Original Development] LucentBirch:
I tried flashing legoKernel and it failed to flash...it flashed the first time I converted to f2fs...

Edit: weirdest thing...after legokernel failed, I flashed M-kernel test1 and it booted up and is now optimizing apps...I am never going to understand how this stuff works...
[Nexus 7 Original Development] PrizmaticSmoke:
LOL

Well, sounds like you got it working at least, glad to hear it. :good:
[Nexus 7 Original Development] :
Did a clean installation of CM11 nightly 09/05/2014 (with the new theme engine/chooser) converted with the lastest version of the app. Everything is extremely laggy. The M6 converted with the app worked extremely well. Any idea? [MENTION=2743057]legolas93[/MENTION]??
[Nexus 7 Original Development] aosp:
You guys can modify these scripts for free

figue/f2fs-scripts · GitHub - http://goo.gl/FOK6LO
[Nexus 7 Original Development] lotherius:
edit: n/m I read something I should have read in the first place, and answered my own question.
[Nexus 7 Original Development] legolas93:
Yesterday i converted 10/05/2014 Nightly for myself and it works without problems. Maybe the Nightly before had some problems.

Let me know! :D
[Nexus 7 Original Development] lotherius:
Honestly, though that may be the case... ... Is there a version of Lego that supports All-F2FS without using SlimKat?
[Nexus 7 Original Development] aosp:
Add settings to enable/disable f2fs forcing mode so we can switch on …

…the fly. Force will force all wipe/format calls to use f2fs or ext4 depending on the selection. Also added code to ensure settings are re-written back to internal sd after a super wipe. Also removed fstab code to determine the mode since we now have a setting for it

http://goo.gl/NTamfl

Add code to analyze the fstab to determine whether we are in f2fs mod…

…e or ext4 mode

http://goo.gl/MJXQpE
[Nexus 7 Original Development] Kewjoe:
Having some issues with this recovery. Yesterday, i had this recovery working. Followed instructions, was on Legolas' Slimkat 4.8, all was well. Today, I bought and installed the F2FS converter and tried converting the new Slimkat 5.0. Tried flashing, but ran into problems. Now i can't get into the F2FS recovery. the Teamwin logo comes up, but then it just jumps into a boot. I am unable to actually get into the recovery.

If i flash the regular TWRP 2.7.0.0, i can get in fine. I tried re-downloading the F2FS TWRP and tried re-flashing it several times, but i cannot get into it.

Any ideas?

Edit: got my issues sorted out. I'm all good now.
[Nexus 7 Original Development] hummer010:
Thanks to the OP!!

I've managed to pull this off with a modified version of Paranoid Android beta 4. The only problem I had was install gapps. When I tried to use the PA gapps, I got an error stating there wasn't enough space in /system to install, and the install of gapps failed. I used the slim-AOI gapps, which worked fine, but then I get the slim modded apps (dark play store and dark keyboard etc.)

Why would I get the error about the /system free space, and how do I fix it? I would rather use the PA gapps than the slim ones.
[Nexus 7 Original Development] hummer010:
I got it solved. I removed the size check portion of the updater-script, and the PA gapps installed no problem.

The N7 really benefits from the F2FS!

Thanks everyone!

---------- Post added at 09:41 AM ---------- Previous post was at 09:29 AM ----------

I should add, this really is easier than it looks, at least on the N7. I've done it twice now, and it has worked right off both times. Thanks to legolas93 for everything! The convert to F2FS app works perfectly, and the modified TWRP does too!
[Nexus 7 Original Development] FormeriPhoney:
Can someone please tell me or link me to the latest twrp for nexus 7 2012? I purchased one on swappa and the previous owner has an old version of CWR and I'm trying to get on the latest twrp and can not figure out how to get there from where I am. thanks.!
[Nexus 7 Original Development] Kewjoe:
2.7 is the latest. If you don't want the f2fs version, go here: http://xdaforums.com/showthread.php?t=1779092
[Nexus 7 Original Development] :
DiskInfo shows /system partition as full (649/649 MB). Is it supposed to be like this? Had to modify GApps update script because it told me there wasn't enough space. Everything booted fine, but I'm worried that everything didn't get flashed properly :confused:
[Nexus 7 Original Development] asilentcivilian:
excellent write up man. but for the life of me I cannot get anything to boot. tried carbon and slim and followed your instructions to the T, along with all of the other instructions out there. I'm putting the nexus toolkit to good use that's for certain. but wtf am I doing wrong lol
[Nexus 7 Original Development] djd338:
Agree - great instructions. Just my situation but, I followed them to the letter also & ended in a bootloop at the Slim boot image. So, I booted back to recovery, then wiped system again. Then I flashed the partition zip once followed by the rom, gapps & then it booted right up.
[Nexus 7 Original Development] asilentcivilian:
thanks for chiming in! may I ask how you reflashed after wiping system in recovery since all data was lost after formatting? did you use the nexus root kit to push the zips to your sdcard?
[Nexus 7 Original Development] djd338:
I had the entire internal storage backed up. I use a meenova micro adapter & 32 gb SD card which is installed every time I go to recovery. TWRP reads it just as well as your internal storage & is equally as fast using a class 10 card (or is negligible to me).
[Nexus 7 Original Development] asilentcivilian:
baller. I'll have to look into picking one of those up haha
[Nexus 7 Original Development] muzaffarkhan95:
nexus 4

iz the restore thing to ext4 is tested??? or v need to flash stock img to get back?
[Nexus 7 Original Development] PrizmaticSmoke:
Do you mean the restorepartitions.zip?

I converted back to ext4 once to test this, and it worked fine for me.
[Nexus 7 Original Development] DroidArt:
djd and civilian: there was a recent update on the Toolkit from wug that had a few bugs. Since I used the previous unbugged version l, I suggest you take a look there: maybe it'll point something out. I am now too busy to search the details. Have fun!
[Nexus 7 Original Development] asilentcivilian:
thanks will do!
[Nexus 7 Original Development] asilentcivilian:
just a quick update, i did manage to get slim installed on my nexus. after the initial flash in recovery of the rom and gapps, i formatted data, rebooted recovery and then used wug's toolkit to manually push the rom and gapps back to the sdcard. flashed rom/gapps and booted just fine afterwards!
[Nexus 7 Original Development] DroidArt:
@ civilian. Glad to hear it. Now the pure joy if Slim is at your disposal. :P