yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] ILA:
As [MENTION=4920659]namtombout[/MENTION] said it isn't obvious anymore how to do it, but it's under the advanced options...

The issue that I face is that the F2FS does not "stick" when I flash a ROM + PA gapps. I think that the formating scripts within the gapps or the ROM are the issue. I think that they reformat the partitions back to ext4. When I try to boot up the system after I flash the ROM + gapps, it's just stuck on the boot animation for 10+ mins... I do a battery pull, and boot to recovery, and it says that it's on ext4...

Maybe we should just skip TWRP 2.7.1.1 for now...

Yeah, I used a device specific recovery (the Maguro one)
[Samsung Galaxy Nexus] bsmitty83:
Are you flashing an f2fs ROM ? , or have you tried rechecking the force f2fs boxes then rebooting recovery ? I never have that problem flashing new ROMs from twrp. I go from vanir to liquid testing alot
[Samsung Galaxy Nexus] ilgimmy:
Also make sure you're formatting the partition and not wiping it!

At least on my device, the first time I tried to go to F2FS, I had issues because I used the wipe option and not the format option inside TWRP.
[Samsung Galaxy Nexus] ILA:
I'm flashing a converted f2fs ROM (22.6. Vanir) The recovery stays in f2fs when I reboot it, without flashing anything prior to the reboot. Only when I flash the ROM + gapps and boot back to recovery (battery pull because it stays in boot animation for 10+ mins), it says that I'm on ext4...

The recovery also always searches for the USB-OTG when I try to flash anything which is why I need to disconect the USB ADB every time I try to flash something or else the flash would fail... That's a bit wierd. Is that supposed to happen?

Oh yeah, I haven't tryed rechecking the boxes... Going to try that today :)

---------- Post added at 12:14 PM ---------- Previous post was at 12:13 PM ----------

Yeah, I'm formating it ;)
[Samsung Galaxy Nexus] .B.0.W.:
And now I get this:

symlink: some symlinks failed
E: Error executing updater binary in zip '/data/media/0/sideload.zip'
updating partition details...
E: Unable to mount '/usb-otg'

So I sideloaded the new recovery and formatted to f2fs

and no luck
[Samsung Galaxy Nexus] V_tunes:
succeeded with PA 4.4 !!!

here is my experience:

1 download first post file, convert pa rom to f2fs version.

2 download recovery from dirty-v. then backup all the data of /sdcard to pc.

3 reboot into bootloader by cmd under windows.

4 use fastboot to flash f2fs recovery then reboot into recovery, choose advanced menu 〉switch etx4 to f2fs, click three partitions you need.

5 use adb to copy converted rom and gapps to /sdcard then flash, reboot after flashed.

all work well.
[Samsung Galaxy Nexus] Shadow Death:
Maybe its because I'm on windows 8. It tries but then errors out and corrupts the zip and leaves it as *.tmp
[Samsung Galaxy Nexus] fluffi444:
[MENTION=3927368]poo706[/MENTION]

Many thanks for your great work and the idea to make it - I have a question:

May I use your Idea and port the F2FS converter script to an other device? (GT-I8160P)

For now I want to use only Win-Batch...

If i post it of course with full respect to you...:good:
[Samsung Galaxy Nexus] poo706:
Go to town!

[poo]
[Samsung Galaxy Nexus] fluffi444:
Maybe because of my missing english knowledge I don't know exactly what you want me to say with this :confused:
[Samsung Galaxy Nexus] Culex316:
What he means is go do it by all means.
[Samsung Galaxy Nexus] RevengeFNF:
Hello,

If i only convert to F2FS Data and Cache, leaving System with EXT4. Using Official CM11 with a compatible F2FS kernel like Fancy, do i still need to convert the Rom?

I have the idea that i only need to convert the Rom if i convert System to F2FS, but i may be wrong.
[Samsung Galaxy Nexus] poo706:
As long as you supply your own kernel, you're fine not converting with that setup. The only thing you need to watch out for is some roms mount data as ext4 during flashing, and this jacks things up when it's f2fs. I don't think cm does, but vanir and slimkat do.

