EXT4 to f2fs? - X Play Q&A, Help & Troubleshooting

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.

Related

f2fs and OmniROM zips

I recently switched from ext4 to f2fs file system on all partitions. After that I flashed omni's nightly in order to update and noticed that my /system partition was reverted to ext4 due to the reformat while flashing.
I think it would be helpful if the OmniROM zips contained some sort of check routine, so the file system type could be preserved and future updates are possible without the whole process of backing up, reformatting and restoring again.
I know the file system type depends on kernel support and also the custom recovery must be able to work with it, but I think it's the users responsibility anyway. I mean, either you know what you're doing or you leave it alone, right?
I hope this gets realised or there is some compromise. Currently I'm using latest OmniROM with Devil's recovery and kernel without dualboot.
Sent from my GT-N7100 using Tapatalk
klenamenis said:
I recently switched from ext4 to f2fs file system on all partitions. After that I flashed omni's nightly in order to update and noticed that my /system partition was reverted to ext4 due to the reformat while flashing.
I think it would be helpful if the OmniROM zips contained some sort of check routine, so the file system type could be preserved and future updates are possible without the whole process of backing up, reformatting and restoring again.
I know the file system type depends on kernel support and also the custom recovery must be able to work with it, but I think it's the users responsibility anyway. I mean, either you know what you're doing or you leave it alone, right?
I hope this gets realised or there is some compromise. Currently I'm using latest OmniROM with Devil's recovery and kernel without dualboot.
Sent from my GT-N7100 using Tapatalk
Click to expand...
Click to collapse
That's a lot of work and means maintainers then have to officially support testing two different filesystem configurations.
f2fs on /system is pointless since /system is only written to when updating. Even Motorola, one of the first OEMs to actually use f2fs, only uses it for /data
For devices that don't already use it, I'm not transitioning them. It doesn't offer enough performance benefits to compensate for its piss-poor data integrity. A filesystem that can get corrupted to the point of needing a complete format just to get its fsck to run without crashing (this has already happened to me TWICE on the Moto G) is just not ready for production.
Entropy512 said:
f2fs on /system is pointless since /system is only written to when updating. Even Motorola, one of the first OEMs to actually use f2fs, only uses it for /data
For devices that don't already use it, I'm not transitioning them. It doesn't offer enough performance benefits to compensate for its piss-poor data integrity. A filesystem that can get corrupted to the point of needing a complete format just to get its fsck to run without crashing (this has already happened to me TWICE on the Moto G) is just not ready for production.
Click to expand...
Click to collapse
Well, pretty much makes sense. I just updated and let system be ext4 formatted from now on.
Sent from my GT-N7100 using Tapatalk

[Q] Please explain F2FS

Hi,
I've been seeing all the new F2FS ROMs and Kernel's being developed for the N7. I'm very interested in trying it out, but I'm also getting very confused. I know what it is in principle, "a different file system created to be more optimized to the characteristics of NAND memory in flash devices." (as explained in the XDA article) - but what's the difference between 'F2FS' and All-F2FS'; which partitions does each modify? is there a performance difference between them? which ROMs/Kernel's can be used on each? etc?
Thanks!
F2FS means only the /data partition is formatted with the filesystem, while All-F2FS means all of the partitions are.
AFAIK, for F2FS one only needs a compatible kernel (and recovery) and can use any rom.
For All-F2FS one need a compatible kernel, recovery and rom.
(I'm not using f2fs myself, so someone with more experience can correct me if I'm wrong.)
Thanks Erovia, that helps
Now the question remains, is there much/any performance difference between F2FS and All-F2FS..?
I'm sure there is, but since the most used partition (in I/O perspective) the ext4->f2fs/all-f2fs gain is bigger than the f2fs->all-f2fs gain.

F2FS on A500 possible?

Is it possible to make a full f2fs converted Rom for the A500? I know that we need a special Kernel and a supported recovery. what must be change inside the kernel for f2fs?
Any Ideas?
Basti667 said:
Any Ideas?
Click to expand...
Click to collapse
Yes its possible and thors roms had this but dropped out as file system overhead was too large and there was not enough space on ssytem partition for gapps.
If we had smaller gapps, it should work?
pointless to have system f2fs... since its read only...theres little gain....
f2fs on data is much more effective since its actively used for read/write...

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.

F2FS Out of the Box?

Quick question, when having the Moto G4 Play, does it already come with F2FS already set? Or do I need to change the EXT4 to F2FS via TWRP? Just curious, that's all.
The /data partition is f2fs by default. Unfortunately the stock ROM doesn't seem to support f2fs for SD cards though.
spiked_mistborn said:
The /data partition is f2fs by default. Unfortunately the stock ROM doesn't seem to support f2fs for SD cards though.
Click to expand...
Click to collapse
Lame. So do I have to format it to f2fs to support it via TWRP?
zeeBomb said:
Lame. So do I have to format it to f2fs to support it via TWRP?
Click to expand...
Click to collapse
TWRP will likely support any filesystem on the SD card, but the stock ROM only supports exfat/fat32. CyanogenMod is usually much more tolerant of different filesystems and should support f2fs.
spiked_mistborn said:
TWRP will likely support any filesystem on the SD card, but the stock ROM only supports exfat/fat32. CyanogenMod is usually much more tolerant of different filesystems and should support f2fs.
Click to expand...
Click to collapse
Great! Whats the best system I should change? /data? /system?
zeeBomb said:
Great! Whats the best system I should change? /data? /system?
Click to expand...
Click to collapse
These are partitions, and they can be formatted with different types of filesystems. The /data partition is already f2fs, and the /system partition only supports ext4. No changes necessary here. The only change that you might want to make would be to your external SD card, and then only if you will be using a custom ROM. The stock ROM only supports exfat/fat32. If you only plan on using custom ROMs you might see some improvements by formatting your SD card f2fs.
spiked_mistborn said:
These are partitions, and they can be formatted with different types of filesystems. The /data partition is already f2fs, and the /system partition only supports ext4. No changes necessary here. The only change that you might want to make would be to your external SD card, and then only if you will be using a custom ROM. The stock ROM only supports exfat/fat32. If you only plan on using custom ROMs you might see some improvements by formatting your SD card f2fs.
Click to expand...
Click to collapse
Ooohhhh I see. Would it be a good idea to change the system to f2fs on CM?
zeeBomb said:
Ooohhhh I see. Would it be a good idea to change the system to f2fs on CM?
Click to expand...
Click to collapse
Pros:
Possibly faster, but by how much, who knows?
Likely less wear on the flash, but for a typical usage scenario in a phone it probably doesn't matter.
Cons:
The card can't be accessed directly in Windows, only Linux (maybe Mac?)
Stock ROM doesn't support it.
You could end up in the situation I'm in where you change phones and the new one only has the stock ROM that does everything you need it to, and you have to copy 55GB of stuff off your f2fs SD card, contemplate if you want to make it adopted storage or just exfat, and then copy everything back.
spiked_mistborn said:
Pros:
Possibly faster, but by how much, who knows?
Likely less wear on the flash, but for a typical usage scenario in a phone it probably doesn't matter.
Cons:
The card can't be accessed directly in Windows, only Linux (maybe Mac?)
Stock ROM doesn't support it.
You could end up in the situation I'm in where you change phones and the new one only has the stock ROM that does everything you need it to, and you have to copy 55GB of stuff off your f2fs SD card, contemplate if you want to make it adopted storage or just exfat, and then copy everything back.
Click to expand...
Click to collapse
I meant /system and f2fs on the SD which u answered. Good points tho you never know.

Categories

Resources