[Q] How to switch to F2FS? - Samsung Galaxy S II Plus

What do I have to do to go from an ext4 + custom ROM combination to an F2FS + custom ROM one? A step-by-step and a list of prerequisites would be fantastic. Do I need a special version of recovery, do I have to flash a zip, convert my ROM before flashing? I'm clueless, and Googling around didn't help a bit.

Related

CWM Recovery extendedcommand

Does anyone know the various recovery extended commands? Specifically I would like to write a script to flash new ROMs via Tasker. I can already do backups with this script, but being able to download and flash new ROMs automatically would be awesome.
Thanks for the help!

[RECOVERY][All-F2FS] TWRP-2.7.0.0 with All-F2FS support [08/05/14]

TWRP-2.7.0.0 with "All-F2FS" support​
NOTE: I don't have a Nexus 7 3G to test this. It should work.
I made this because a lot of people asked me. Please report back after you tried it.​
I have modified the standard TWRP recovery to work with F2FS partitions.
This is for "All-F2FS" that mean that /system, /cache and /data are formatted with F2FS.
Keep in mind that this can work only with a compatible kernel and ROM.
What is F2FS?
F2FS (Flash-Friendly File System) is a flash file system created by Kim Jaegeuk at Samsung for the Linux operating system kernel. The motive for F2FS was to build a file system that from the start takes into account the characteristics of NAND flash memory-based storage devices (such as solid-state disks, eMMC, and SD cards), which are widely used in computer systems ranging from mobile devices to servers.
Download:
FormatPartitions.zip: Here
TWRP-recovery img: Here
Chagelogs:
- 08/05/14: Initial release
Here are some explanations. Read them
Recovery has the usual red back key to remember you that you are using a F2FS-recovery.
If wiping /system and /cache and making a factory reset from Wipe menu doesn't work, use FormatPartitions.zip. (<- READ THIS)
Instead wiping /data is fine within the wipe menu.
To switch your /system, /cache and /data partitions to F2FS follow instructions:
Keep in mind that you will lose all the files on the memory of your N7.
You need:
- Two files you can download above (img and FormatPartitions.zip)
- A ROM with "All-F2FS" support (Make your ROM with Convert To F2FS)
- GApps (i think you want PlayStore.) Usual GApps. Slim AiO work well.
Copy a ROM with "All-F2FS" support to your N7
Copy GApps to your N7
Copy FormatPartitions.zip to your N7
Reboot in bootloader
Flash this recovery with Fastboot (Maybe Flashify works too)
Reboot in new recovery
Flash FormatPartitions.zip
Reboot recovery (It's needed for some reasons..)
Flash ROM
Flash GApps
Go to Wipe Menu and Format Data (Not a simple wipe)
Reboot
Done.
It's easier than it seems
To restore partitions to stock:
- Download a standard TWRP
- Download RestorePartitions.zip
Flash RestorePartitions.zip (Untested)
Flash standard Recovery
Format Data in Wipe Menu
Hope i dind't any errors writing this down. I personally tested this procedure.
Enjoy.
Ah, about time. I'm gonna try this right away and report back. I've tested back and forth and f2fs does boosts our tilapia device performance quite a lot(according to the benchmarks results at least )
Wow, cool- truly missed all f2fs implementation in my tilapia, will try this ASAP, Thanks!
Hello you legolas, first thanks for sharing your wonderful work
I currently use f2fs 2.6.3 with support for data only, which had so far for tilapia.
I have a question to see if you can help me.
this recovery is worth for what we have f2fs only data? or I have to use a rom reformatted partitions in all f2fs?
I also see an app, which it seems the rom install on it, and it alone will reformat all partitions f2fs? is that easy?
thanks
edit:
I already am with f2fs in data, backup would have to do if I convert the data back to the rom "full f2fs"?
Hello bro. Tried to flash just a moment ago. I got stuck at Google logo, it's not even booting :s
Btw, I also notice cache is unable to be mounted. Any idea bro?
EDIT: My bad, I used the wrong boot image :silly: Now it's working
You guys can modify these scripts for free
figue/f2fs-scripts · GitHub - http://goo.gl/FOK6LO
I turned the tablet to f2fs ... and now I do not start the roms not know I had to convert them too. the problem is that now I can not install the restore partition because this new version 2.7.0 of recovery can not mount usb. with the above if I had problems, I had a flash drive prepared with kernels and roms. but not able to mount it. I do not want to use adb to put stock the tablet, you can help me?
Enviado desde mi Nexus 5 mediante Tapatalk
Fransis88 said:
I turned the tablet to f2fs ... and now I do not start the roms not know I had to convert them too. the problem is that now I can not install the restore partition because this new version 2.7.0 of recovery can not mount usb. with the above if I had problems, I had a flash drive prepared with kernels and roms. but not able to mount it. I do not want to use adb to put stock the tablet, you can help me?
Enviado desde mi Nexus 5 mediante Tapatalk
Click to expand...
Click to collapse
I correct myself. I can mount the pendrive and have already restored the partitions. truth is that the recovery does not mount pendrive well sometimes, and you have to restart the recovery several times till you drop mount the pendrive.
but if it works, but not quite right
Can we use the modified Slimkat ROM for grouper (new kernel) slimkat 3.8 with this recovery?
Sent from my Nexus 7 using XDA Premium HD app
Add settings to enable/disable f2fs forcing mode so we can switch on …
…the fly. Force will force all wipe/format calls to use f2fs or ext4 depending on the selection. Also added code to ensure settings are re-written back to internal sd after a super wipe. Also removed fstab code to determine the mode since we now have a setting for it
http://goo.gl/NTamfl
Add code to analyze the fstab to determine whether we are in f2fs mod…
…e or ext4 mode
http://goo.gl/MJXQpE
Working very well here :good:
Using SlimKat build 5 official. I flashed the recovery image with Flashify, rebooted into recovery, applied formatpartitions.zip, rebooted again, flashed ROM and Gapps.
I just had to format /data two times and reboot after the first "format" because it said "/data not found".
Can someone please post a step-to-step guide on how to get a rooted stock 4.4.3 image with F2FS file system? Or maybe a zip to flash?
Thanks
PS: a link on how to get the job done in very well accepted to!
Apologies for being (slightly?) off topic, but the opening page says this is to be used with suitable kernel and ROM. I'm having a hard time trying to find f2fs kernel/rom for my N7 3G (tilapia). Can anyone suggest (or report success with) which tilapia kernel(s) ROMs can be used use (ideally without the need for purchase of "Convert F2FS")...much appreciated.
questions regarding CM11 and Convert to F2FS
Does Convert to F2FS suppor CM11 for tilapia?
If I use Convert to F2FS the will I need a patched kernel? or does the app just do the job?
Regards
Stuck on bootlogo after doing all the steps, using a the latest PA beta converted with the app.. What to do now?
Can we use the latest TWRP tilapia recovery 2.7.1.0 to format the data, cache and system partitions to f2fs? also after we convert the ROM which kernel can we flash, will the stock kernel work?
Wow. It couldn't be easier.
I used ConvertToF2FS to modify the latest official SlimKat build (5961 at time of writing), and used your modified TWRP to install it on my 2012 Nexus 7 3G ("tilapia"), following your step-by-step instructions in the first post in the order given. It all worked first time.
Thanks! Yesterday my N7 was sluggish with the stock ROM; today it feels like a new device.
Thank you for the tutorial. I was wondering, is it possible to restore a non-F2FS nandroid backup if i flash a F2FS kernel right after restoring?
Loganberry said:
I used ConvertToF2FS to modify the latest official SlimKat build (5961 at time of writing), and used your modified TWRP to install it on my 2012 Nexus 7 3G ("tilapia"), following your step-by-step instructions in the first post in the order given. It all worked first time.
Click to expand...
Click to collapse
I've done the same and it works too but now I have some problems with 3G connection: everything is ok with WiFi connections but if I turn off WiFi and try to connect with 3G my Nexus reboots randomly. Sometimes after 2 or 3 minutes, sometimes after 10 but one thing is sure, I cannot use the tablet with 3G on.
Have you experienced something similar? The same happened with "pre-AllF2FS kernel" (Slimkat installed on a Ext4 fs with only data in f2fs format).
I've also tried to install the latest AOKP and Paranoid roms, converted with Convert To F2FS app, but they stuck during first booting animation...
Any help would be really appreciated! Thanks. :good:
Balza76 said:
I've done the same and it works too but now I have some problems with 3G connection: everything is ok with WiFi connections but if I turn off WiFi and try to connect with 3G my Nexus reboots randomly. Sometimes after 2 or 3 minutes, sometimes after 10 but one thing is sure, I cannot use the tablet with 3G on.
Have you experienced something similar? The same happened with "pre-AllF2FS kernel" (Slimkat installed on a Ext4 fs with only data in f2fs format).
I've also tried to install the latest AOKP and Paranoid roms, converted with Convert To F2FS app, but they stuck during first booting animation...
Any help would be really appreciated! Thanks. :good:
Click to expand...
Click to collapse
Me too. After converting CM11 M9 with convert to F2FS, and following all the steps in OP, stuck on bootanimation.
If I flash slimkat converted it works, but no 3G. After compare the update script of Slimkat original and converted i found thos 4 lines changed:
original lines
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/UDA", "/data");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
format("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
replaced for:
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/mkfs.f2fs", "/dev/block/platform/sdhci-tegra.3/by-name/APP");
run_program("/sbin/busybox", "mount", "/system");
Then I download the original CM11 M9 and replaced the 4 lines in update script.
For the kernel, after flash the manually converted rom and GAPPs, then I flash M-Kernel compatible with All-F2FS.
It works for me!

[Q] help with custom ROM installation process of CM7 a9

I would like to install CM7 alpha9 MTD from this thread http://forum.xda-developers.com/showthread.php?t=2309390
The process I imagine is as following:
- backup things (I'm not sure how exactly this part works, if you know how to backup application data please help)
- flash the https://cm7-i5800.googlecode.com/files/CM7_Kernel_MTD_OC1Ghz.tar kernel with ODIN without repartitioning (as PDA I'm guessing, unless there's an option for "kernel" in which case it's kernel, which one is it? )
- boot to recovery
- format /system, /data, /preload
- install the ZIP of the ROM: https://cm7-i5800.googlecode.com/files/CM7.2.0-GT-I5800_Alpha9_MTD_CWM.zip
- install the ZIP of the google apps for 2.3.7: http://www.devfiles.co/download/wBDwQIzb/gapps-gb-20110828-newtalk-signed.zip
- install SuperSU ? is this necessary with CM? Although I have doubts, as it was never mentioned unlike for Omni, so I guess not for this one
- reboot phone
- enjoy CM7
So basically I'm asking, am I missing out on anything basic but important that would result in bricking? And
- how to backup application data to be retrieved after flashing
- is the kernel a "PDA" or is there another thingy for it in Odin that needs be done?
- do you need to install any previous versions of CM7 for this MTD thing to work?
- does the kernel provide a recovery with which this ROM can be installed?
If you managed to get to the end, thank you - And thanks in advance for the help
Installing a rom
Zhuinden said:
I would like to install CM7 alpha9 MTD from this thread http://forum.xda-developers.com/showthread.php?t=2309390
The process I imagine is as following:
- backup things (I'm not sure how exactly this part works, if you know how to backup application data please help)
- flash the https://cm7-i5800.googlecode.com/files/CM7_Kernel_MTD_OC1Ghz.tar kernel with ODIN without repartitioning (as PDA I'm guessing, unless there's an option for "kernel" in which case it's kernel, which one is it? )
- boot to recovery
- format /system, /data, /preload
- install the ZIP of the ROM: https://cm7-i5800.googlecode.com/files/CM7.2.0-GT-I5800_Alpha9_MTD_CWM.zip
- install the ZIP of the google apps for 2.3.7: http://www.devfiles.co/download/wBDwQIzb/gapps-gb-20110828-newtalk-signed.zip
- install SuperSU ? is this necessary with CM? Although I have doubts, as it was never mentioned unlike for Omni, so I guess not for this one
- reboot phone
- enjoy CM7
So basically I'm asking, am I missing out on anything basic but important that would result in bricking? And
- how to backup application data to be retrieved after flashing
- is the kernel a "PDA" or is there another thingy for it in Odin that needs be done?
- do you need to install any previous versions of CM7 for this MTD thing to work?
- does the kernel provide a recovery with which this ROM can be installed?
If you managed to get to the end, thank you - And thanks in advance for the help
Click to expand...
Click to collapse
Reboot to recovery, make a backup (you'll find in the menu)
Make a full wipe(in recovery)
- install the ZIP of the ROM: https://cm7-i5800.googlecode.com/files/CM7.2.0-GT-I5800_Alpha9_MTD_CWM.zip
- install the ZIP of the google apps for 2.3.7: http://www.devfiles.co/download/wBDwQIzb/gapps-gb-20110828-newtalk-signed.zip
- flash the https://cm7-i5800.googlecode.com/files/CM7_Kernel_MTD_OC1Ghz.tar
Install all these 3 zip with One Package ticked
Reboot and enjoy
Good luck
to install CM7 alpha 9 MTD you first need to be running CM7 alpha 9, which you flash with ODIN http://forum.xda-developers.com/showpost.php?p=14240212&postcount=1
then follow the instructions in the previous reply from sakenas to update to CM7 alpha 9 MTD using clockwork mod recovery.
only flash the 1ghz kernel after you have updated to CM7 alpha9 MTD.
you flash the kernel with ODIN using the one package method, exactly the same way you will have flashed CM7 alpha 9.

How do I install Asus .raw file on TF700?

Hi,
firstly I apologise if this is the wrong way to do this but I'm having trouble finding the info I need.
I have a TF700 (WW sku) running CWM and Omnirom 5.1.1
I want to install Katkiss Nougatella which requires TWRP Kang instead of CWM (I think).
I have downloaded TF700K_all_WW_USER_V5.0.4.17.raw from Asus' website as I believe this will restore the tablet to its original factory state and then I can proceed to install TWRP and Katkiss.
But I cannot install the .raw file, #fastboot devices# doesn't show my device, #adb devices# does but when I copy the .raw file to the device I cannot install it via CWM.
My laptop is running Linux Mint 18.1 I have tried running #sudo fastboot devices# but that doesn't work either...if anyone knows what I'm doing wrong I'd love to hear from them. Thanks in advance!
The short answer to your thread title is: You don't. :cyclops:
I have no idea what file you dug up there, but it could well be something for the TF700KL - or something entirely different, I have no idea. what I do know is that it is NOT firmware for the TF700T.
But you don't need to do that anyway.
All you need is:
1. Flash a current TWRP version (kang or official - doesn't matter as long as it is 2.8.+)
2. Format /data in TWRP
3. Convert /data to f2fs
4. Flash the rom, gapps and supersu if so desired.
Best would be if you did figure out how to get fastboot working in Linux. Should be a breeze but I can't help - I'm illiterate in Linux.
Then you could fastboot flash the latest TWRP 3.x from Teamwin's website: https://twrp.me/devices/asustransformerinfinityTF700T.html
If that fails Kang TWRP 2.8.x comes conveniently packaged into a flashable zip: https://forum.xda-developers.com/tr...overy-kang-twrp-tf700t-2-8-x-xarea51-t3049395
To convert data to f2fs follow this: https://forum.xda-developers.com/tr.../guide-convert-data-to-f2fs-twrp-2-8-t3073471
Enjoy
Hi,
Thanks a million for the prompt and detailed response, I will try this out as soon as I have time and report back with how it went!
blimey74 said:
Hi,
Thanks a million for the prompt and detailed response, I will try this out as soon as I have time and report back with how it went!
Click to expand...
Click to collapse
So installed the Kang TWRP zip with no problems and followed your instructions to format /data and change the file system to f2fs. Flashed Katkiss but for whatever reason it wouldn't boot up. Checked file system again and it was still ext4. Reformatted and switched to f2fs and this time Katkiss works. Tablet is reborn, really happy with it thanks again for the help :good:

I use TWRP to convert /data to f2fs and flash official oos Android 11, does I still need to flash Kirisakura kernel?

I just use TWRP convert /data to f2fs, and I flashed OOS Android 11, and I used diskinfo check my /data is f2fs file system, do I still need to flash Kirisakura kernel or not?
You can flash it, it seems to give a lot of useful additional features

Categories

Resources