yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] nathanchance:
Alright guys, new build is up. This should be much more stable than it was since it's built off of Omni's 6.0 branch (thank you so much to [MENTION=5672995]jcadduono[/MENTION] for pointing me in the right direction). Here's what's been tested and verified working:

F2FS tools (1.7.0, both make.f2fs (log) and fsck.f2fs (log) work fine for me)

The Nethunter kernel zip [MENTION=5138621]t83wood[/MENTION] had issues with flashing (log)

ElementalX zip (log, boot fine for me on Pure Nexus)

Encryption (decrypts with or without the security enabled on boot option)

Everything should be 100% good now, though if it isn't, I

NEED

a recovery.log (Advanced > Copy Log). Hope you all enjoy!

[MENTION=2545403]chevycam94[/MENTION], change the zips back to the previous way they were, we now have working Busybox :p
[Nexus 6P Android Development] chevycam94:
Oh, NOW you want me to change it back....Lol. Make up your mind!

It actually seems that the fix was already implemented into Ubuntu4Kitchen's latest update. Both options should work fine now.
[Nexus 6P Android Development] t83wood:
Tried this, keeps asking for encryption password after bootlogo then reports the password was correct but my data is corrupt. Tried flashing a modified boot.img to get around it but no dice. Formatted data back to ext4, set up android, backed up data partition, converted data to f2fs, restored the backup, booted up and same encryption error. Also tried with your kernel [MENTION=6842057]The Flash[/MENTION] and same result. Only thing I can think of is maybe it's because I didn't format data in the previous recovery I was using but idk because it booted without encryption errors with data formatted as ext4. I've been using the rm rf option in twrp settings too after f2fs conversion. I could use the same method of flashing stock and a modified boot image that got me out of the encryption problem when I was using lineage but that's going to put me back at having an ext4 data partition. I kinda almost through my phone at the wall just now setting this up 3 times... But settled for writing a book here instead lol... any idea what I'm doing wrong?

Edit- Not sure what worked that wasn't before because I've done so much wiping and formatting and fresh installs but something worked and now f2fs is working after rom setup without asking for encryption password. Now I'm flashing the nethunter chroot and kernel and viper and will report back on my success or lack thereof.

Edit 2- chroot and kernel flashed fine it seems but it's not booting, not really looping either just sitting at the google splashscreen where google is in all white letters. I'll grab a log for this thread and the nethunter thread after I give up waiting for it to boot. So close! The only other hurdle I'm anticipating is using dual boot patcher with the f2fs filesystem but it's not a deal breaker if that won't work, I'd rather have one rom that I feel like runs faster than two roms that I feel lilke would run slower on ext4 even if the performance differences are negligible.

Edit 3 rebooted into bootloader mode after it didn't boot for a while by holding power+volume down, selected recovery, recovery was pretty slow loading, grabbed the logs and attached them below.