[poo]
[Samsung Galaxy Nexus] JPBeard21:
Is the kernel included in this f2fs compatible?
[Samsung Galaxy Nexus] alboz83:
Hi poo,

i'm trying to use a porting of Miui v5 4.4.4 for Galaxy Nexus that i found in a chinese forum. In EXT4 works without problem, but if i convert in F2FS i get the know error:

"symlink: some symlinks failed

E: Error executing updater binary in zip etc....."

I tried to import the updater-script from other f2fs rom, change it manually, but i get always error. Can you help me? I don't know what to try. Thanks
[Samsung Galaxy Nexus] poo706:
That error generally means that the ROM didn't actually install. Send me a link to the ROM and I'll take a look at it.

[poo]
[Samsung Galaxy Nexus] alboz83:
Ok tomorrow i'll upload the rom and i send you a link.

EDIT:

This is the link. The rom is in EXT4 and i have just converted with the tool in anykernel format.
[Samsung Galaxy Nexus] poo706:
Everything looks like it should. Is your /system formatted F2FS?

[poo]
[Samsung Galaxy Nexus] alboz83:
Yes i have system, data and cache in F2FS but always symlink error.
[Samsung Galaxy Nexus] poo706:
And when the tool asks you if /system is F2FS, you answer correctly right? Is this the only converted ROM that gives you issues? I just don't see anything jumping out at me that could be causing this. It's like your system partition isn't getting mounted, so the new ROM isn't getting copied over. But the tool's method of mounting is pretty tried and true.

[poo]
[Samsung Galaxy Nexus] alboz83:
Yes i answer right. I used the tool with much rom and miui is the only rom with i have problem. Maybe the problem is the recovery? I used twrp 2.7.0.0 ext4/f2fs support. It's strange this issue
[Samsung Galaxy Nexus] poo706:
Yeah, I'm going to write this off as a fluke, I'm not sure where to go from here. Maybe try cwm, or convert system back to ext4. There's not much gain from having it f2fs anyway.

[poo]
[Samsung Galaxy Nexus] ahmadairfan:
Hey poo, how do we know if the ROM mount data as ext4 during flashing?

Phones now on Omni f2fs, data and cache on f2fs. Not so much performance boost compared to ext4. Wondering if its a bad flash or something...

Btw I tried converting 4.3 ROMs and sadly didn't pass boot logo.
[Samsung Galaxy Nexus] poo706:
See this for determining if a ROM mounts data as ext4: http://xdaforums.com/showpost.php?p=55766193&postcount=341

As far as the benefits of f2fs, I personally didn't think it was worth all the hassle on my nexus 7 and I reverted back to ext4. Some people claim it's the best since sliced bread. You'll just have to make that determination for yourself.

As far as the 4.3 ROM, what kernel were you using? Did you tell the converter that you were going to install an anykernel kernel separately?

[poo]
[Samsung Galaxy Nexus] ahmadairfan:
Using PSX ROM paired with Fancy Anykernel version. Yep did check install anykernel separately. Should've work, eh?:confused:
[Samsung Galaxy Nexus] xaifer:
CM12

How can I use this with CM12?

If this doesn't work with CM12 there is another way to convert CM12 to F2FS?
[Samsung Galaxy Nexus] poo706:
With LP on the gnex, seems to be that system has to be ext4. For space reasons would be my guess. So as long as the rom has a handful of f2fs tools and you install a compatible kernel, there's no need to convert. That being said, I'm not so sure that cm12 has the tools in question.

[poo]
[Samsung Galaxy Nexus] jrs007:
as I see that the system is really working in F2FS? :confused:
[Samsung Galaxy Nexus] poo706:
Not sure what you're asking here.

[poo]
[Samsung Galaxy Nexus] irondog:
Hi,

My plan is to update PA latest beta6 and have Fancy Kernel r60.

I've a couple of questions:

1) do I have to select "anykernel" option if then I will flash Fancy Kernel r60 "fixed ramdisk" version?

2) maybe it is possible to directly modify PA and add Fancy Kernel r60? if yes, which version I have to download?

thanks
[Samsung Galaxy Nexus] poo706:
If you're just using the regular version of r60, then no, you wouldn't select the anykernel option. You could modify PA directly, you would just be manually following the steps of the conversion tool. I see no benefit, unless the tool is giving you problems.

