F2FS in MIUI - Xiaomi Mi 5 Questions & Answers

Hi, wouldn't it be sufficient to switch to a custom kernel with f2fs driver to be able to run MIUI with a f2fs file system? It is even possible? With LineageOS you still cannot use f2fs on the /system partition (maybe in the initial ramdisk there is no f2fs driver ?) but at least /data and /cache partition, also on MIUI. Is there a way to do that?
I'm trying without success, installed a custom kernel which claims to have f2fs support, formatted the cache partition in f2fs to do some testing, typed the 'df' command in the linux shell but no cache partition is displayed.

Using f2fs on the /system isn't a good idea to begin with, the /system is a read only partition so you wouldn't benefit from anything that f2fs gives.

Related

F2FS support

People around i9300 kernel developement backported F2FS and managed to boot modified omnirom.
Should I bring this stuff to upstream?
GR0S said:
People around i9300 kernel developement backported F2FS and managed to boot modified omnirom.
Should I bring this stuff to upstream?
Click to expand...
Click to collapse
f2fs for external SD cards: Sure
f2fs for /data - Not until the next Android revision, you can put all the infrastructure there, but changing from ext4 to f2fs would require wiping /data
Entropy512 said:
f2fs for external SD cards: Sure
f2fs for /data - Not until the next Android revision, you can put all the infrastructure there, but changing from ext4 to f2fs would require wiping /data
Click to expand...
Click to collapse
Wiping is okay.
We can try f2fs on /system, it gets formatted each time anyway. I know it won't give us massive performance boost, but it will be nice start point for now.
Why we can't use f2fs on /data?
Moto X has it already.
PS: can I use debian's arm binaries in recovery? Specifically f2fs tools.
GR0S said:
Wiping is okay.
We can try f2fs on /system, it gets formatted each time anyway. I know it won't give us massive performance boost, but it will be nice start point for now.
Why we can't use f2fs on /data?
Moto X has it already.
PS: can I use debian's arm binaries in recovery? Specifically f2fs tools.
Click to expand...
Click to collapse
Because /data is currently ext4 on the device you specified initially, and you can't change filesystems without wiping. Making users wipe at this point in the 4.4 cycle is NOT OK.
Not much if any benefit of f2fs on /system - Moto G doesn't even use f2fs for /system (it does for /data)
Entropy512 said:
Because /data is currently ext4 on the device you specified initially, and you can't change filesystems without wiping. Making users wipe at this point in the 4.4 cycle is NOT OK.
Not much if any benefit of f2fs on /system - Moto G doesn't even use f2fs for /system (it does for /data)
Click to expand...
Click to collapse
Anythng else? Will it work as intended if I will just patch kernel, patch device, format.
I remember Dees_Troy mentioned /data/media trickery may not work.

Changed /system to f2fs, cannot change back to ext4

I changed /system partition to f2fs for using temasek. Now I want to change it back to ext4. I converted all the other partitions to ext4 successfully. But when I try to change /system to ext4, it appears to go successfully. However, when I reboot, it still shows f2fs in the TWRP recovery.
I am using latest TWRP recovery (2.8.7.0_7 I believe).
Can anyone help me on this?
if u want to make sure ...just format the sys and if u see the line formatting system ex4_ then it's ext4 and if it's not then flash the latest twrp 2.8.7.0_8 and re-convert sys to ext4
Changed file system to ext4 and then wiped /system partition, now it is successful

Converting partition from F2FS to ext4 using CM recovery script(TWRP doesn't work)

Hi,
I have installed custom ROM and apparently it converted my userdata partition to F2FS, because when I try to install any other ROM it fails after checking userdata filesystem type. TWRP doesn't boot as well, I only have CM recovery working. I'm looking for someone who can help me write updater script to format the partition back to ext4 using mkfs.ext4 which is included in recovery. Please help.
Installing custom TWRP with f2fs support from here helped.

format /cache as f2fs, went back to ext4 on system boot.

Hello guys,..
i tried to change my /cache to f2fs, via TWRP ( 3.0.4-1 ), but whenever i'm back in the system and check,
it was mounted back to ext4.
I have my /data mounted as f2fs already, so i assume my stock 4.1.3 can handle f2fs, right ?
Where did i do wrong ?

How can I flash roms with f2fs?

Guys I'm new here and I do not know much about roms or recovery modes and it's functions. I have a question for you. Some of the roms support f2fs filesystem but whenever I try to install them on my device, it flash roms by using ext4 function. I have never be able to flash them by using f2fs. For example Los 13, Los 14.1, RR roms have f2fs filesystem support. I convert my system and cache to f2fs from ext4 but it doesnt work at all. It installs the roms by using ext4 always. How can I flash them with f2fs filesystem. I have heard that f2fs is faster than ext4 therefore I want try it
Follow these steps:
novafusion.pl/tutorials/how-to-use-f2fs-s3-mini/
danilisilva7 said:
Follow these steps:
novafusion.pl/tutorials/how-to-use-f2fs-s3-mini/
Click to expand...
Click to collapse
I have tried that but whenever I try to install a rom with a filesystem formatted as f2fs, it converts it to ext4 at the beginning of the installation. Can I convert my filesystem after installing a rom? For example after the installation of LineageOs 14, can I convert my filesystem as f2fs? Does it harm my phone?

Categories

Resources