Enable F2FS for USERDATA & CACHE

pipyakas

Senior Member
Apr 22, 2013
1,164
280
103
Performance "degradation" because of formatting data to F2FS? Nope.
fill up your internal /data partition with small data, the more filled up it is the worse the performance would be, and it would be much worse than ext4 at that point
if ext4 performance can range from 7 to 5 at worse case, then f2fs would be a 9 then drop down to 2 or 3. So depend on your use case, maybe f2fs is better
 

ccelik97

Senior Member
Feb 22, 2015
204
93
0
fill up your internal /data partition with small data, the more filled up it is the worse the performance would be, and it would be much worse than ext4 at that point
if ext4 performance can range from 7 to 5 at worse case, then f2fs would be a 9 then drop down to 2 or 3. So depend on your use case, maybe f2fs is better
Who fills their flash based storages on their phones with hundreds of millions of small byte sized files? If you're to make claims on such extreme situations beyond a possible sane "normal" practice for a normal user, then please specify your reasons. Or else what you're doing would end up causing the people who are new to the topic to end up believing that when their userdata partition gets filled to the max it'd perform worse than EXT4 and (yeah even) for all operations. I don't know what you're doing with your phone but I can't imagine why would I end up having hundreds of millions of small files here in anytime soon.

For the others: F2FS is better for your flash based storage on your phones. Don't get confused and try it.
 

rhp_engcoy

Senior Member
Aug 8, 2015
263
57
0
Guys I need help. :( first I flash the oos rom and then flashed the attached FSTAB-EXT4&F2FS-encryptable=footer-BERYLLIUM.zip and change the data and cache to f2fs and then reboot system it freezes on boot logo then return again to boot logo and freezes again and again. Now I reverted back to ext4 and change rom it still freezes. Dunno what happened. Did I messed up something?
 

ccelik97

Senior Member
Feb 22, 2015
204
93
0
Guys I need help. :( first I flash the oos rom and then flashed the attached FSTAB-EXT4&F2FS-encryptable=footer-BERYLLIUM.zip and change the data and cache to f2fs and then reboot system it freezes on boot logo then return again to boot logo and freezes again and again. Now I reverted back to ext4 and change rom it still freezes. Dunno what happened. Did I messed up something?
It's possible that you're missing something else. Or ask the guy above your comment for help maybe.
 

rhp_engcoy

Senior Member
Aug 8, 2015
263
57
0
It's possible that you're missing something else. Or ask the guy above your comment for help maybe.
Thanks for replying. After reverted to ext4 i flashed miui and then flashed oos. Now the phone is working fine again. ? Unfortunately, didn't have a chance to use f2fs.
 

pfavayi

Senior Member
May 18, 2017
714
194
43
My brother has got a POCO F1 and, he wanted to format his userdata and cache partitions like me (Mi 6 user here, AEX Pie + Vantom Kernel) to F2FS on his POCO.
What I've tried (and succeeded) is, adding the lines from my fstab file to his fstab.



.
userdata =data + internal partition
Is this what you mean?

Edit:
Can you see your internal storage when you connect your phone to a Windows PC through a USB cable?
I am assuming that your internal storage has been formatted f2fs.

you can always do a
adb pull /vendor/etc/fstab.qcom
and edit the file on your PC, and then
adb push fstab.qcom /vendor/etc/
 
Last edited:

Garfield3333

Senior Member
May 10, 2012
227
216
63
worked perfect on Los....!!!!

.......format cache & data with official twrp to f2fs
.......flash firmware 9.2.25 and dfse 18.1....reboot into twrp...
........flash fstab ext4&f2fs.zip and lineageos from today.....
........flash (opengapps) or not......and Sphinx 2.6.....
.......wipe dalvik&cache and reboot.....

DIRTY FLASH IS NOT POSSIBLE......!!!!

THX ON ALL GUYS FOR SUPPORTING THIS AMAZING PHONE....!!!!


....maybe i can help somebody....THX...;)


http://abload.de/image.php?img=screenshot_20190313-2y9keh.png
 
Last edited:

ccelik97

Senior Member
Feb 22, 2015
204
93
0
userdata =data + internal partition
Is this what you mean?

Edit:
Can you see your internal storage when you connect your phone to a Windows PC through a USB cable?
I am assuming that your internal storage has been formatted f2fs.

you can always do a
adb pull /vendor/etc/fstab.qcom
and edit the file on your PC, and then
adb push fstab.qcom /vendor/etc/
Then do it that way. As you see I preferred to have a flashable zip as I may not be around a pc when I'm flashing a rom.
 
  • Like
Reactions: ocenyx and Jole7

pfavayi

Senior Member
May 18, 2017
714
194
43
Then do it that way. As you see I preferred to have a flashable zip as I may not be around a pc when I'm flashing a rom.
I asked some questions about what you wrote and you didn't answer (I wonder why?)
And then I gave you an alternative to the sane method (which I have used before). ... wondering why you didn't like it ...
 

thanhnvt194

Senior Member
Feb 21, 2015
1,144
454
113
Vancouver
worked perfect on Los....!!!!

.......format cache & data with official twrp to f2fs
.......flash firmware 9.2.25 and dfse 18.1....reboot into twrp...
........flash fstab ext4&f2fs.zip and lineageos from today.....
........flash (opengapps) or not......and Sphinx 2.6.....
.......wipe dalvik&cache and reboot.....

DIRTY FLASH IS NOT POSSIBLE......!!!!

THX ON ALL GUYS FOR SUPPORTING THIS AMAZING PHONE....!!!!


....maybe i can help somebody....THX...;)