Edit 4 - tried a newer version of the nethunter kernel after realizing I probably corrupted the zip even though it flashed, still didn't boot all the way while [MENTION=6842057]The Flash[/MENTION]'s kernel booted. New logs attached with the newer kernel's name appended to the file names.
[Nexus 6P Android Development] Prouder:
Sorry, a little behind. By the looks of it, there is no way to keep/have encryption after converting?
[Nexus 6P Android Development] nathanchance:
I have never tried because I want to be decrypted.
[Nexus 6P Android Development] kouss77550:
I have the latest Flash TWRP F2FS Recovery, and I'm encrypted with password asked on boot, TWRP can decrypt my partition w/o a problem
[Nexus 6P Android Development] HTC_Phone:
On PN this worked for me and successfully booted with f2fs. I tried to modify the hosts file (for ad blocking) and change the emojis, and it failed to boot after those changes. I'm testing now if making all changes before backing up/restoring data partition using rm -rf and seeing if it boots up.
[Nexus 6P Android Development] JRJ442:
I've done font changes and used AdAway to change the host file and all had been fine PureNexus. I used the same process to switch to f2fs as well.
[Nexus 6P Android Development] HTC_Phone:
Interesting. The only thing that may be it is that I remove system apps such as contacts and dialer to use the Google versions, but that doesn't deal with /data, so I'm not really sure.
[Nexus 6P Android Development] JRJ442:
Did that too. I always remove them so I don't have duplicates.
[Nexus 6P Android Development] HTC_Phone:
You did that after restoring the /data partition and everything?
[Nexus 6P Android Development] JRJ442:
Yes. I just dirtied a homemade build today and deleted those. Flashed fonts and all that.
[Nexus 6P Android Development] HTC_Phone:
Finally got it up and running and successfully f2fs with Pure Nexus. I'd say it's definitely worth the effort to get going. It's not a massive difference, but it's definitely noticeable.
[Nexus 6P Android Development] JRJ442:
I concur. I think there's a slight difference in app opening speed. What did you do differently this time, anything that comes to mind?
[Nexus 6P Android Development] HTC_Phone:
What I did was flash the emojis and modified hosts file along with everything else, went through the initial setup, then backup/restore /data partition. After that, I removed all the duplicate files with root explorer and then rebooted and installed everything after. Nothing too far than what you described, but like many in the thread have said, every phone is different. Glad I finally got it up and running
[Nexus 6P Android Development] LazerL0rd:
I still can't notice much difference. Maybe I've just gotten used to it :confused:?
[Nexus 6P Android Development] moi123:
Thank you, this worked well. As many have said, F2FS is noticeably smoother especially when opening apps and general multitasking. Liking it so far. Kudo's once again to [MENTION=6842057]The Flash[/MENTION] !
[Nexus 6P Android Development] nathanchance:
I agree. A lot of people swear off F2FS as placebo or too much effort for little gain in their eyes but it's a welcomed change for me. I've had no issues with it at all, no data loss or instability. To each their own though, I'm not here to sell people on it since it really is not for everyone but I don't think it's fair for people to say it makes no difference.
[Nexus 6P Android Development] Dbj.Dhaval:
Hey can u tell me a sure shot way to get f2fs bcoz I have tried all the possible methods for du rom and nitrogen rom with ur kernel Bt none of it worked but with RR rom I was able to get f2fs. So how come I am having no success with DU and nitrogen.
[Nexus 6P Android Development] nathanchance:
No idea, I don't have the time to constantly be formatting my device to test. I'm guessing fs_mgr is confused and remounts it as ext4, there is a commit to fix that but some ROMs don't want it.
[Nexus 6P Android Development] fezzy102:
Can you point me to the commit I'll be glad to try and add it.
[Nexus 6P Android Development] justin1221:
Flash flash's latest TWRP. I clean flashed uberstock open Gapps and flash kernel and booted to welcome screen. Stop there and reboot to TWRP, backup data only and transfer to PC. Change ext4 to f2fs in the TWRP backup filenames on PC. Convert FS of data and cache to f2fs and reboot recovery. Go to wipe and make sure that the FS change stuck. Go to settings make sure the formatting box is ticked. Reboot recovery again to make you don't have that "swipe to allow storage access blah blah screen". Transfer backup back to internal storage and restore back up. Reboot and you should be good. I don't think I left anything out and I just did this method and it worked.
[Nexus 6P Android Development] Dbj.Dhaval:
U restored twrp backup?
[Nexus 6P Android Development] spuri78:
+1. Thank you for this as after many trials and tribulations, I was successfully able to change to f2fs. Woooooooooooooooooooo!!! I can definitely see subtle differences on f2fs.

[MENTION=5866822]Dbj.Dhaval[/MENTION] use this guide. I tried it on Dark Rom and PN with no issues.
[Nexus 6P Android Development] nathanchance:
It should be this one: https://github.com/Flash-ROM/system_core/commit/1de267bb4ca54e16d5bde465337db8351f811eb9
[Nexus 6P Android Development] fezzy102:
Thank you kind sir always getting my butt out of a jam when dealing with kernels. Or in this case system/core.
[Nexus 6P Android Development] Techvir:
Love the amazing work both of you are doing for the fans
[Nexus 6P Android Development] HTC_Phone:
Since I'm not speaking from experience, hopefully someone who has can chime in... What's the best way to flash the PN build if I've got f2fs? Will I need to just dirty flash or is it possible that will bump it back to ext4?

Just don't want to boot loop right now
[Nexus 6P Android Development] nathanchance:
If you are already on f2fs without issues, dirty flashing won't change that.
[Nexus 6P Android Development] hh11bbaacchh11:
So, I just tried to make my phone work on f2fs. The thing is, after trying multiple times, I was able to boot up using the latest DU. After a notice said that I was using the wrong vendor, I rebooted to TWRP again and flashed the vendor image, but after rebooting to system, I got into a bootloop again. This was after a successful boot up. I even checked the file system of data and cache before flashing the vendor and they were both f2fs.

EDIT: Also, every boot to twrp, it's like it's being installed again and goes through the "swipe to allow system modifications". Is it supposed to do that?
[Nexus 6P Android Development] moi123:
I just clean flashed to Nitrogen using the steps above with Flash kernel...works fine.

