yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Stupendousman2012:
Okay, I'm pretty close to taking the plunge on this, but can someone look over this and let me know if there is going to be any problem?

Steps I will take, in this order:

1: Convert a rom (CM11 in my case) to F2FS friendly version using the converter on my PC

2: Create a nandroid backup and copy it to PC.

3: Connect to PC using nexus root toolkit. (doing this instead of manual ADB commands. Should work, right?)

4: reboot into Recovery (latest version of TWRP supports F2FS file system, and is already installed) and convert System, data, and cache to F2FS

5: use Nexus Root Toolkit to flash the converted rom and GAPPS

Is that all there is to it, or is there something I'm missing here?
[Samsung Galaxy Nexus] phoenixyz1:
Hi everyone,

a question: if anything goes wrong is a TWRP Backup enough to restore everything to the status quo? And will I be able to restore my apps/settings with Titanium Backup?

Thanks!
[Samsung Galaxy Nexus] Stupendousman2012:
It has been my experience that a TWRP backup, once restored, is a snapshot of your phone at the time the backup was made. That means that all apps, and their data at that time will be restored back. Titanium is not required, unless you made changes to an app or its data since the backup was created.

That said, I'm still researching how to get everything back in the event that it does go south, because it is my understanding that once the file format is changed to F2FS, all the backups are deleted and need to be returned to the device after the flashing is done. I don't want a situation where I can't connect to the phone after a wipe to copy files to be flashed, so that's why I'm so hesitant to try this.

Make sure you copy everything you can't do without to a PC or cloud storage before doing this.
[Samsung Galaxy Nexus] johansenmo:
That's true. And in addition to this I'm trying to figure our how I can copy my files to/from pc (mac) with timestamps included.

Because last time I saw that all my pictures f.e. are now in a Gallery folder ordered by date call July 2014 (during this month I converted to f2fs).

Next time I would like to include timestamps - if anybody has an idea?
[Samsung Galaxy Nexus] poo706:
OP updated with 9/14 release of Windows and Linux/Mac versions. [MENTION=4815527]sergialess[/MENTION], could you please update the GUI when you have time? Don't forget that we need to remove Velvet from the purge list as well. Android version update coming very soon.

- AnyKernel kernels are now supported. When prompted, if you say you're going to install an AK kernel, the boot.img will NOT get replaced by Fancy so that the ROM's stock ramdisk stays intact. Also, this accommodates Jellybean 4.2 and 4.3 ROMs. Don't forget to install the AK kernel after installing the ROM!

- EXT4 /system partitions are now supported. The updater-script line that erases /system will be left alone if you say you do not have /system formatted as F2FS when prompted.

[poo]
[Samsung Galaxy Nexus] sergialess:
[MENTION=3927368]poo706[/MENTION], count on it. Let me see it tonight.

Regards,

Sergio.
[Samsung Galaxy Nexus] poo706:
Much appreciated!

[poo]
[Samsung Galaxy Nexus] poo706:
OP updated with 9/15 release of Android version. Be sure to read steps 8 and 9 in the instructions.

- AnyKernel kernels are now supported. If you're going to install an AK kernel after installing the converted ROM, delete boot.img from your converter folder before running the converter. This way, the boot.img will NOT get replaced by Fancy so that the ROM's stock ramdisk stays intact. Also, this accommodates Jellybean 4.2 and 4.3 ROMs. Don't forget to install the AK kernel after installing the ROM!

- EXT4 /system partitions are now supported. If your /system partition is EXT4, run "sh ext4.sh". This way, the updater-script line that erases /system will be left alone. If your /system partition is F2FS, run "sh f2fs.sh".

[poo]
[Samsung Galaxy Nexus] lollipop:
Why someone want to make system ext4,cache/data f2fs? is it better than making all f2fs? .please tell me i want to know :) !
[Samsung Galaxy Nexus] sergialess:
/system isn't too large, so by formatting with f2fs you're wasting some space, essential for our device. In the other hand, /system doesn't receive many changes, so you don't benefit from writing speed.
[Samsung Galaxy Nexus] creeve4:
How is this done in Windows?
[Samsung Galaxy Nexus] poo706:
The batch script will ask you if your /system partition is mounted F2FS. Still working on getting the GUI updated.

