F2FS/EXT4 - Data/System/Cache - Lenovo P2 Questions & Answers

Hello.
I tried Syberia 3 but had some bugs like frozen interface etc and had to reboot when it happened
Then I wanted to go back to a stable ROM, LineageOS 16.
However, I am so brain dead when it comes to F2FS or Ext4 and device encryption.
Can anyone explain me:
When does the device become encrypted?
When talking about F2FS, is it for all cache data and system or only one/some specific?
When you have the famous "encryption unsuccessfull, what should you do? Set file system to ext4? If yes, which one? System, data, cache? All 3?
Thanks in advance, my phone is softbricked ATM. Even the stock firmware trick didn't worked this time ?

Kicroy said:
Hello.
I tried Syberia 3 but had some bugs like frozen interface etc and had to reboot when it happened
Then I wanted to go back to a stable ROM, LineageOS 16.
However, I am so brain dead when it comes to F2FS or Ext4 and device encryption.
Can anyone explain me:
When does the device become encrypted?
When talking about F2FS, is it for all cache data and system or only one/some specific?
When you have the famous "encryption unsuccessfull, what should you do? Set file system to ext4? If yes, which one? System, data, cache? All 3?
Thanks in advance, my phone is softbricked ATM. Even the stock firmware trick didn't worked this time ?
Click to expand...
Click to collapse
If u want f2fs, then all will be on f2fs..if u want ext4, then only data pertition will be on ext4 and rest will be on f2fs

Related

F2FS System wide, questions...

Anyone here experienced with system partitions and dependancies?
Im trying to run my n7105 in f2fs system wide.
ive found a few small glitches that cause me greif.
1. if i format the cache to f2fs. twrp cant mount data afterwards.
installing roms works fine but you lose your modem/baseband. especially if its a pre 4.3 modem.
2. if i format my sdcards to f2fs, very difficult to mount them as MTP for pc file transfer.
is there something im doing wrong with cache file system?
maybe you just cant have it f2fs? ext4 works fine with the rest of the system being f2fs.
also. i just found out i can stock rom then restore backup and it formats partitions back to f2fs for me.
no more double flashing and formatting.. yay.
any other tips or tricks when dealing with system partitions would be great.
also. whats the deal with f2fs and encryption being a problem?

[Q] F2fS gets reverted to EXT4

Hi!
I got twrp v2.8.6.0 on s4 mini gt-i9190, and wanna try f2fs on kitkat roms.
The problem is that i did format f2fs to system, cache, and data folders. But when i flash ANY rom (carbon, cm11 M12, slimkat, etc etc) the system folder gets reverted to EXT4.
Tried the "force f2fs format" option in settings (twrp 2.8.1.0) but its the same, after the rom flash, the partition gets reverted to EXT4.
No wondes whats happening, sure you guys can help.
Thanks in advance! And i apologize for my bad english...
Attached a screenshot where you can see
UP!
Any hint?
UP!

Cannot apply f2fs on N7105

