F2FS to System? - Moto X Q&A

I know that our systems use Ext4 for /system and /Cache but F2FS for /data.
What i would like to know is if we can get the entire /system /cache also on F2FS on the stock rom?
I seen a post on the Nexus 7 forums to convert your rom to F2FS, Is it possible for us as well?

Possible? Yes. What would be the point though. I could see possibly doing it to /cache, but there is no need to convert /system.

Yeah was just wondering if it would be a feasible thing to do.
Sent from my XT1049 using XDA Free mobile app

Related

check if data is ext3 or ext4 ?

I want to check if my data and system partitions are ext3 or ext4. Is there a way to do this ?
Easy, just use a terminal/ADB to run the command 'mount'
cheers for that. it seems that if you run the backtoext3 script and then do a nand restore it converts your data back/system to ext4 .
Correct, it's smart like that.
Thanks, was wondering the same thing. I can see that my data and system are ext4 but cache is ext3. Is that ok, shouldn't they all be the same partition?
Sent from my LG-P990 using XDA App
I think I did it correctly, got a lot of text, like 2 screens there was 4 that found ext3 in, /system, /cache, /data, /lgdrm. So I guess the cm7 rc1 im running is using ext3 then? Why isnt cm7 using ext4?
Sent from my Optimus 2X using XDA Premium App
Because once you go EXT4, the only way back to EXT3 involves your data going bye-bye. I believe it was almost done, but RC changed his mind.
was a way to extract files from a nand back so I could push them to my device
Mount the .img on a Linux machine.

[Q]Checking interest: ext4 mod

I've been playing around with the CM-mod/S7 and can sucessfully make it boot with all ext4 partitions.
Backround information:
Parititions and formatting
Partitions are the basic unit of storage on my devices with storage (think C: D: E: if you use windows)
The standard layout of android devices:
A /cache partition
A /data partition
A /system partition
Other hidden partitions (this part isnt relevent to us)
The common filesystem formats for recent android devices are EXT 3 and 4 (4 being the newer obviously)
The S7's default partitions:
stock 3xx: (ie froyo)
/cache: ext3(?)
/data: ext3(?)
/system: ext2
stock 5xx: (ie honeycomb)
/cache: ext3
/data: ext3
/system: ext4
my ext4 mod:
/cache: ext4
/data: ext4
/system: ext4
All other devices that launched with HC installed use all ext4 partitions.
But the S7 didnt launch with HC, it launched with froyo.
Dell couldnt upgrade /data to ext4 without wiping user data.
They could upgrade system, since they wipe it on install anyway.
Cache they didnt for the outside chance a user had actual important data in it.
My proposal
What I propose is a modified version of CM9-mod with /cache and /data formatted as ext4 partitions.
I've already got a working version, the main issue is that:
I dont know what the difference is. I've ran quadrant with ext4 and again with ext4, and there's very little difference.
Since quadrant has an I/O and database benchmark (and they run on /data), at least it shows that there's only 1% change in scores.
Would anyone actually be interested in using an ext4 mod?
There are some downsides (depending on how you view it):
ext3 and ext4 nandroids arnt compatable
You will need to do a fac reset on first install (as it reformats)
You will need seperate versions of CM9-mod and CWM
This space for rent
A simple modification of the boot.img to change init.streak7.rc mount points to ext4, easy as pie.
Yea that's what I did, along with a CWM recovery.fstab mod.
But like I said I havnt really noticed any changes in quad, and it's using /data for it's tests
As soon as I get wifi up and working on cm10, going to see if there is any benefit to switching
Sent from my Nexus 7 using Tapatalk 2
I can test it tomorrow.
Sent from my PG86100 using xda app-developers app

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.

f2fs to ext4 conversion

Hello guys, i've a question, I did a fatory reset on my phone and lost all my data, I did a lot of research and was able to create a img file will all my data using some adb commands, but now I'm stuck because the motox 2014 uses f2fs filesystem and not ext4.
I need to convert a .bin image that is in f2fs to ext4 without loosing it's content, any of you have any idea how to so it?
The forensic tool FTK Imager does not read f2fs filesystem.
Thanks

[Q] F2FS Confusion

I finally decided to take the risk of converting to the F2FS file system. I'm a little confused on just how far I should go with it. The readily available guides only mention changing the cache and data partitions. I have made this jump, and I absolutely notice a difference. My question is that there is also an option to format the system partition to F2FS, but I can't find anything concrete on its benefits. Honestly I can't find much of anything about it. Does anyone have any experience with F2FS system partition conversion?
You don't write anything to system partition as it's pure read-only. F2FS would make zero difference. It's just a hassle making ROMs work with /system under F2FS.
Lawstorant said:
You don't write anything to system partition as it's pure read-only. F2FS would make zero difference. It's just a hassle making ROMs work with /system under F2FS.
Click to expand...
Click to collapse
Thanks, that makes complete sense to me. So I'm done then? Just go with what I have?
donkeypunch1257 said:
Thanks, that makes complete sense to me. So I'm done then? Just go with what I have?
Click to expand...
Click to collapse
Don't format the system partition to F2FS. There is zero benefit from this since, as stated above, it is mounted as R/O at boot time, diminishing any positive effect F2FS may have the phone's performance (slower reads, faster writes, theoretically.) Anyways, most ROMs format /system to ext4 when being flashed, so there's that too. Just go with what you have, which is ext4.

Categories

Resources