[poo]
[Samsung Galaxy Nexus] poo706:
New 9/18 Windows ZIP. The GUI has been updated to bring it in line with the other recent updates. Huge thanks to [MENTION=4815527]sergialess[/MENTION]! Really, excellent work!

[poo]
[Samsung Galaxy Nexus] vprasad1:
The device is no longer supported by Google, so is there a way to resize the /system partition? Is there an fdisk handy?

How improved is the F2FS reading speed?
[Samsung Galaxy Nexus] Ashtrix:
Everything about

F2FS

and system doesn't benefit from f2fs much because

1 - No frequent data writes to /system like /data or /cache

2 - If u format /sys to f2fs it will show only some 1xx MB otherwise on ext4 it will show you 3xxMB so you are loosing some free space on your /system w.o much advantage...

:good:
[Samsung Galaxy Nexus] vprasad1:
OK so what about resizing the /system partition to make this is a moot point? This would be especially useful given that the OS and even the smallest Gapps of packages are constantly getting larger.
[Samsung Galaxy Nexus] poo706:
It has been suggested. Apparently much easier said than done.

[poo]
[Samsung Galaxy Nexus] gautam_nexus:
How can i check if i am running mixed file systems?

is there any app?
[Samsung Galaxy Nexus] poo706:
Open a terminal and run:

mount | grep f2fs

If you don't see /system in the output (for example), it's EXT4.

[poo]
[Samsung Galaxy Nexus] gautam_nexus:
u0_a108@maguro:/ $ mount | grep f2fs

/dev/block/platform/omap/omap_hsmmc.0/by-name/system /system f2fs ro,seclabel,nosuid,nodev,relatime,background_gc=off,discard,user_xattr,inline_xattr,inline_data,flush_merge,active_logs=2 0 0

/dev/block/platform/omap/omap_hsmmc.0/by-name/cache /cache f2fs rw,seclabel,nosuid,nodev,noatime,background_gc=on,user_xattr,inline_xattr,inline_data,flush_merge,active_logs=4 0 0

/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data f2fs rw,seclabel,nosuid,nodev,noatime,background_gc=on,user_xattr,inline_xattr,inline_data,flush_merge,active_logs=4 0 0

u0_a108@maguro:/ $

i think its stil f2fs?:eek:

can you please confirm? Thanks!
[Samsung Galaxy Nexus] poo706:
Everything is f2fs, yes.

[poo]
[Samsung Galaxy Nexus] gautam_nexus:
This is what I did:

From your tool using the GUI version of Windows:

1. selected the PA ROM

2. Checked Any Kernel

3. Select /system Partition as EXT4

4. click GO!

after copying the output zip file to the sdcard

From Recovery:

1. Uncheck the following option

Force data and wipe functions to use F2FS

Include System partition

2. Rebooted the device

3. Wiped System,dalvik and cache ( Rebooted the device again! Also saw the operation saying that using make.ext4)

4. Cant flash the output zipfile ( so had to go back and check Force data and wipe functions to use F2FS, Include system Partition is still unchecked)

5. Flashed the ROM,GAPPS & Fancy r57

6. Wiped Dalvik and Cache

7. Rebooted the Phone

and I am still on System with f2fs?:eek:

How shall i make the system ext4 and rest all f2fs?

[MENTION=4544860]osm0sis[/MENTION]
[Samsung Galaxy Nexus] poo706:
Using TWRP, I assume? Pretty sure you need to go to the Wipe menu, Advanced Wipe, Change Partition Type. Or something along those lines. I don't have a device with TWRP on me at the moment.

[poo]
[Samsung Galaxy Nexus] gautam_nexus:
I am using Bsmittys TWRP 2.7.1.1 copy. and there is no option like that
[Samsung Galaxy Nexus] osm0sis:
Use the FML-TWRP 2.7.1.0, the MultiROM-based "2.7.1.1" one with the "force" options seems buggy.
[Samsung Galaxy Nexus] poo706:
I'd take your question over to that thread then if I were you.