EDIT : Seek, and ye shall find. DU does not support F2FS with its stock kernel. AFAIK most ROMs will work, but you need a F2FS compatible kernel, like Flash kernel.

Again, the steps have all been posted before. These steps worked for me (kudo's to [MENTION=5351947]Iceburn1[/MENTION]) :

and these instructions are in the OP for Nitrogen as well.
[Nexus 6P Android Development] jamsoolee:
Seems like PN doesn't like me...

Tried five times with PN, but no worky.

Then the only thing I change is I flash RR and it works like a charm.
[Nexus 6P Android Development] Dbj.Dhaval:
I have tried this steps but only works for rr rom and not for nitrogen and du. And I am also using flash kernel
[Nexus 6P Android Development] hh11bbaacchh11:
Does RR have the slow charging when using the stock charger? If not, then I'll go for another round.
[Nexus 6P Android Development] Dbj.Dhaval:
Nope.but I am on DU now. It's much smoother.
[Nexus 6P Android Development] hh11bbaacchh11:
So, DU works on F2FS?
[Nexus 6P Android Development] Dbj.Dhaval:
I tried Bt no luck
[Nexus 6P Android Development] jamsoolee:
Hated some stuff on RR, so I gave PN 2/15 build another try.

What I did to get it to work...

1. Adv. wipe everything.

2. Format

3. Change file system to f2fs (data and cache)

4. Flashed PN 2/15

5. Flashed dynamic mini gapps

6. Flashed Flash Kernel and wiped dalvik/cache

7. Reboot to recovery, make sure f2fs stayed

8. Reboot to system

9. Setup phone

10. Reboot to recovery

11. Flashed SuperSU v2.79

12. Flashed Flash Kernel again

13. Reboot to system, profit.
[Nexus 6P Android Development] seabro01:
It works with kernel that supports f2fs like Flash kernel.
[Nexus 6P Android Development] fr0styx:
I second that... able to boot up PN 7.1.1 (2/15) w/Flash Kernel (2/07)/SuperSU and have the exact same problem anytime i try to reboot to recovery (TWRP3.0.3-4 Flash F2FS)..
[Nexus 6P Android Development] ahmd gomaa:
+1
[Nexus 6P Android Development] hh11bbaacchh11:
Tried everything and following this guide by [MENTION=5351947]Iceburn1[/MENTION] worked. I guess I am stuck with RR, for the time being, until other roms support f2fs while I test f2fs. Thanks The Flash.
[Nexus 6P Android Development] HTC_Phone:
PN works with f2fs. For the most part.. most ROMs will work with f2fs, a lot of it depends on the kernel being f2fs compatible
[Nexus 6P Android Development] hh11bbaacchh11:
I used the latest Flash kernel. It's just that whenever I reboot with DU or PN with the Flash kernel already flashed, it won't boot past the GOOGLE logo.
[Nexus 6P Android Development] Dbj.Dhaval:
I tried the following method for f2fs

Format the phone where you have to type yes then used the latest flash recovery. Flash Uber rom change the data and cache let the phone reboot. It was in f2fs. Then clean flash du rom flash kernel and the phone booted again the phone was in f2fs. Then I checked rebooted the phone once again same in f2fs then once again and it won't get past Google logo. Tried that method for few times with DU and nitrogen rom same result. The phone will boot up the first time and survive the 1st reboot but after 2nd reboot can't get past Google logo. Finally gave up on this f2fs crap after wasting 5 hrs
[Nexus 6P Android Development] justin1221:
You must not be following the directions, you didn't mention restoring a backup at all. You should probably read through the thread. :good:
[Nexus 6P Android Development] semdoc:
Works great on AICP. Thanx for your hard work :good::good::good:
[Nexus 6P Android Development] Dbj.Dhaval:
Why shud I restore a backup. I was doing a clean flash.
[Nexus 6P Android Development] justin1221:
Do a clean flash on ext4, boot and setup The clean flash ,backup it up and use that one to restore. The restore keeps uj from resetting to ext4.
[Nexus 6P Android Development] justin1221:
It does work, i don't know why everyone is having issues. I just did it again this morning with ABC ROM and Flash kernel.
[Nexus 6P Android Development] galakanokis:
While restoring your data partition on f2fs will work and get you running I found that I could not update the ROM or anything else for that matter. If you are on a stable ROM that you like great but if you want nightlies, weeklies what have you I have found F2FS does not work well.
[Nexus 6P Android Development] justin1221:
I haven't been able to get a clean flash to boot with a fresh f2fs change ever without restoring a data backup. Once the ROM boots with f2fs, I can clean flash other Roms as long as the formatting setting is ticked.
[Nexus 6P Android Development] galakanokis:
I will double check again today. I have checked the formatting setting before but that was just on the data restore. Will try again and verify that it is ticked on a flash of a new ROM. Thanks for the tip.
[Nexus 6P Android Development] HamsterHam:
Is there a way to restore your ext4 nandroid or clean flash and clean data nandroid the only way?
[Nexus 6P Android Development] DEVILOPS 007:
Are you trying to restore an ext4 nandroid on f2fs for data and cache or just data?
[Nexus 6P Android Development] justin1221:
You can restore your ext4 on f2fs. I just had to change the file names from ext4 to f2fs and it worked.
[Nexus 6P Android Development] nhatminhng:
I followed several tutorials and now still get the bootloop problem. Even I flashed with ext4 type it is still stucking at the Google logo and reboot all the time.

Hey guys,

I tried to restore factory image but it still face a bootloop (a little bit different above that it comes to the four colour circle and then stuck). I'm getting frustrated now.

I flashed back the 3.0.3 TWRP, check that everything is back to ext4 and flash again the PN but it got the bootloop too. Stuck at the loading to the OS. Really need help now.
[Nexus 6P Android Development] DanJayF:
It's strange that it's still getting stuck even after a factory install. You used the flash-all.sh or .bat file in Google's factory image yeah? That should have reformatted all partitions anyway, but try running these manually in your bootloader from fastboot:

fastboot format system
fastboot format userdata
fastboot format cache

Sometimes it needs just that extra push or more than one format to reset back to factory settings. Then run the flash-all file again from the factory image. Other than that, I'm not sure tbh :confused:
[Nexus 6P Android Development] nhatminhng:
Thanks for your reply. I'm using step by step factory restore because I dont understand the instruction from Google "Open a terminal and navigate to the unzipped system image directory". It means I open cmd from the folder fastboot but how to navigate to the image directory and run the flash-all? When I open the flash-all it always said "'fastboot' is not recognized as an internal or external command, operable program or batch file."

---------- Post added at 01:56 PM ---------- Previous post was at 01:28 PM ----------

Sir you saved my life. Your script works. I'm relived now. Hell yeah. Sorry but I have to say goodbye to f2fs. Too scared now. Enjoy guys who successed with it,

---------- Post added at 02:02 PM ---------- Previous post was at 01:56 PM ----------

Sorry for spamming but I want to kiss you a thoudsand times. Havent got this excited feeling for a very long time.
[Nexus 6P Android Development] hsiehboss:
Do you have any problems with your phone?

我從使用 Tapatalk 的 Nexus 6P 發送
[Nexus 6P Android Development] DanJayF:
Those errors you have are from the Substratum app data directory. I don't use Substratum at all, I leave my phone Vanilla so I don't have experience with it.

Do they only appear after you've wiped for the first time or do they always appear? Have you backed up your Data partition yet? You might need to do a manual format of user data in fastboot. Make sure you're backed up first though.

fastboot format userdata
[Nexus 6P Android Development] hsiehboss:
It appear after "updating partition details......." in twrp every time。

[emoji27]

我從使用 Tapatalk 的 Nexus 6P 發送
[Nexus 6P Android Development] Techvir:
I had this issue..... Flash the regular TWRP.

Wipe everything. Then start all over..

One time I had to flash Google image

Sent from my Nexus 6P
[Nexus 6P Android Development] lucfig:
Gotta leave a feedback about my experience.

After many tries, I finally was able to use F2FS with NitrogenOS and flash kernel using this tutorial: https://xdaforums.com/showpost.php?p=71074016&postcount=264

After 2 days I rebooted in recovery. It displayed the message to keep the system read only which normally does not appear. I swiped to allow sustem modifications and to my surprise, my internal storage was empty. I tried a reboot to system without doing anything at recovery and it asked a password and gave me a message that my data is corrupt and I must factory reset.

I don't know what caused this but I beleive it is related to F2FS as this never happened before. Just a warning to keep everything backed up as F2FS is not officially supported.

- Nitrogen OS

- Full Dynamic Gapps

- Flash Kernel - just changed governors to interactive

- No extra zip flashed
[Nexus 6P Android Development] Holyman007:
Just sharing my experience.

Before converting to F2FS, I was on Pure Nexus nougat latest, ElementalX, Dynamic Gapps, Magisk 11.1, ThermalMod + CTT Mod.

Made sure I was properly backed up (nandroid data, boot, system copied to computer, all my folders in internal storage copied)

Then flashed F2FS TWRP using ADB and rebooted into recovery. Flashed Flash Kernel and followed the instructions on pg 1 (didn't need to fastboot format). After converting cache and data to F2FS, I rebooted to recovery and double checked that it stuck. Then copied all my folders back to internal storage and restored TWRP data ONLY (after checking rm -rf in TWRP settings). Yellow text appeared saying this backup may not work because ext4 format but I ignored it.

Reflashed PN, flash kernel, gapps, magisk, mods, wiped dalvik just in case.

First boot took a while but loaded into OS with no issues. Everything was restored properly and verified data and cache converted to f2fs using diskinfo. Currently playing with kernel settings.

Initial impressions are good and opening apps seem snappier but it could be placebo. Time will tell and if any issues arise.

Thanks Flash!
[Nexus 6P Android Development] hsiehboss:
Me too.

Everything is normal except Substratum app data directory r/w error。

Because I can not use the theme that i like, so i restore my phone to ext4.

我從使用 Tapatalk 的 Nexus 6P 發送
[Nexus 6P Android Development] DorianX:
My phone is running on f2fs and Substratum is working without issues

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 6P Android Development] hsiehboss:
Which Rom with your phone?

我從使用 Tapatalk 的 Nexus 6P 發送
[Nexus 6P Android Development] DorianX:
Pure Nexus (latest)

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 6P Android Development] xSilas43:
I dont think using the rm -f option is necessary anymore, i havent used it for a long time and never had any issues converting to f2fs with the backup method.
[Nexus 6P Android Development] DanJayF:
So sad news for my N6P today. Woke up from a nap yesterday with my phone by my side just charging with the screen off. When I woke it up I started getting "Google Play Services has stopped working", "Google App has stopped working", "Nova Launcher has stopped working" among a couple others and some visual glitches. The whole system seems to crashing! No idea what happened. So I restarted hoping it would fix the issue and I got stuck in a bootloop at the white Google logo, it never even got to the boot animation! So I knew the system or data partition had to be corrupted.

