Ext4 to f2fs - Lenovo Vibe Z2 Pro Questions & Answers

I converted cache and data f2fs but system not change f2fs.How can I do it ? ( Sorry my bad english )

Ottoman61 said:
I converted cache and data f2fs but system not change f2fs.How can I do it ? ( Sorry my bad english )
Click to expand...
Click to collapse
You can't. At least not without a proper OS support.
LineageOS supports F2FS only on cache and data partitions.
F2FS should only improve write speeds (debatable, I haven't done any benchmarking), and since /system is read-only it doesn't really make much sense.
IMO it's not really worth the hassle, even for /data or /cache.

Electry said:
You can't. At least not without a proper OS support.
LineageOS supports F2FS only on cache and data partitions.
F2FS should only improve write speeds (debatable, I haven't done any benchmarking), and since /system is read-only it doesn't really make much sense.
IMO it's not really worth the hassle, even for /data or /cache.
Click to expand...
Click to collapse
I understand.Thank you so much @Electry

Related

New to F2FS & curious

So I'm just starting to look into the F2FS format for the N7 since everyone is just talking about it and the speed increase, new life, it gives to this great tablet. I have a few questions...
I'm currently running the following
File Format: ext4 all partitions
Rom: PA 5.0
Kernel: M Kernel a74
I've read up that PA does not support F2FS, and if you want to format to F2FS the user would have to change the rom themselves. Is there a simple way to go about this, as I do enjoy using PA.
2nd, I know m-kernel supports F2FS, do I just have to flash it and it works out of the box, or do I need to do some sort of setting?
3rd, Some people say they just format cache into F2FS, if I do this, can I still use PA 5.0 without changing the rom?
4th, Is the performance noticeably different between just cache in F2FS VS cache/data in F2FS? I assume if I format data into F2FS PA will have to be modded to run F2FS or flash another rom with F2FS support.
5th, Dumb question maybe, but why does everyone say not to format system into F2FS?
Thanks for any insight!
I use CM, not PA, but that's probably no difference here.
kazemitsui said:
I've read up that PA does not support F2FS, and if you want to format to F2FS the user would have to change the rom themselves. Is there a simple way to go about this, as I do enjoy using PA.
5th, Dumb question maybe, but why does everyone say not to format system into F2FS?
Click to expand...
Click to collapse
If you want to have /system on F2FS, you'll probably have to change the rom, otherwise not. since changing /system has no great impact (because there's no write access) you can leave it on ext4. In this case, you only have to flash an f2fs-compatible kernel (after each flashing of the rom), but don't need other changes.
kazemitsui said:
2nd, I know m-kernel supports F2FS, do I just have to flash it and it works out of the box, or do I need to do some sort of setting?
Click to expand...
Click to collapse
for data/cache yes, for all-f2fs not. Of course you still have to do the formatting in TWRP (or whatever). Remember that your internal storage (/sdcard) will be wiped if you format data.
kazemitsui said:
3rd, Some people say they just format cache into F2FS, if I do this, can I still use PA 5.0 without changing the rom?
Click to expand...
Click to collapse
usually it's cache and data, I never heard of someone only reformatting cache. But it should be possible, of course without changing the rom (besides kernel).
kazemitsui said:
4th, Is the performance noticeably different between just cache in F2FS VS cache/data in F2FS?
Click to expand...
Click to collapse
I don't know.
kazemitsui said:
I assume if I format data into F2FS PA will have to be modded to run F2FS or flash another rom with F2FS support.
Click to expand...
Click to collapse
As I said, I have never used PA, but for all roms I used data could be formatted to f2fs without changes in the rom. You only have to flash an f2fs kernel if the rom doesn't include one.

EXT4 to f2fs?

I was wondering that with TWRP 3.0, it is possible to convert the file system to f2fs. The performance in f2fs seems to be far greater when compared to ext4. Has anyone tried converting the x play to f2fs? If so, what all ROMs are compatible with it?
varounmirchi said:
I was wondering that with TWRP 3.0, it is possible to convert the file system to f2fs. The performance in f2fs seems to be far greater when compared to ext4. Has anyone tried converting the x play to f2fs? If so, what all ROMs are compatible with it?
Click to expand...
Click to collapse
I don't think it's possible to convert a filesystem to another, you'll probably need to format your partition in f2fs, so make a backup first.
Also, note that f2fs is designed to take advantage of nand-based storage. Have a look at http://www.xda-developers.com/f2fs-put-to-the-test-against-ext4/
claudineimatos said:
I don't think it's possible to convert a filesystem to another, you'll probably need to format your partition in f2fs, so make a backup first.
Also, note that f2fs is designed to take advantage of nand-based storage. Have a look at http://www.xda-developers.com/f2fs-put-to-the-test-against-ext4/
Click to expand...
Click to collapse
As far as I know, you do need to format in order to convert. I don't think any kind of conversion tool exists at this point, or may ever exist. I remember reading that there's only really a benefit to making the data partition f2fs (and perhaps the cache as well? I'm pretty tired atm so I can't confirm that.) If so, you should be able to format Data without reinstalling the ROM. Correct me if I'm mistaken!
Be aware that while f2fs is definitely faster, filesystems are relatively simple things that wind themselves into complex knots when put into action. So, despite f2fs being optimized for NAND, it hasn't been thoroughly tested the way EXT4 and others have. You could always run into some issues with data loss or other confusing bugs. Because of this, it's probably also safer to leave the System partition as EXT4, if you even can/would want to make it f2fs.
I'd also like to know if anyone has gotten f2fs working on the Moto X Play, @squid2 has f2fs driver updates listed in the changelog for his kernel, although it may also take support in the ROM to fully implement. Please let us know if you get it running! The performance is significantly faster, and it's also less wear-and-tear on the memory, if I understand correctly.
JohnHorus said:
As far as I know, you do need to format in order to convert. I don't think any kind of conversion tool exists at this point, or may ever exist. I remember reading that there's only really a benefit to making the data partition f2fs (and perhaps the cache as well? I'm pretty tired atm so I can't confirm that.) If so, you should be able to format Data without reinstalling the ROM. Correct me if I'm mistaken!
Be aware that while f2fs is definitely faster, filesystems are relatively simple things that wind themselves into complex knots when put into action. So, despite f2fs being optimized for NAND, it hasn't been thoroughly tested the way EXT4 and others have. You could always run into some issues with data loss or other confusing bugs. Because of this, it's probably also safer to leave the System partition as EXT4, if you even can/would want to make it f2fs.
I'd also like to know if anyone has gotten f2fs working on the Moto X Play, @squid2 has f2fs driver updates listed in the changelog for his kernel, although it may also take support in the ROM to fully implement. Please let us know if you get it running! The performance is significantly faster, and it's also less wear-and-tear on the memory, if I understand correctly.
Click to expand...
Click to collapse
Actually TWRP allows to convert the file system to f2fs (yes by formatting it obviously). Its usually recommended to convert the /data and the /cache partitions for optimum results. I had a Yu Yuphoria before this, and I had converted the file system to f2fs, and the performance was whooping fast.
And I did see that @squid2 has mentioned f2fs support in his kernel (i guess it comes directly from CAF) but I wanted to know which ROMs do support it? So far I don't see "f2fs supported" mentioned in any of the ROMs for our device and thats why I am still on hold.
We're already using f2fs. Even the stock ROM uses f2fs for the userdata partition.
So can we use f2fs with your Kernel and CM13? Data and cache partitions?
squid2 said:
We're already using f2fs. Even the stock ROM uses f2fs for the userdata partition.
Click to expand...
Click to collapse
Cache shows up as ext4 in TWRP, for me at least. Would that benefit from switching to f2fs?
Edit: Tried formatting the cache as f2fs, no boots.
F2fs does use a log, but still, it took up 128MB of the cache partition, seems kinda weird unless the partition actually grows to accomodate that. Maybe I did something wrong, idk.

Is any way to get f2fs on cache partition?

Hi, 6p users.
I am using my fast nexus 6p.
But I want to use more fast performance.
So I try to format cache partition but failed :crying:
So I search about this problem and I found cm13 jgcaap's build support formatting f2fs on cache partition.
But I want to use ota support rom.
Is there any rom support formatting f2fs on cache partition with ota?
Thanks. (and sorry about my bad English.)
minem said:
Hi, 6p users.
I am using my fast nexus 6p.
But I want to use more fast performance.
So I try to format cache partition but failed :crying:
So I search about this problem and I found cm13 jgcaap's build support formatting f2fs on cache partition.
But I want to use ota support rom.
Is there any rom support formatting f2fs on cache partition with ota?
Thanks. (and sorry about my bad English.)
Click to expand...
Click to collapse
Our cache partition is not big enough to support f2fs.
Triscuit said:
Our cache partition is not big enough to support f2fs.
Click to expand...
Click to collapse
I find it odd that Google decided to allow the 5X to utilize F2FS on both the data & cache partitions(running on my 5X now) but shrunk the 6P's cache size down so it can't. Google is one weird company when it comes to handling their phones.
Triscuit said:
Our cache partition is not big enough to support f2fs.
Click to expand...
Click to collapse
Then why it can on jgcaap's build?
(should I question jgcaap?)
minem said:
Then why it can on jgcaap's build?
(should I question jgcaap?)
Click to expand...
Click to collapse
Have you actually successfully formatted your cache to f2fs while on jgcapps builds?
Triscuit said:
Have you actually successfully formatted your cache to f2fs while on jgcapps builds?
Click to expand...
Click to collapse
Not used yet.
You mean it can't use any rom because cache size is too small to use f2fs?
minem said:
Not used yet.
You mean it can't use any rom because cache size is too small to use f2fs?
Click to expand...
Click to collapse
Yes
Triscuit said:
Yes
Click to expand...
Click to collapse
Okay, thanks.

f2fs support...

Which partitions should be formatted in f2fs ?
And what difference does f2fs make?
Please explain in simple words.
Thank you.
/data and /cache
Supposedly it's more efficient and faster, although the difference in real-life scenarios is negligible.
epraes said:
/data and /cache
Supposedly it's more efficient and faster, although the difference in real-life scenarios is negligible.
Click to expand...
Click to collapse
Why can't we use f2fs on system and internal memory partition?
I'm no expert at this, just a regular user. But my understanding is that f2fs is suited best for read/write filesystems. As /system is a read-only partition, it makes no sense to use f2fs instead of ext4. There may be some technical reasons behind it apart from this that I'm not aware of, though.
As for the internal storage, you can indeed format it with the f2fs filesystem. In fact, it's just a part of the /data partition. If you format /data, you format /data/media and your internal storage becomes f2fs.
That's all I know. Maybe some ROM developers or experts can give you some more insight about it.

Cache Format to F2FS for a slight performance boost

If you have TWRP installed the default cache partition filesystem is ext4, free up a bit of I/O bandwidth by changing the file system to F2FS.
EDIT: THIS WILL BREAK MAGISK---BE WARNED
igamer77z7 said:
if you have twrp installed the default cache partition filesystem is ext4, free up a bit of i/o bandwidth by changing the file system to f2fs.
Edit: This will break magisk---be warned
Click to expand...
Click to collapse
this will break magisk

Categories

Resources