[poo]
[Samsung Galaxy Nexus] irondog:
Thanks for the info.

So I can replace in your conversion tool the file "boot.img" that should be Fancy Kernel r54 with the "boot.img" from Fancy Kernel r60?
[Samsung Galaxy Nexus] qu4nd:
In dityV thread there is a workaround without adb and fastboot (besides backup files to PC).

Flash recovery with Flashify

Format system and cache only

Move rom,kernel and gapps to cache

Format data

Move files back and flash them
[Samsung Galaxy Nexus] Shadow Death:
You should also be able to

adb push *file path & name * /sdcard/
[Samsung Galaxy Nexus] .B.0.W.:
I know all of the adb commands to do so

the weird thing is for now that the gapps won't flash alongside with f2fs PA

question: should I convert the gapps too?
[Samsung Galaxy Nexus] Hetalk:
No you dont need to convert gapps.
[Samsung Galaxy Nexus] .B.0.W.:
Insufficient storage error comes up when I flash gapps
[Samsung Galaxy Nexus] ILA:
I get the same error when I'm connected with adb... Just plug out the adb and you should be good to go ;)
[Samsung Galaxy Nexus] Hetalk:
Use the mini aospa gapps or mini gapps by [MENTION=2915683]BaNkS[/MENTION]
[Samsung Galaxy Nexus] .B.0.W.:
correct me if I'm wrong, shiny rom is too big to be converted to f2fs
[Samsung Galaxy Nexus] Gingerbread1611:
Hey guys,

i think i have the same problem as [MENTION=4846659]ilans93[/MENTION], my device won't pass the google bootlogo.

I used latest vanir version an replaced the boot.img in the script with the latest smittyV boot.img (Which worked perfectly fine with LiquidSmooth) and flashed it via the 2.7.0.0 recovery (Im using the older version because of usb otg) after i formatted everything to f2fs.
[Samsung Galaxy Nexus] aliesz:
I couldn't use this software for shiny rom.. !
[Samsung Galaxy Nexus] poo706:
Give me some specifics here, what went wrong?

[poo]
[Samsung Galaxy Nexus] aliesz:
I unzipped the downloaded file into a folder then copied the shiny rom zip file in it too. Then double clicked on the .bat file you had said but an error message appeared that said it couldn't be converted..
[Samsung Galaxy Nexus] poo706:
My batch file is so simple that it doesn't even have the ability to know that it wasn't converted correctly. What's the link to the shiny zip? Are there any spaces in the path to the folder you unzipped the tool in? Are there any other zips besides shiny in that folder?

[poo]
[Samsung Galaxy Nexus] aliesz:
No the rom's file is in the same folder but I didn't determine any path...!!
[Samsung Galaxy Nexus] poo706:
Didn't determine any path? What I mean is that the converter folder should be at C:\PATH\WITH\NO\SPACES, not C:\PATH WITH\SPACES. Get what I'm saying?

[poo]
[Samsung Galaxy Nexus] qu4nd:
Try to extract the tool to a root directory (c: / d: / x: / whatever) and run the batch again. Just to make sure the path is not the matter.
[Samsung Galaxy Nexus] Gingerbread1611:
I already converted liquidsmooth from the same directory, but i'll try thanks.

/Edit: Thank you [MENTION=4847003]quand443[/MENTION] it worked!
[Samsung Galaxy Nexus] qu4nd:
Lucky you ;)
[Samsung Galaxy Nexus] Ashtrix:
Thanks for the great tool it works with Slim and Carbon :good::good:
[Samsung Galaxy Nexus] AgentSmith:
I plan to try f2fs but I don't have access to a computer. My laptop died some time ago. My plan is to reformat system, data and cache partitions to f2fs and then simply flash the ROM from usb-otg and then also the latest dirtyv kernel. But which lines need to be changed in the ROM for it to work with f2fs? It sounds as if this can easily be done manually.

So I had a look at your batch script. As far as I can tell it changes 3 lines in the ROM's update script:

This one twice:

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

into

run_program("/sbin/busybox", "mount", "/system");

And this one once:

format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "0", "/system");

into