[poo]
[Samsung Galaxy Nexus] gautam_nexus:
I just flashed the Smitys latest copy 2.8.0.0 but still no go, i cant change the partition.

the one on the fml thread is the old 2.7.0.0 copy, will that do?
[Samsung Galaxy Nexus] osm0sis:
Yeah. And follow poo's directions.
[Samsung Galaxy Nexus] gautam_nexus:
Thanks for your help guys! I am on Mixed file system. It was the Recovery that was causing the problem, I flashed the FML recovery and it works!
[Samsung Galaxy Nexus] hawk687:
May be a dumb question... I'm currently fully f2fs... If I format only /system back to ext4 will I be able to flash any ext4 ROM and f2fs compatible kernel? Sorry if asked and answered.
[Samsung Galaxy Nexus] poo706:
For the most part, yes. What you need to watch out for is that a few roms mount /data specifically as ext4 during rom installation. If it's formatted as f2fs, you'll end up getting stuck at the Google logo. Last I knew, slimkat and vanir did this. To be safe, run the rom through my tool, or check the updater-script in the rom to make sure it doesn't mount /data as ext4.

[poo]
[Samsung Galaxy Nexus] ncandy:
I'm currently fully f2fs and have an ext4 compatible rom in /data. If I format all back to ext4 expect /data and flash the rom, then I format /data to ext4, will it boot or still get stuck at the Google logo :confused: ?
[Samsung Galaxy Nexus] poo706:
I'm sorry, I really don't understand what you're asking here.

[poo]
[Samsung Galaxy Nexus] ncandy:
Sorry because my English isn't good. If I do these step, may I end up getting stuck at the Google logo? My device is fully on f2fs.

Format /system, /cache, ... to ext4 (/data still f2fs)

Flash the ext4 ROM

Format /data to ext4

Reboot
[Samsung Galaxy Nexus] poo706:
Ah, so you want to go from all f2fs back to all ext4? Your steps sound correct to me.

[poo]
[Samsung Galaxy Nexus] mono28aug:
how to check the updater script ?
[Samsung Galaxy Nexus] poo706:
Extract META-INF/com/google/android/updater-script from the ROM zip, view it with a text editor, and look for the follow line:

mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata", "/data");

If you don't see that, you should be good to install the ROM on your device if /system is EXT4 and /data is F2FS without needing to convert. You will need to most likely install an F2FS-compatible kernel separately, though.

[poo]
[Samsung Galaxy Nexus] mono28aug:
Thank you and yes my system is ext4 . I didn't touch system partition I just changed the data and cache partition to f2fs.
[Samsung Galaxy Nexus] faboz84:
[MENTION=3927368]poo706[/MENTION]

what's the correct procedure to convert a rom using the /system partition with ext4 and /data + /cache with f2fs?

i'm asking this because i didn't understood if your tool add a double line for system to adapt according to the filesystem in use
[Samsung Galaxy Nexus] poo706:
My tool will make the /system mounting line universal and the /data mounting line universal (if it's there). If your /system is ext4 and the ROM zip doesn't mount /data, you don't need to convert, but you do need to make sure to install a F2FS kernel.

[poo]
[Samsung Galaxy Nexus] Ashtrix:
With Mix-match feature that allows you to use both Filesystems of any setup. Smitty & fancy have mix & match which work perfectly :good: .
[Samsung Galaxy Nexus] faboz84:
i'm going to upgrade with the following setup:

SlimKat 8.2 converted with your tool + FancyKernel R57

/system --> ext4

/data --> f2fs

/cache --> f2fs

is it a good way to update the ramdisk inside the tools option ? ...because i saw you have the fancy r54 ramdisk and i'd like to upgrade the kernel to r57
[Samsung Galaxy Nexus] Ashtrix:
First get the recovery which is f2fs patched, then download poo's tool place the rom in the folder and unzip the r57's boot.img.

Replace the original one with the unzipped one and you are good to go dont forget to format your /system to ext4, checking the box for ext4 on /system in poo's GUI :good:.
[Samsung Galaxy Nexus] mono28aug:
I am on mixed partition i.e system ext4 and data and cache f2fs...so i wanted to check it and ran the command you mentioned on post 323 but I got the same result like the other person replied . how is it possible ? :/ I am sure I formatted my data and cache to f2fs and dint even touch system .. [MENTION=3927368]poo706[/MENTION]
[Samsung Galaxy Nexus] poo706:
I don't know what to tell you. I just make the tool, I've never even tried to change any of my gnex partitions to f2fs.

[poo]
[Samsung Galaxy Nexus] mono28aug:
[emoji53] [emoji52]

Dint xpct that haha
[Samsung Galaxy Nexus] poo706:
I kept seeing people asking over and over how to convert ROMs, so I made the tool for the good of the community. Meanwhile, I did experiment with f2fs on my Nexus 7 tablet because it was less disruptive than converting my Galaxy Nexus to f2fs. But I was unhappy with my experience on the N7 and have since converted it back to ext4. Based on that, I never bothered to convert my gnex.

[poo]
[Samsung Galaxy Nexus] mono28aug:
Oh OK I see BTW u did an awesome job on the tool [emoji106] and u should convert IMO because I have been running data and cache f2fs and system ext and I can feel that speed has increased a bit...if u don't mind! can u tell me ur setup ? Of ur gnex :)
[Samsung Galaxy Nexus] poo706:
I'll stick with ext4. What turned me off about f2fs on my N7 was that I would get these huge 10-15 second freezes, especially after moving large files. And I've seen other people complain of the same on f2fs in general. Even when it wasn't misbehaving, I did not feel that the speed difference was significant enough to warrant the hassle.

On my gnex, I use my LiquidSmooth-UNOFFICIAL ROM and the included Fancy r54 kernel. Links are in the "my other projects" section at the bottom of the OP.

[poo]
[Samsung Galaxy Nexus] sergialess:
I agree. Using F2FS I'm getting incomprehensible locks from time to time, like the ones you describe, Poo.

It's annoying when you install a new app and it takes ages to finish. It doesn't make much sense. However, these problems are not seen with EXT4.
[Samsung Galaxy Nexus] faboz84:
[MENTION=4615478]boype[/MENTION] ....i guess is because in the FANCY KKERNEL is there the /discard option active

according to the latest upgrade in the f2fs tree this option is not need .......but......do you think is a good option deleting it for f2fs hybrid (ext4/f2fs) users???!!!
[Samsung Galaxy Nexus] pianistaPL:
[MENTION=3927368]poo706[/MENTION] I tried to convert Purity ROM but unfortunately I'm getting only Google logo or bootanimation after flash. I tried 2 times - with latest Fancy kernel (anykernel version so I choise to not install kernel and I installed kernel in recovery) - it stucks at google logo

And with Franco r398 4.3 version (it's boot.img so i puted it into convert tool folder before convert) - it stucks at bootanimation. Do you have maybe any ideas what's wrong?
[Samsung Galaxy Nexus] poo706:
I have no idea at this point. Send me a link to the ROM and we'll go from there.

[poo]
[Samsung Galaxy Nexus] pianistaPL:
OMG, sorry, i wanted to share a link but I forgot :P http://www.mediafire.com/download/fpy99kha2uzcejp/purityFinalROM.zip

This is this ROM http://xdaforums.com/galaxy-nexus/development/rom-purity-rom-maguro-31-10-t2012706
[Samsung Galaxy Nexus] poo706:
The tool is changing out the lines correctly. Is your /system partition ext4 or f2fs? Do you notice any error messages when installing the ROM?

[poo]
[Samsung Galaxy Nexus] pianistaPL:
My /system is f2fs and I clicked "y" when the tool were asking me about that. And I installed the ROM without any errors. Can I do something more? Maybe convert manually?

---------- Post added at 03:56 PM ---------- Previous post was at 03:49 PM ----------

I'm trying on more - I installed converted ROM with franco r398 4.3 but now I will install SmmityV anykernel in recovery.
[Samsung Galaxy Nexus] poo706:
If that fails, try manually wiping /system in recovery, then manually mount /system in recovery, then install the ROM, and whatever else you need to do after that.

[poo]
[Samsung Galaxy Nexus] pianistaPL:
It stays at bootanimation :/

---------- Post added at 04:12 PM ---------- Previous post was at 04:10 PM ----------

I will try
[Samsung Galaxy Nexus] poo706:
I'm out of ideas then, sorry. It sounds like you're doing everything right and that the tool is working right, but I can't explain as to why it's getting stuck. This is one of the reasons I stayed with ext4, f2fs can be a big hassle.

[poo]
[Samsung Galaxy Nexus] pianistaPL:
Yea, i think I will back to ext4 when i will have more time... But thanks for the help :) (8 thanks limit ;P)
[Samsung Galaxy Nexus] pianistaPL:
Hmm, i tried also boot converted PureSpeedX (4.3 Jelly Bean too) and the same as with Purity... Just saying :) Maybe 4.3 ROMs don't play right with f2fs?...
[Samsung Galaxy Nexus] poo706:
Could be. You should ask that question in the dirtyv and/or fancy thread. If anyone was going to use f2fs on 4.3, surely they'd be using the anykernel versions of one of those kernels.

[poo]
[Samsung Galaxy Nexus] mono28aug:
Awesome job on the ROM [MENTION=3927368]poo706[/MENTION]
[Samsung Galaxy Nexus] visaac:
how to format filesystem to f2fs

Can someone please give me a link that gives steps to format GNex filesystem to F2FS.

I saw the link that was given in Post #1, but cudn't really find any steps to do it.
[Samsung Galaxy Nexus] mono28aug:
1.Back up with twrp

2.copy back up to PC

3.go to fork my life ROM thread and download f2fs compatible twrp recovery(link in the op)

4.download ROM and gapps (unofficial liquidsmpoth or fork my life and gapps)

5. Download adb and install it system wide on your PC so that it works from any location.

6. Test adb drivers. (Boot into recovery and sideload any kernel zip...proceed if it works successfully. Just being extra safe here lol )

6.boot into recovery.

7.Format system (basic format)

8.advance wipe now. Data cache system

9.change partition of data to f2fs

10.change partition of cache to f2fs

11. Sideload ROM and gapps

12.reboot ( - dance and enjoy)

Note- don't blame me if anything goes wrong :P good luck
[Samsung Galaxy Nexus] raymond1688:
Hi,

Will converted ROMs be able to run on mixed partitions, ie /sys and /cache on ext4, and /data on f2fs, or does the whole device have to be on f2fs?

Thanks

edit:

I think I answered my own question? I see an option in the GUI for Windows that allow me to select whether the /sys is on ext4 or f2fs, so I assume that I can create a ROM to run mixed partitions? Please correct me if I'm wrong. Thanks
[Samsung Galaxy Nexus] poo706:
Yes.

[poo]
[Samsung Galaxy Nexus] wkr.mky:
Just wanted to say thank you for this tool! Just used it on openSUSE Factory with BrokenOS(toro) 1.3 and Fancy r59 anykernel with full F2FS. Steps were very straightforward and I did not run into any problems.

Running great! ^_^
[Samsung Galaxy Nexus] vintermut:
Can someone tell me where to find step by step instructions for converting my Gnex partitions to f2fs? Please... Thank you in advance.
[Samsung Galaxy Nexus] xaifer:
Chip V3U00M

I have a Galaxy Nexus Maguro with the defective chip V3U00M. Using a rom f2fs I will, however, all the problems I have now with ext4 (I have to constantly use lagfix)?
[Samsung Galaxy Nexus] wkr.mky:
http://xdaforums.com/showpost.php?p=49501787&postcount=2

Check this post in DirtyV, it links to a few tutorials. Back up EVERYTHING (music, photos,etc) to your computer because it WILL wipe everything.

[MENTION=2029734]xaifer[/MENTION] I don't know anything about defective chips, so I don't know if you'll have the same problem. But F2FS does not necessarily need lagfix(fstrim) as F2FS has its own garbage collector (GC).

Also these post:
[Samsung Galaxy Nexus] P500:
Uhm, I think I missed something, but I'm not sure so I'll post my steps here.

I got a Bootloop (left it working for 1h, so I'm sure it was looping).

1. Install F2FS TWRP Recovery 2.7.1.0

2. Backup ( ;) )

3. Wipe -> Advanced (System, Cache, Data)

3. Wipe -> Advanced -> Change Data/Cache to F2FS (only wanted those, as I've heard that /system might cause problems)

4. adb push ROM (LS-KK-v3.2-UNOFFICIAL-2014-10-29-maguro) and GApps to /sdcard and install

5. reboot

Then it looped.

Was something wrong? Thanks in advice.
[Samsung Galaxy Nexus] mrgnex:
Did you convert the ROM? And with which option (with or without ROM boot.img)?
[Samsung Galaxy Nexus] P500:
I flashed unofficial LiquidSmooth, which states itself as

Do I have to flash a F2FS Kernel after flashing the ROM?
[Samsung Galaxy Nexus] poo706:
You missed a key part there:

[poo]
[Samsung Galaxy Nexus] P500:
Ha, I thought so.

Okay, brb flashing a new Kernel after the ROM.

Thanks :fingers-crossed:

€dit:

Works like a charm, flying like a beast!
[Samsung Galaxy Nexus] Suo.Eno:
Think he meant the missing f2fs/ext4 switch under Advanced yeah from [MENTION=4608636]bsmitty83[/MENTION] supplied twrp 2.7.1.1, confirmed through maguro's on my end. Only twrp-f2fs multirom 2.7.0.0 and [MENTION=2838735]aosp[/MENTION] 's early twrp tuna f2fs all img has the working switch.
[Samsung Galaxy Nexus] poo706:
I remember reading someone's guide that went back and forth between the two recoveries to accomplish different tasks. So you're saying that situation is still the case?

[poo]
[Samsung Galaxy Nexus] .B.0.W.:
yep that is what I mean, there is no swice to do so

and how do people get their roms working?

I some how one-time succeed only with the old shiny rom (4.4.3)

P.S I'm a maguro user like Suo.Eno
[Samsung Galaxy Nexus] poo706:
You really have me confused. What stage are you at? Have you already successfully converted system, data, and cache to F2FS?

[poo]
[Samsung Galaxy Nexus] .B.0.W.:
I really hate to be the *****, sorry about that.

I've now have f2fs without any rom

only the old recovery (2.7.0.0)
[Samsung Galaxy Nexus] qu4nd:
You could take one of the already converted ROMs (in dirtyv or PA thread) to check if they work...
[Samsung Galaxy Nexus] crazyeats:
The f2fs switch tab isn't there if u happen to b using a theme for twrp. I had that issue first time I used 2.7.1.1.
[Samsung Galaxy Nexus] poo706:
I would appreciate if those of you that have actually converted your gnex to F2FS stepping in to help with troubleshooting this. I just haven't had the opportunity to do the conversion yet, so I can only offer so much help.

[poo]
[Samsung Galaxy Nexus] .B.0.W.:
the odd thing is that I don't theme twrp, that's just not there and I don't know why I hope to picture this out with my nexus 7 flo

---------- Post added at 09:55 PM ---------- Previous post was at 09:54 PM ----------

I really want now a Shiny f2fs, thanks anyhow for your help sir!!:)
[Samsung Galaxy Nexus] Suo.Eno:
Then adb sideload is your only option. Got into that a couple of times due to a rushed flash job mistake so I know it works.
[Samsung Galaxy Nexus] .B.0.W.:
that is what I'm doing all the time it's just the recovery won't flash the rom, man I feel really frustrated about this :(:(

these errors mean that the recovery is either broken or it's just old

I don't know why this is only happening to me

well I can somehow fix this if someone will tell me how he/she flashed their roms (starting from the recovery and such so)

I really appreciate you folks for taking your time to help me. it really shows how xda is a great community
[Samsung Galaxy Nexus] siealex:
I also do not see such tab. I only see a F2FS checkbox in Settings: Force Data and Cache wipe functions to use F2FS.
[Samsung Galaxy Nexus] namtombout:
Use 2.7.1.1 twrp from smitty thread for your device. Fast boot flash that image. Under the wipe, settings, or advanced tab there is an option to format in f2fs. I can't remember exactly where. Then format. After that f2fs should appear in red next to your twrp version.

Next adb push your rom to the sdcard then flash. Play around with it because it works for everyone else.

Google how to fast boot and adb push if you need to