[GUIDE] Convert /data to f2fs with TWRP 2.8.+ [TF700T]

Brewshack

Member
Jul 27, 2015
5
1
0
How could one converted a data partition in f2fs and ended up with a bootloader corruption, hmmmm. It is hard to understand the logic.... :confused: Does the new twrp touches the bootloader partition somehow by any chance?
I don't follow the logic either, but looks like I just screwed it up completely. I thought I had the latest bootloader on, 10.6.1.14.10, but on reviewing my original backup before unlocking, etc. the folder name has 10.6.1.14.4 in it, so I can only assume this was the actual bootloader version I was running. This probably has more to do with the issue than the actual F2FS conversion.
Let me just be a warning to everyone else. Follow the instructions to the letter and double check everything before you start!!!!
Thanks Josh and others for your help. I will source a new motherboard and start again :)
 
  • Like
Reactions: lj50036

lj50036

Senior Member
Feb 14, 2013
3,321
3,293
0
39
FUXDA
How could one converted a data partition in f2fs and ended up with a bootloader corruption, hmmmm. It is hard to understand the logic.... :confused: Does the new twrp touches the bootloader partition somehow by any chance?
I can only go off what the user said, he tells me what happen, I have to take his word .....

No TWRP cannot touch the bootloader, so I also cannot follow the logic, It is only what I have to go on .....

The fact he had the bootloader for a few reboots after, whatever happen..

It points to emmc failure, Its rare, but it can happen.....

In conclusion, the user has no access to fastboot/adb and has no nvflash blobs...

So there is nothing that can be done ....

Thx Josh

I don't follow the logic either, but looks like I just screwed it up completely. I thought I had the latest bootloader on, 10.6.1.14.10, but on reviewing my original backup before unlocking, etc. the folder name has 10.6.1.14.4 in it, so I can only assume this was the actual bootloader version I was running. This probably has more to do with the issue than the actual F2FS conversion.
Let me just be a warning to everyone else. Follow the instructions to the letter and double check everything before you start!!!!
Thanks Josh and others for your help. I will source a new motherboard and start again :)
That bootloader should have been ok to use...

It is recommended to update it to 14.10 but not required for what you were doing..

Sorry for the bad news, cannot save them all .....

Thx Josh
 
Last edited:
  • Like
Reactions: Brewshack

goast

Senior Member
Aug 18, 2012
2,774
1,176
0
Hinesville, Ga
hi guys a total noob to f2fs and this tablet, about to install zombi-pop, in recovery i went to data and hit format data, then put in yes, afterwards it now says: formatting data using make _ ext4fs fuction, is that what it is supposed to say? also, i got this step from under the 3rd step optional but recommended... any advaice would be great...
 

goast

Senior Member
Aug 18, 2012
2,774
1,176
0
Hinesville, Ga
Is there a more private way I can contact u, via hangouts or something? Please pm me if possible and thanks for the quick response

Sent from my LG-LS980 using XDA Free mobile app

---------- Post added at 09:27 PM ---------- Previous post was at 09:19 PM ----------

Yep. Let it finish then convert to f2fs. Your data partition is getting a nice trim right now

ok so now it has finished and says: you may need to reboot recovery to be able to use /data again. updating partion details... done... and has buack and reboot system at the bottom... what do I do next? doesn't say specifically in op and I'm scared to mess it up

Sent from my LG-LS980 using XDA Free mobile app

---------- Post added at 09:35 PM ---------- Previous post was at 09:27 PM ----------

nevermind i got it thank you @berndblb
 
Last edited:

XDMerciless

Member
Sep 16, 2015
12
6
0
RESOLVED - Issue formatting data partition from ext4 to f2fs.

I'm having the exact same issue below, but coming from stock ROM intending to flash to ZOMBI-POP:

http://forum.xda-developers.com/showpost.php?p=62670505&postcount=3165
primaleph said:
I'm trying to format my Data partition to F2FS in TWRP 2.8.7.0 before installing the newest version of ZOMBI-POP, as I was getting tired of CM11. But I'm getting the following error message:

E:mkfs.f2fs -t 1 -r 16384 /dev/block/mmcblk0p8 process ended with ERROR=1
E:Unable to wipe '/data'.
E:Unknown MTP Message type: 1
E:Error changing file system

Does anyone here know how to resolve this issue?
According to the same user above, they were able to resolve it manually. I already sent a PM, if and when the user above responds to the PM, I'll follow up, but I wanted to know if there were alternative methods to formatting the data partition from ext4 to f2fs without TWRP, or if any one could recommend another work around it would be greatly appreciated!

EDIT:
After some further research on other forums, discovered that the TWRP 2.8.7.0 TF700T data format partition functionality from ext4 to f2fs is a known bug. Although I wasn't able to find a non TWRP way of doing it, the work around was with Kang TWRP:
http://forum.xda-developers.com/transformer-tf700/development/recovery-kang-twrp-tf700t-2-8-x-xarea51-t3049395

Using KANG TWRP 2.8.7.2, I was successful in formatting the data partition to f2fs, on a TF700T.
 
Last edited:

silverchairbg

Senior Member
May 13, 2012
97
10
28
I am currently on CM11, do not care about anything on tablet right now, so can wipe/format anything. I fancy CM11, so I'd rather do not experiment with other ROMS, but responsiveness after 1 month of use is getting sluggish. So I want to try F2FS and see how that behaves. I've read most of the relevant threads and figured out I need a kernel that supports F2FS as CM11 M12 snapshot, does not. GrimLock kernel v.4 is for KitKat (CM11), so that would work. However, what are the exact steps? My assumption is:

1) format /data and change /data to F2FS
2) install CM11 rom
3)install gaps
4)install GrimLock kernel
5) first boot?

Please advise, the tablet is used mainly by my 4 year old and I don't want to leave her hanging without it, If I blindly go ahead and brick it.
 

berndblb

Inactive Recognized Contributor
Nov 22, 2012
4,875
2,113
0
Los Angeles, CA
Most likely those steps are fine. Assuming that both installer scripts write the kernel to /staging (from where the bootloader will write it to /boot on the next boot) the Grimlock kernel will just overwrite the CM kernel if flashed in the same recovery session. If you want to go the extra mile just add a simple reboot to bootloader between steps 3 and 4.
 

berndblb

Inactive Recognized Contributor
Nov 22, 2012
4,875
2,113
0
Los Angeles, CA
But wouldn't reboot between 3 and 4 cause the tablet to go into bootloop? After all the kernel that CM11 comes with is not F2FS enabled.
That's why you would reboot into the bootloader - not into system. But as I said: Most likely the sequence you posted is just fine. ;)
Try that first. And even if Android does not boot, just long press the power button, then hold Vol Down during boot, enter recovery through the bootloader menu, flash Grimlock's kernel and reboot. Nothing will break. The rom just won't boot because the file system on data is not recognized.
 

djmacpro

Senior Member
Jun 15, 2013
101
5
0
mumbai, andheri east
Guys my 4gb sd got corrupted trying this rom cm12.1
I perfectly created partitions then converted them to f2fs as mentioned installed the rom n waited for 10min still nothing happened so removed battery and got into fastboot to flash boot img after that also same thing so i wanted to go back to stock rom so i tried deleting the partition from miNitool partition but those f2fs partition are not getting deleted it comes up again i also tried converting them to ext4 again from recovery bt the wont get converted and now sd is not detected in pc via card reader but minitool is able to detect.
Pls help to recover it
 

_that

Recognized Developer / Recognized Contributor
Oct 2, 2012
4,817
4,205
243
Guys my 4gb sd got corrupted trying this rom cm12.1
I perfectly created partitions then converted them to f2fs as mentioned installed the rom n waited for 10min still nothing happened so removed battery and got into fastboot to flash boot img after that also same thing so i wanted to go back to stock rom so i tried deleting the partition from miNitool partition but those f2fs partition are not getting deleted it comes up again i also tried converting them to ext4 again from recovery bt the wont get converted and now sd is not detected in pc via card reader but minitool is able to detect.
Pls help to recover it
You should use more punctuation your sentences are hard to read if you removed the battery you apparently do not have a tf700 kthxbye
 

berndblb

Inactive Recognized Contributor
Nov 22, 2012
4,875
2,113
0
Los Angeles, CA
.... and a few more problems with your post:
I have no idea what device you have but I doubt that the rom supports anything other than /data on f2fs. If you converted anything else the rom probably won't boot.
You used minitool which has destroyed many SD cards. That card is probably toast, use Gparted next time.
Post in your device thread, this one is for using TWRP on the TF700 - nothing else.
 

djmacpro

Senior Member
Jun 15, 2013
101
5
0
mumbai, andheri east
.... and a few more problems with your post:
I have no idea what device you have but I doubt that the rom supports anything other than /data on f2fs. If you converted anything else the rom probably won't boot.
You used minitool which has destroyed many SD cards. That card is probably toast, use Gparted next time.
Post in your device thread, this one is for using TWRP on the TF700 - nothing else.
Sorry but I did all for my HTC pico I was installing cm12.1, anyway to delete those f2fs partition? So that I can get back my SD card which is now getting displayed on computer.
 

berndblb

Inactive Recognized Contributor
Nov 22, 2012
4,875
2,113
0
Los Angeles, CA
Again. Nobody here has any clue what your htc Pico needs.
And you are talking about an external microSD right? minitool probably destroyed it. That tool is known for it. Sorry
 

Dirt_Bag

Member
Jan 12, 2012
42
3
0
Just followed steps 1-4 including the optional "format data". I'm running TWRP version 2.8.7.0 on factory 4.2.1 and bootloader 10.6.1.14.10. When I try step 4, I get the following messages;

Updating partition details...
...done
Full SELinux support is present.
MTP Enabled
Formatting Data using mkfs.f2fs...
E:mkfs.f2fs - 1 -r 16384 /dev/block/mmcblk0p8 process ended with ERROR=1
E:Unable to wipe '/data'.
E:Unknown MTP message type: 1
E:Error changing file system.

Updating partition details...
...done
What do I do now!?
 

Dirt_Bag

Member
Jan 12, 2012
42
3
0
OK, I am on KANG 2.8.7.4 now. Do I need to do another nandroid backup from the updated TWRP, or will the one performed this morning from 2.8.7.0 be the same thing?