run_program("/sbin/mkfs.f2fs", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system");

Is that correct?
[Samsung Galaxy Nexus] poo706:
Correct. It swaps out boot.img too.
[Samsung Galaxy Nexus] AgentSmith:
So I replaced boot.img and those 3 lines but for some reason after formatting /system, /cache and /data as f2fs the new ROM zip didn't flash. Hard to track where it went wrong but it doesn't matter for now. Quite a few hours later - these things always take much more time than expected somehow :p - I'm back to ext4.

And I also found out the hard way that twrp data backups exclude /storage/media. Well too bad.

I'll try someone else's f2fs ROM zip tomorrow or so. :)
[Samsung Galaxy Nexus] sergialess:
[MENTION=3927368]poo706[/MENTION], your tool is working fine with your LS 6/24.

Just a FC in Settings -> Status Bar -> Battery Icon. Not a problem for me.

Thanks!.
[Samsung Galaxy Nexus] NABENDU1:
Nyc to see you do this for the GNexus [MENTION=3927368]poo706[/MENTION] !! I had a request to create the script for Tuna around 2 to 3 weeks back but i have been like super busy since then but glad to see the Gnexus also enjoying F2FS.

Nyc work once again !!
[Samsung Galaxy Nexus] poo706:
Thanks! I appreciate the inspiration.
[Samsung Galaxy Nexus] nozz93:
I can't get it to work with ShinyROM... I tried everything that was suggested to you but it always fails to install.

Installing Shiny ROM build 062114
for maguro
symlink: some symlinks failed
E: Error executing updater binary in zip '/sdcard/ShinyROM_maguro_aosp_f2fs_062114-112509-signed.zip'
Error flashing zip '/sdcard/ShinyROM_maguro_aosp_f2fs_062114-112509-signed.zip'

I'm using TWRP-2.7.1.1-F2FS/EXT4-MAGURO.
[Samsung Galaxy Nexus] Gingerbread1611:
Sorry but i don't know that much about F2FS/This Scipt. (maybe ShinyROM is to big due the included Gapps?)

But [MENTION=3994116]poltor[/MENTION] uploaded a f2fs build today: http://xdaforums.com/showpost.php?p=53769460&postcount=531
[Samsung Galaxy Nexus] poo706:
Shoot me a link to the particular Shiny that you converted and can't install. I want to look a few things.

[poo]
[Samsung Galaxy Nexus] qu4nd:
try this one:

http://www.trysoftcore.com/Recovery/TWRP-f2fs.zip
[Samsung Galaxy Nexus] nozz93:
Whoops, I didn't notice you weren't the same person as the person who tried to convert ShinyROM. TWRP-F2FS/EXT4-TORO,TORO+,MAGURO didn't help either. I don't really want to use the build from [MENTION=324443]Polter[/MENTION] because it's a modified version of the ROM :/

[MENTION=3927368]poo706[/MENTION]: Here's the ROM: http://xdaforums.com/showpost.php?p=50183820&postcount=2 (ShinyROM_maguro_aosp_062114-112509-signed.zip)
[Samsung Galaxy Nexus] poo706:
I've been looking at the updater-script and updater-binary of the Shiny EXT4 build you linked me to, that Shiny F2FS build from polter, and LiquidSmooth EXT4. I'm not seeing anything that's clearly the problem, I think you need to do a little more testing for us if that's ok with you. First thing I notice is that Shiny EXT4 is huge, Shiny F2FS is quite a bit smaller, and LS EXT4 is much smaller still. So there could be something to the space issue, altough I wouldn't expect the symlink error message if it was a space issue. Also, I notice that the 2 Shiny updater-binary files are the same, but the LS one is different. Would you please try to install polter's f2fs build? How your device reacts to that will narrow my focus.

[poo]
[Samsung Galaxy Nexus] nozz93:
poltor's f2fs build installs and boots fine on my device, mount shows everything formatted as f2fs. It's probably smaller because there are way less apps in there as in stock ShinyROM.
[Samsung Galaxy Nexus] poo706:
Well that means the binary isn't the problem, and after running my tool on the ext4 shiny, the updater-script is virtually identical to the one you just installed, so that's not it. I would use 7zip to delete a bunch of apks you know you don't need and see if you can drop the file size. Maybe there's symlinking problems because files didn't get copied because the space got filled.