I tried reflashing my ROM (PureNexus) along with Flash Kernel and SuperSU but still got a bootloop. Tried to restore from my EXT4 backup from a few days ago but the MD5 signatures didn't match so the backup was corrupted too!

The only option was a clean install. So I've wiped my phone about 10 times using various method between yesterday and today trying to get the OS to boot when Data and Cache are on F2FS but my phone no longer wants to boot at all unless everything is EXT4 no matter what method I try!! I've tried everything, the only thing I could think of is the screen security that I never got to disable before it died was preventing me booting from an F2FS data afterwards but I doubt that. Could I have done some internal damage to the flash memory? Who knows.

So unfortunately I'm back on EXT4 now as before with PureNexus & Flash Kernel restoring from a cloud backup. I have all my important stuff backed up but it's just frustrating that I can't get it to run on F2FS anymore because I really saw a sizeable performance increase. [MENTION=6842057]The Flash[/MENTION] or anyone else have any ideas?
[Nexus 6P Android Development] nathanchance:
Hmmm it's 5am for me and I'm about to pass out but there should have been no damage to the internal storage. Did you try fastboot formatting the userdata partition then formatting to F2FS in TWRP?
[Nexus 6P Android Development] DanJayF:
Yep tried all the fastboot format commands before heading into TWRP to format F2FS. Then flashed all my zips, booted and got stuck in a bootloop at the white logo. V strange :(

Update: So I tried a few more things including what Nathan said...

If I successfully boot on EXT4, then "fastboot format userdata", then format F2FS, when I reboot, data goes back to EXT4.

If I format data in TWRP, reboot TWRP, then format F2FS and reboot, same thing. Boots successfully but data is back to EXT4.

I tried formatting F2FS after fastboot formatting, then flashing my ZIPs, but the device bootloops.

Finally I tried "fastboot format userdata/cache/system", then flash ZIPs, reboot TWRP, format F2FS then reboot system, but again...back to EXT4 :crying:

Maybe it's just my phone because I doubt this is common for most people but imma stay on EXT4 for now. My phone just doesn't want to cooperate anymore. No idea what happened to it haha :laugh:
[Nexus 6P Android Development] headcreepz:
Almost sounds like blod. Sucks...Same symptoms I had a couple days before mine went.