Hi all, I tried to search every posts in the thread of wilson3q's unofficial build cm12.1, to see if the rom supports f2fs since I really love this rom. But I only found 1 post asking without answer. So may I ask is this rom supports f2fs for system, cache, and data?
Below were what I have done before but failed.
1. Flash AGNi pureCM kernel and reboot back to TWRP 2.8.7.0
2. Flash zips provided in the thread of AGNi pureCM kernel to turn my N7105's system, data and cache from ext4 into f2fs
3. Flash latest build of wilson3q's unofficial build cm12.1, then wipe cache/davik cache
4. Flash AGNi pureCM kernel again, then wipe cache/davik cache
5. Flash Open Gapps, then wipe cache/davik cache
After all these, I noticed the System partition is back to ext4 again, is this means wilson3q's unofficial build cm12.1 doesn't support f2fs? In addition, the rom loops in CM boot logo if the Data and Cache continue to be f2fs. Everything gets fine again if I change all the partition back to ext4.
Can anyone help?
erictrixis said:
Hi all, I tried to search every posts in the thread of wilson3q's unofficial build cm12.1, to see if the rom supports f2fs since I really love this rom. But I only found 1 post asking without answer. So may I ask is this rom supports f2fs for system, cache, and data?
Below were what I have done before but failed.
1. Flash AGNi pureCM kernel and reboot back to TWRP 2.8.7.0
2. Flash zips provided in the thread of AGNi pureCM kernel to turn my N7105's system, data and cache from ext4 into f2fs
3. Flash latest build of wilson3q's unofficial build cm12.1, then wipe cache/davik cache
4. Flash AGNi pureCM kernel again, then wipe cache/davik cache
5. Flash Open Gapps, then wipe cache/davik cache
After all these, I noticed the System partition is back to ext4 again, is this means wilson3q's unofficial build cm12.1 doesn't support f2fs? In addition, the rom loops in CM boot logo if the Data and Cache continue to be f2fs. Everything gets fine again if I change all the partition back to ext4.
Can anyone help?
Click to expand...
Click to collapse
In TWRP there is a setting to use "rm -f" instead of formatting. If you make sure this is on before flashing the ROM it might work. I remember doing this some years ago.
Installing the ROM usually formats /system as ext4 but that setting just wipes all files (shouldn't be any as you formatted to f2fs) and so keeps the old file system (f2fs) rather than formats the new (ext4).
This worked for me on my N7100 using Agni kernel (had f2fs support). In the end I stopped using f2fs since my phone would have the "sleep of death" so I had to pull the battery. Eventually this lead to massive corruptions of the file system on /data and I lost everything.
I read somewhere that f2fs speed advantage is not that great on read only partitions such as /system.
Anyway, that's my experience, it's up to you what you do now. Hopefully my advice works in your N7105.
Sent from my GT-N7100 using Tapatalk
DarrenNewsgroup said:
In TWRP there is a setting to use "rm -f" instead of formatting. If you make sure this is on before flashing the ROM it might work. I remember doing this some years ago.
Installing the ROM usually formats /system as ext4 but that setting just wipes all files (shouldn't be any as you formatted to f2fs) and so keeps the old file system (f2fs) rather than formats the new (ext4).
This worked for me on my N7100 using Agni kernel (had f2fs support). In the end I stopped using f2fs since my phone would have the "sleep of death" so I had to pull the battery. Eventually this lead to massive corruptions of the file system on /data and I lost everything.
I read somewhere that f2fs speed advantage is not that great on read only partitions such as /system.
Anyway, that's my experience, it's up to you what you do now. Hopefully my advice works in your N7105.
Sent from my GT-N7100 using Tapatalk
Click to expand...
Click to collapse
Thank you so much! I will try that when I get back to home!

[noob] How can i change to f2fs inTwrp?

I'm on zenity rr latest build with render kernel eas, I'd like to know how i can change file system to f2fs and what it will erase...And then... Is it worth changing to f2fs? Probably this question has been asked many times, but if i found it i wouldn't have written noob in title
eraser3000 said:
I'm on zenity rr latest build with render kernel eas, I'd like to know how i can change file system to f2fs and what it will erase...And then... Is it worth changing to f2fs? Probably this question has been asked many times, but if i found it i wouldn't have written noob in title
Click to expand...
Click to collapse
f2fs is for good benchmarks in real life ext4 >> f2fs
and when you change the FS the data will be lost .
f2fs makes twrp very slow as well .
I was using f2fs for a month and reverted it back .
Didnt like it
Its very easy brother although formatting data to f2fs will erase everything like your download's/pictures, so the steps.
BACK UP YOUR SD CARD FOLDER.
1 - Reboot to twrp
2 - select wipe and then select advanced wipe/change filesystem.
3 - select data
4 - select change filesystem or format ( forgot which word it actually says )
5 - select f2fs and swipe to confirm flash
6 - reboot and restore data folder
People will say its not worth it but if you write to your data a lot and install apps you notice faster install times over EXT4
daviss101 said:
Its very easy brother although formatting data to f2fs will erase everything like your download's/pictures, so the steps.
BACK UP YOUR SD CARD FOLDER.
1 - Reboot to twrp
2 - select wipe and then select advanced wipe/change filesystem.
3 - select data
4 - select change filesystem or format ( forgot which word it actually says )
5 - select f2fs and swipe to confirm flash
6 - reboot and restore data folder
People will say its not worth it but if you write to your data a lot and install apps you notice faster install times over EXT4
Click to expand...
Click to collapse
Will it wipe even other partitions like /system? do I have to flash again something?
eraser3000 said:
Will it wipe even other partitions like /system? do I have to flash again something?
Click to expand...
Click to collapse
No just data so you won't have to flash ROM again
daviss101 said:
No just data so you won't have to flash ROM again
Click to expand...
Click to collapse
Ok thanks, i thought i had to flash rom again:silly:
daviss101 said:
No just data so you won't have to flash ROM again
Click to expand...
Click to collapse
Does supersu work with f2fs?
Format data in recovery WIPE ALL in youre phone.
Recovery > Wipe > Format Data > Yes.
null0seven said:
Format data in recovery WIPE ALL in youre phone.
Recovery > Wipe > Format Data > Yes.
Click to expand...
Click to collapse
yes but...It will wipe only internal not system partition right?
Mate, format data erase ALL.
You only have a empty TWRP directory in internal memory. It's healty for the phone, but if you like to keep data...
null0seven said:
Mate, format data erase ALL.
You only have a empty TWRP directory in internal memory. It's healty for the phone, but if you like to keep data...
Click to expand...
Click to collapse
Lol, now i only became more confused. If i format data all my internal storage will be wiped, right? But my other partitions will be kept? such as system? after formatting and clicking on reboot system it will boot or stay in boot loop?
eraser3000 said:
Lol, now i only became more confused. If i format data all my internal storage will be wiped, right? But my other partitions will be kept? such as system? after formatting and clicking on reboot system it will boot or stay in boot loop?
Click to expand...
Click to collapse
There's no major difference you will see in changing the filesystem to F2FS. I am using F2FS on Data Partition on Sultan CM & there is no major difference in real life.
qasimtb said:
There's no major difference you will see in changing the filesystem to F2FS. I am using F2FS on Data Partition on Sultan CM & there is no major difference in real life.
Click to expand...
Click to collapse
I want to give it a try, if I don't see any noticeable difference I could come back to ext4
eraser3000 said:
yes but...It will wipe only internal not system partition right?
Click to expand...
Click to collapse
There are a few partitions on your phone, just like a hard drive. Think of your /system partition as your C: drive. Your /data partition would then be D: Your apps, the data for the apps, your dalvik/art cache, and your "Internal storage" are all on /data.
Changing your file system is literally formatting the drive, which initializes a new file system. For Windows, it's NTFS, for Linux it's normally ext4. You are basically going to format D:
Got it? Your Rom is on C:, data and apps on D:
Sent from my ONEPLUS A3000 using Tapatalk
About F2FS some users sad that it's better on gaming. And benchmarks (this it's useless).
Other than that recovery open slowly comparing with ext4.
Le
You will see that youre internal memory it's smaller on F2FS.
uudruid74 said:
There are a few partitions on your phone, just like a hard drive. Think of your /system partition as your C: drive. Your /data partition would then be D: Your apps, the data for the apps, your dalvik/art cache, and your "Internal storage" are all on /data.
Changing your file system is literally formatting the drive, which initializes a new file system. For Windows, it's NTFS, for Linux it's normally ext4. You are basically going to format D:
Got it? Your Rom is on C:, data and apps on D:
Sent from my ONEPLUS A3000 using Tapatalk
Click to expand...
Click to collapse
Ok, now things are clear!

[SOLVED] Help! "encryption unsuccessful" message!

I was running oos based nougat custom rom with blu spark recovery. Then flashed official ob1, didnt like it, wiped cache/data/system and reinstalled my old oos nougat rom (audax 4.7.6). Now i get the above mentioned message..
Things i tried:
- addionally wipe internal storage and media (installed rom via adb sideload then)
- reformat system/cache/date with ext4
I googled the error and for most people (threads werent particularly concerning the op5t however) it seems that just wiping data and reinstalling the rom did the trick. Not for me though..
What can i do now?
Solution: reformating the data partition with ext4 is not enough. I had to format to FAT and right after that again to ext4, reboot to system and boom, it worked!
PS: i wonder what data is on the internal storage partition that i deleted? I didnt have any data on the phone, i just wonder.. It isnt somehow crucial to the phone?!
I think the decryption key is somehow embedded into the internal storage as wiping /data does not delete the PIN/pattern. Might be a hidden partition or something similar that is not wiped when wiping /data as long as it is ext4.
Your data is gone. It failed to completely encrypt and now there's nothing that can be done. Format /data as ext4 and let it try encrypting again
I have the same problem exactly. Can you explain in steps you have installed then format or how?
I have the same problem exactly. Can you explain in steps you have installed then format or how?
Click to expand...
Click to collapse
I had the exact same problem. But it is an easy fix but does require wiping your internal storage.
So the save way of doing this would be:
1. Backup all your data by going to TWRP or your ROM if that still works. Plug in an USB cable and use MTP or the adb pull command to backup your data
2. Reflash OB1 with no root (like Magisk of SuperSU) if you have TWRP. This will cause you to have the stock recovery again. I also recommend to do a clean flash (Wiping system and data before flashing the rom).
3. Download the rollback build from Oneplus [HERE] and copy this to the internal storage.
4. Boot into the stock recovery flash the rollback build. THIS STEP WILL WIPE YOUR INTERNAL STORAGE.
5. Now you have OxygenOS 4.7.5. Download OxygenOS 4.7.6 Incremental Update [HERE]
6. Go back to the Stock recovery and flash the incremental 4.7.6 zip.
7. You have the latest version now. So boot to fastboot reflash TWRP and flash SuperSU or Magisk in TWRP to regain root
Guys I did a fail, i had OB3 installed, and I wanted to try RR so I wiped system and when I tried to install I have seen error 7 saying its for dumpling not for oenplus5t.
So I restored.... But instead restoring OB3 I have restored stock Nougat rom -.- I have even stock recovery now, what is the best way to fix it?
Can i change to FAT and stay and dont go back to ex4 again?
Hi i don't know if u r reading this but if you are please help me cause I'm so lost and confused over this since yesterday...
so 2 days ago my phone started lagging and hanging and freezing until i realized i have got this issue with data encryption
i have a rooted sony z2 with TWRP Custom recovery
first i didn't know it was with data encryption failure so i literally factory reset and installed all my apps and data again and again!!! after every time my phone started to lag !!
after one whole day of trying everything i finally realized its actually with the data encryption and i should change my ex4 to something else... so here again i wiped the phone and changed to ex3 and installed and all my data and apps all over again
but after a couple hours...same problem again.....
im literally so tired of not knowing what to do ! my head hurts so much due this ugh....
i havent changed to FAT from ex3 so im wondering if it will finally solve my problem permanently if i change to FAT ??
And if it did can i just keep it on FAT forever ?
Please guide me thanks ...!
Lasersdude said:
I was running oos based nougat custom rom with blu spark recovery. Then flashed official ob1, didnt like it, wiped cache/data/system and reinstalled my old oos nougat rom (audax 4.7.6). Now i get the above mentioned message..
Things i tried:
- addionally wipe internal storage and media (installed rom via adb sideload then)
- reformat system/cache/date with ext4
I googled the error and for most people (threads werent particularly concerning the op5t however) it seems that just wiping data and reinstalling the rom did the trick. Not for me though..
What can i do now?
Solution: reformating the data partition with ext4 is not enough. I had to format to FAT and right after that again to ext4, reboot to system and boom, it worked!
PS: i wonder what data is on the internal storage partition that i deleted? I didnt have any data on the phone, i just wonder.. It isnt somehow crucial to the phone?!
Click to expand...
Click to collapse
Finally. Thank you so much!

Categories

Resources