[poo]
[Samsung Galaxy Nexus] poo706:
Would anyone like to beta test a Linux version?

http://xdaforums.com/showpost.php?p=53782746&postcount=39

[poo]
[Samsung Galaxy Nexus] sergialess:
Just to drop a note:

I copied rom and gapps from PC to device, and rebooted to recovery. Then I formatted /system to F2FS, and then moved rom and gapps from /sdcard to /cache. Then I formatted /data to F2FS. Everything went ok!.

But when I first flashed the rom, I received an error. Then I though I'd have to flash a stock rom and start over, but I tried to flash a second time, and then it worked!!!.
[Samsung Galaxy Nexus] poo706:
Do you remember what error you received the first time? Did you reboot recovery in between the first attempt and the second? And this is my unofficial 6/24 LS right?

[poo]
[Samsung Galaxy Nexus] pvkiniyan95:
better move them back to data after formatting data to f2fs...flashing the files placed in cache will certainly give u errors for obvious reasons
[Samsung Galaxy Nexus] sergialess:
[MENTION=3927368]poo706[/MENTION], yes, your unofficial LS 6/24. I didn't reboot for the second flash, and the error may be related to permissions.

[MENTION=4699837]pvkiniyan95[/MENTION], your method is definitely better than mine =). Would it explain a permission error?.
[Samsung Galaxy Nexus] pvkiniyan95:
its not permission error but from what u posted i think u havent formatted cache to f2fs so

keep the files in cache

format data and system to f2fs

move files to data

format cache to f2fs

now flash the zip
[Samsung Galaxy Nexus] pvkiniyan95:
dude were u able to successfully conver 26/6 ls to f2fs and is it working???

is it maguro???
[Samsung Galaxy Nexus] sergialess:
Re: [TOOL] [WINDOWS] [4.4.x] Galaxy Nexus EXT4 to F2FS ROM Converter

I'm typing from it ;)

How can you see it is f2fs formatted in order to upload an image?

Enviado desde mi Galaxy Nexus usando Tapatalk 2
[Samsung Galaxy Nexus] poo706:
In a terminal:

mount | grep f2fs

[poo]
[Samsung Galaxy Nexus] sergialess:
/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,active_logs=2 0 0

/dev/block/platform/omap/omap_hsmmc.0/by-name/cache /cache f2fs rw,seclabel,noatime,nodiratime,background_gc=on,discard,user_xattr,inline_xattr,flush_merge,active_logs=2 0 0

/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data f2fs rw,seclabel,noatime,nodiratime,background_gc=on,discard,user_xattr,inline_xattr,flush_merge,active_logs=2 0 0

BTW, it is Maguro.

Gapps: PA Micro Modular.

Kernel: Latest DirtyV.

It is working very fine.
[Samsung Galaxy Nexus] nozz93:
Maybe someone else can test ShinyROM? I needed my phone so I restored my CM11 backup...
[Samsung Galaxy Nexus] poo706:
I'd like to add to the OP a running list of roms that convert and boot and which ones don't, so please chime in.

[poo]
[Samsung Galaxy Nexus] sergialess:
Great idea.

I also was thinking (if you agree) on creating a GUI based version of this tool (for Windows users like me). I'm working with Microsoft .net technology and it would be cool to create a version with the following features:

- GUI based tool (.net framework required).

- ROM file selector

- F2FS Kernel selector (get .img for patching the rom)

- Better filename support (spaces...)

- Progress bar

- ...

What do you think?.
[Samsung Galaxy Nexus] qu4nd:
Just converted and flashed todays PA 4.41 and it seems to work fine!
[Samsung Galaxy Nexus] AgentSmith:
Great idea! While your at it, would it be very time consuming to make a similar application for Android? Because I always download ROMs straight to my phone and it would be great to be able to do the conversion on the device. My apologies if I'm asking a lot here. :)
[Samsung Galaxy Nexus] sergialess:
Nice suggestion as well.

The trouble is that at this time I'm a complete ignorant on Android programming :S

But it's a quite reasonable challenge for me, in order to start coding in Android.
[Samsung Galaxy Nexus] mosca_:
It would be fantastic... [emoji2]
[Samsung Galaxy Nexus] poo706:
I was already going to work on a rev 2 that gets around the spaces in the path because it's tripped up a couple of people already. I like your ambition, go for it! I don't know anything about .NET programming, but I'll assist in any way I can.

[poo]
[Samsung Galaxy Nexus] poo706:
There's this, but I think it needs to have gnex support added: https://play.google.com/store/apps/details?id=com.runnerway.converttof2fs . I suppose in theory my linux version could work on an android terminal, probably with a few tweaks.

[poo]
[Samsung Galaxy Nexus] sergialess:
Poo, I'll be contacting you for any question regarding the logic.

WIP...
[Samsung Galaxy Nexus] poo706:
OP updated with a new version of the Windows batch tool. Spaces in the path are no longer a problem and boot.img was updated to SmittyV 6/28/14. Linux version coming soon.

[poo]
[Samsung Galaxy Nexus] poo706:
Damn dude! Go go go!

[poo]
[Samsung Galaxy Nexus] AgentSmith:
I wouldn't mind having a command line tool on my phone at all. :)
[Samsung Galaxy Nexus] Shadow Death:
Well I can confirm that I moved the whole converter folder to C:/ from the desktop which allowed it to convert Omni FML just fine.

I cant explain why that worked since there were no spaces in the path at all.

I suspect there may a character count limit.
[Samsung Galaxy Nexus] poo706:
Way easier than I expected: <removed link>

Instructions:

1) Place the above download in an empty folder on your SD card, along with your EXT4 ROM zip and F2FS boot.img of choice. Nothing else.

2) Open an Android terminal

3) Run "su" (there's problems with unzipping when not root for some reason)

4) cd into your converter folder

5) Run "sh ./conv.sh"

[poo]

Edit: Android version is in the OP now, be sure to note the slightly different instructions. Linux version too.
[Samsung Galaxy Nexus] poo706:
You're probably right about the character count. Thanks for the confirmation about Omni FML, I'll add that to th OP. Is that different from normal OmniROM?

[poo]
[Samsung Galaxy Nexus] mrgnex:
I'll try your linux version this week! This stuff is awesome thanks! Lets see what f2fs has to offer.
[Samsung Galaxy Nexus] sergialess:
First beta (just to know if this will be of help - at least for me).

https://drive.google.com/file/d/0B0OL1QCahj9zQ19HVzg1dmdHX0E/edit?usp=sharing

This version acts merely as a GUI for the scripted Windows version of Poo706. You need to unpack and copy my .exe file in the same folder you unpacked Poo Windows version (so it still uses boot.img, fnr.exe and 7za.exe).

This software is compiled using VisualStudio.Net 2010 and requires .net Framework 4.0.

The code is executing almost the same instructions as the original script.

I've not tested any patched rom yet.
[Samsung Galaxy Nexus] poo706:
Anxious to see how it looks, but you need to open up the permissions on Google Drive first before I can download it.

[poo]
[Samsung Galaxy Nexus] Nautilus74:
You can also add in the OP that the T-REX is converted to and regularly works! :good:
[Samsung Galaxy Nexus] poo706:
OP updated with Linux and Android versions.

[poo]
[Samsung Galaxy Nexus] sergialess:
Ops, sorry... try now!.
[Samsung Galaxy Nexus] poo706:
Downloaded and it looks to be working as it should! So your exe doesn't make use of my bat, right? And why is the boot.img option always grayed out? Just haven't gotten to that feature yet? Excellent work, I'm really excited at the way this is all turning out! How would you like to release this when it's all done? You can make your own thread and I can link to it in my OP, or I can distribute it through my OP if you'd rather. Of course you'd get the credit you deserve.

[poo]
[Samsung Galaxy Nexus] sergialess:
Hi. I don't use you .bat. I plan to not even use fnr.exe nor 7za.exe. The disabled button is a WIP feature. The idea is to select a kernel (zip) and extract the image.

The whole idea and scripting is yours, so I will be honored if you link my work in the OT of this thread.

I'll keep updating it tonight after dinner xD.