http://abload.de/image.php?img=screenshot_20190313-2y9keh.png
then if theri is an update to los, how to update bro? clean flash?
 

ccelik97

Senior Member
Feb 22, 2015
204
93
0
I asked some questions about what you wrote and you didn't answer (I wonder why?)
And then I gave you an alternative to the sane method (which I have used before). ... wondering why you didn't like it ...
Did I say that I don't like your way of doing the same things? No. I just said that I'd prefer to have a flashable zip instead of using adb shell from a pc for a task like that.
 
  • Like
Reactions: Jole7

pfavayi

Senior Member
May 18, 2017
714
194
43
Did I say that I don't like your way of doing the same things? No. I just said that I'd prefer to have a flashable zip instead of using adb shell from a pc for a task like that.
You don't have to tell me you don't like or prefer my alternative manual method of doing the same thing...

I don't like or prefer anything you do and I don't tell you that...

If everybody told everybody else they don't like or prefer what they are doing , this forum would be an "I don't like/prefer" forum.

Besides my method is geared for the Linux gurus or would be Linux gurus, of which you are not. I can bet you my bottom dollar the devs (who are Linux gurus) use the same or similar methods rather than flash the files you flash..

If you don't like/prefer something , just keep your mouth shut. If you like/ prefer , hit the like button or say so out loud.

We do possitive reenforcements here , not negative, because positive begets positive and negative definitely begets negative...
 

ccelik97

Senior Member
Feb 22, 2015
204
93
0
You don't have to tell me you don't like or prefer my alternative manual method of doing the same thing...

I don't like or prefer anything you do and I don't tell you that...

If everybody told everybody else they don't like or prefer what they are doing , this forum would be an "I don't like/prefer" forum.

Besides my method is geared for the Linux gurus or would be Linux gurus, of which you are not. I can bet you my bottom dollar the devs (who are Linux gurus) use the same or similar methods rather than flash the files you flash..

If you don't like/prefer something , just keep your mouth shut. If you like/ prefer , hit the like button or say so out loud.

We do possitive reenforcements here , not negative, because positive begets positive and negative definitely begets negative...
Excuse me, what the actual muck?

Also, running a few commands from a remote device (your glorious linux pc) instead of using an already existing tool (twrp) on the actual, supposedly mobile device (your smart*phone) doesn't make anybody guru or expert of anything. You can do however you want and just because of someone told you that s/he doesn't like "your" way of accomplishing the same task doesn't make the platform any worse than it is already. It's just opinion sharing.
I mean, I don't remember telling you that *you* "can't" or "shouldn't" do that thing that way. I just said that *I* don't "prefer" that way when I can use the actual device do do the thing instead.

More on the sarcasm side, if you were that much of a "guru", you'd install nano (or any other mucked up text editor) on your phone and modify the file on twrp's terminal xd.

Jokes aside, you might like to go see psychologist. To me you're overreacting.

So, chill out. Nobody is trying to kill you or your preferences. We're just sharing our ideas.
 
  • Like
Reactions: ocenyx and sam_f
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone