FORUMS
Remove All Ads from XDA

F2FS with TWRP Tutorial Note 2

29 posts
Thanks Meter: 12
 
By sZx1, Junior Member on 24th June 2014, 04:01 PM
Post Reply Email Thread
Quote:

F2FS (Flash-Friendly File System) is a flash file system developed by a team of Samsung Electronics for the Linux operating system kernel.

I'm not going to explain all benefits of F2FS, you can do your own search. I'm sharing my personal experience.

In this tutorial i will guide you through process of how to convert /data, /cache, /system to F2FS file system, using latest TWRP recovery.
Tested on my At&t Note 2. Should work for others as well.

You will need:

1. F2FS compatible ROM. Mine is: W03 Slim V20
2. F2FS compatible kernel. Mine is: AGNi pureCM v2.8.1_R3
3. Latest TWRP ( 2.7.1.0 and up). Mine is openrecovery-twrp-2.7.2.2-t0lteatt.zip

Process:
1. Install Rom.
2. Install Kernel.
3. Make sure you on latest TWRP
4. After having fully working ROM, go to recovery and do backup.
5. Start your phone and copy backup folder to the PC.
6. Open that folder and rename:
data.ext4.win rename -> data.f2fs.win
data.ext4.win.md5 rename -> data.f2fs.win.md5
cache.ext4.win rename -> cache.f2fs.win
cache.ext4.win.md5 rename -> cache.f2fs.win.md5
system.ext4.win rename -> system.f2fs.win
system.ext4.win.md5 rename -> system.f2fs.win.md5

! Note: Do not touch EFS, BOOT.EMMC, RECOVERY and MODEM

7. Now rename your folder. For example: "F2FS"
Should look like this:


8. Upload it back in to your phone TWRP backup folder

9. Reboot in to Recovery.

10. Select restore and your new back up name. For example "F2FS".

11. Select to restore DATA, CACHE, SYSTEM

12. Restore process should automatically convert your partitions to the F2FS file system.

13. Reboot System

14. All Done. Check you file system with this program: Diskinfo

Proof:




Try it and report it back.

You can manually format partitions in latest TWRP ( You will find this option under Wipe -> Advanced Wipe, then select only one partition and then press the Repair or Change File System button), but that will wipe data and restoring will restore your old file system.

Please Note: * I am not responsible for bricked devices, dead SD cards and other issues
The Following 6 Users Say Thank You to sZx1 For This Useful Post: [ View ] Gift sZx1 Ad-Free
 
 
3rd July 2014, 09:57 PM |#2  
Junior Member
Thanks Meter: 0
 
More
Noob question: how do I know if a ROM supports F2FS?
4th July 2014, 10:53 AM |#3  
pvaldeben's Avatar
Senior Member
Flag E. Rockaway
Thanks Meter: 55
 
More
Quote:
Originally Posted by sZx1

I'm not going to explain all benefits of F2FS, you can do your own search. I'm sharing my personal experience.

In this tutorial i will guide you through process of how to convert /data, /cache, /system to F2FS file system, using latest TWRP recovery.
Tested on my At&t Note 2. Should work for others as well.

You will need:

1. F2FS compatible ROM. Mine is: W03 Slim V20
2. F2FS compatible kernel. Mine is: AGNi pureCM v2.8.1_R3
3. Latest TWRP ( 2.7.1.0 and up). Mine is openrecovery-twrp-2.7.2.2-t0lteatt.zip

Process:
1. Install Rom.
2. Install Kernel.
3. Make sure you on latest TWRP
4. After having fully working ROM, go to recovery and do backup.
5. Start your phone and copy backup folder to the PC.
6. Open that folder and rename:
data.ext4.win rename -> data.f2fs.win
data.ext4.win.md5 rename -> data.f2fs.win.md5
cache.ext4.win rename -> cache.f2fs.win
cache.ext4.win.md5 rename -> cache.f2fs.win.md5
system.ext4.win rename -> system.f2fs.win
system.ext4.win.md5 rename -> system.f2fs.win.md5

! Note: Do not touch EFS, BOOT.EMMC, RECOVERY and MODEM

7. Now rename your folder. For example: "F2FS"
Should look like this:



8. Upload it back in to your phone TWRP backup folder

9. Reboot in to Recovery.

10. Select restore and your new back up name. For example "F2FS".

11. Select to restore DATA, CACHE, SYSTEM

12. Restore process should automatically convert your partitions to the F2FS file system.

13. Reboot System

14. All Done. Check you file system with this program: Diskinfo

Proof:




Try it and report it back.

You can manually format partitions in latest TWRP ( You will find this option under Wipe -> Advanced Wipe, then select only one partition and then press the Repair or Change File System button), but that will wipe data and restoring will restore your old file system.

Please Note: * I am not responsible for bricked devices, dead SD cards and other issues

Thanks this is great, I used f2fs before and loved the performance.
Will you be able to flash other Rom+Kernel zip once you are converted to F2FS?
4th July 2014, 03:54 PM |#4  
sZx1's Avatar
OP Junior Member
Flag USA
Thanks Meter: 12
 
Donate to Me
More
Most of the ROMs will support F2FS.
I do not know any ways to check capability before converting.
Backup ... Convert ... Restart

Most of the ROMs will convert file system while installing, usually back to ext4.
So check the log while flashing.
The Following User Says Thank You to sZx1 For This Useful Post: [ View ] Gift sZx1 Ad-Free
10th July 2014, 06:11 PM |#5  
Junior Member
GTA
Thanks Meter: 9
 
More
Thanks for an interesting idea! Unfortunately, it did not work for me in 2.7.1.0 (which is the latest for t0ltecan)
17th July 2014, 03:41 AM |#6  
Junior Member
Thanks Meter: 0
 
More
Unhappy Galaxy Nexus
Can you tell me if it works on the Galaxy Nexus?

---------- Post added at 02:41 AM ---------- Previous post was at 01:57 AM ----------

Quote:
Originally Posted by avich

Thanks for an interesting idea! Unfortunately, it did not work for me in 2.7.1.0 (which is the latest for t0ltecan)

Don't worked for me too. Same TWR version.
11th September 2014, 08:01 PM |#7  
Senior Member
Thanks Meter: 25
 
More
System - converted ok
cache - converted ok
data - NOT CONVERT!
Lost root...

EDIT:
I use this Wipe -> Advanced Wipe, then select only one partition and then press the Repair or Change File System button
and
System - converted ok
cache - converted ok
data - converted ok - lost all data
Lost root...

EDIT2:
How much free space is required on the partition 'system' to make it successful?
On ext4 i have:



but after convert 0b free... And i must back to ext4, because lost root, etc
12th September 2014, 01:45 PM |#8  
sZx1's Avatar
OP Junior Member
Flag USA
Thanks Meter: 12
 
Donate to Me
More
When you converting through Repair or Change File System in TWRP, you'll loose all data in that partition and if you restore it from backup -> you'll convert back to the old one.
Try to follow my guide and you should be OK.
I do not know about free space, never had a problem with that.

Let me know if that helps.

Cheers
12th September 2014, 02:30 PM |#9  
Paragon X's Avatar
Senior Member
Thanks Meter: 70
 
More
Hai @sZx1
Just want asking u
Why my rom have
Data.ext4.win000
Data.ext4.win001
Which one I need to rename?
12th September 2014, 03:34 PM |#10  
sZx1's Avatar
OP Junior Member
Flag USA
Thanks Meter: 12
 
Donate to Me
More
Quote:
Originally Posted by Paragon X

Hai @sZx1
Just want asking u
Why my rom have
Data.ext4.win000
Data.ext4.win001
Which one I need to rename?

Hmmm... That is very strange. My backups has only data.ext4.win and Data.ext4.win.md5
Try to update TWRP and make another backup.
12th September 2014, 07:11 PM |#11  
Senior Member
Thanks Meter: 25
 
More
Quote:
Originally Posted by Paragon X

Hai @sZx1
Just want asking u
Why my rom have
Data.ext4.win000
Data.ext4.win001
Which one I need to rename?

All
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes