F2FS on Lollipop - Nexus 5 Q&A, Help & Troubleshooting

I was able to convert /data to F2FS and flash EX kernel. That boots and runs fine, but I converted cache to F2FS and it won't boot. I'd also love to convert /system as well, but as far as I understand that takes a custom ROM. Anyone else have any experience with F2FS on 5.0?

Bumps

Not on 5, no. But cache and system are of little or no benefit anyway. IMHO only /data needs to be f2fs. It improves read/writes on flash memory but you're not really doing that on /system (and some extent, /cache) as you are with /data.

Hu? You read/write from cache, system, and data all the time! Lots of google apps are system apps, obviously /data is everything else and cache gets used by both!

bobloadmire said:
Hu? You read/write from cache, system, and data all the time! Lots of google apps are system apps, obviously /data is everything else and cache gets used by both!
Click to expand...
Click to collapse
System? Absolutely not. You Never write and it is rare that you read too.
Cache is hardly used. If you look in there.

Ah yes you wre right about system, though you still do a lot of read from it. I'm under the impression that cache actually can get hammered as hard as /data because every app launch pulls cache.

bobloadmire said:
Ah yes you wre right about system, though you still do a lot of read from it. I'm under the impression that cache actually can get hammered as hard as /data because every app launch pulls cache.
Click to expand...
Click to collapse
App cache is on /data. /cache is primarily used for play downloads

Really? Well I'm learning a lot today. Why is a play store cache it on a separate partition?

bobloadmire said:
Really? Well I'm learning a lot today. Why is a play store cache it on a separate partition?
Click to expand...
Click to collapse
It just downloads the apk there until it is installed. Just to keep it tidy

gotcha. So if we convert /system to F2FS that will help things like boot, system apps etc, I'm assuming. Resume from sleep?

bobloadmire said:
gotcha. So if we convert /system to F2FS that will help things like boot, system apps etc, I'm assuming. Resume from sleep?
Click to expand...
Click to collapse
Boot maybe. Systems apps, debatable. Negligible if any. Data is where the payload is.

Related

[proof] wiping cache also 'wipes' dalvik

So, this has been a question/subject of much mystery. Does wiping /cache also 'wipe' the Dalvik? A bunch of us know that the Dalvik is located within /cache so, it's assumed that wiping /cache will also wipe the Dalvik, but most have gone the route of being careful, just in case. Which is fine.
In getting a CWM log from someone to port my Nullifier and something I caught a glimpse of but was too busy to go back and check on, we now have objective proof that wiping /cache will also wipe your Dalvik:
Code:
-- Wiping cache...
Formatting /cache...
I:Formatting unknown device.
I:Formatting ext3 device.
tune2fs 1.41.6 (30-May-2009)
Setting current mount count to 1
e2fsck 1.41.6 (30-May-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/block/mmcblk0p2: 11/16384 files (0.0% non-contiguous), 7478/65536 blocks
Cache wipe complete.
E:unknown volume for path [/sd-ext]
rm: can't remove '/cache/dalvik-cache': No such file or directory
rm: can't remove '/sd-ext/dalvik-cache': No such file or directory
Dalvik Cache wiped.
And if this isn't enough, go format your cache, then wipe your dalvik and then check the log at advanced>show log.
Was actually wondering about that last night when I ran the nullifier... thanks for the peice of mind!
Pin it to Win it.
Not a problem, I'll likely post a link to this thread in the Nullifier Q&A, I'm sure it'll get asked at some point.
One less step for crackflashers to do. Yes 5 secs more is a lot of time especially when a new rom comes out
Sent from my LG-P999 using xda premium
Remember, the Nullifier will now format /cache for you, so it's a great AIO. And there's also a second one for just one wipe.
Волк said:
Remember, the Nullifier will now format /cache for you, so it's a great AIO. And there's also a second one for just one wipe.
Click to expand...
Click to collapse
Yeah its a great tool. Thanks
Sent from my LG-P999 using xda premium
np. Also decided to make on just for /cache. Will likely make it and put it up tomorrow night.
That's awesome.
Edit: off topic sorry.
Sent from my LG-P999 using xda premium
PM me and we can discuss it. I don't want to get off topic.
it will wipe cache unless this line is in your build.prop
dalvik.vm.dexopt-data-only=1
in that case dalvik cache is stored on the data partition
like in CM9 because stock partition size is a bit to small
you can resize it using NVFLASH and store the dalvik back on the cache partition
ohh and by the way cleaning dalvik cache is not needed...
arcee said he never did it, i never did it and i never had any troubles caused by dalvik cache
android checks the dalvik cache and if there is a mismatch it will just throw away the dalvik cache and re create it
As we discussed yesterday in the Nullifier thread, dalvik is not cleared by a /cache wipe unless a ROM specifically places it there (which I have not seen on the G2x)... I have only seen it contained in /data on these devices.
Simple proof.
Do a /cache wipe.
Does dalvik rebuild upon reboot?
No.
overground said:
As we discussed yesterday in the Nullifier thread, dalvik is not cleared by a /cache wipe unless a ROM specifically places it there (which I have not seen on the G2x)... I have only seen it contained in /data on these devices.
Simple proof.
Do a /cache wipe.
Does dalvik rebuild upon reboot?
No.
Click to expand...
Click to collapse
just like i said
if the ROM has this line defined
dalvik.vm.dexopt-data-only=1
dalvik cache will be stored on the data partition
in that case a cache wipe will not wipe the dalvik
you can place this line in the build.prop
dalvik.vm.dexopt-data-only=0
and delete dalvik cache you will see it will be rebuild on the cache partition
but this is not smart the cache partition is really small on this device
you can resize it with NVFLASH to check but just believe us
clearing cache will only clear the dalvik if the dalvik is on the cache partition otherwise not
it is like formatting your D: partition and losing your windows that is installed on the C: partition it just make no sense!

[Tool][23 Sept 2015][Aroma][v1.2]:Mega Wipe:Super Wipe:Factory Reset:Simple Wipe

This is a tool originally developed by Zoot1 a developer on xda-developers.com.
All I have done, with his permission, is to modify it for the Samsung Galaxy Note 3.
I wish to thank him very much for allowing me to do this. You can visit his original development link at Zoot1 Wipe Scripts for Flashaholics.
USE THIS AT YOUR RISK. I AM NOT RESPONSIBLE FOR AN DAMAGE TO YOUR PHONE, ANY ARGUMENTS BETWEEN YOU AND YOUR SPOUSE, LOST BANK ACCOUNTS, NEW REVOLUTIONS OR ACTS OF GOD.
You MUST have the following installed in order to use this tool:
1. CWM or TWRP Recovery installed
2. Busybox installed
What the tool does:
1. Megawipe: Use this to completely format your phone. It will delete everything on your phone and will bring it to bare bones. After using it, install any ROM for a fresh experience without any conflicts with in the framework.It deletes the Data (except data/media), Cache, System and Preload partitions of your phone. So Beware!
2. SuperWipe: This is a simple factory reset and you can use it to move from one ROM to another without bothering about framework conflicts. It deletes the Dalvik Cache, Preload, System and Cache partitions of your phone. Does NOT delete your data files.
3. Factory Reset: Use it to do a Factory Reset, which wipes your Data partition (except data/media), Cache Partition and Dalvik Cache.
4. SimpleWipe: A simple wipe is as the name suggests. A Simple Cache and Dalvik cache wipe. You can use it to clear the said partitions before updating to a newer version of your ROM. Also, You can use it before you have to flash a new ROM.
Updated Sept. 23, 2015 - v1.2 for N900/N9005 - Note: I only have an N900.
Changes: Sept. 23, 2015
- modified wiping of data partition to skip data/media (your internal SDCard)
- expanded text for the different wipes to give more information about the wipe choices
- NOTE: the only difference between the 2 scripts is the partition numbers for the N900 and the N9005
Download Link:
so is it safe to wipe now? even with cwm? there was an issue with wipe which caused boot loop?! isnt it?
mR.fR34ky said:
so is it safe to wipe now? even with cwm? there was an issue with wipe which caused boot loop?! isnt it?
Click to expand...
Click to collapse
Haven't had any problems with CWM wipe.
mR.fR34ky said:
so is it safe to wipe now? even with cwm? there was an issue with wipe which caused boot loop?! isnt it?
Click to expand...
Click to collapse
the bootloops were cased by restroing nandroids.. AFAIK there were no issues with wipes...
gcrutchr said:
Haven't had any problems with CWM wipe.
Click to expand...
Click to collapse
so the mega wipe wipes interal sdcard as well? is there anyway to edit that so the script only wipes data/system/cache/dalvik, and leaves sdcard intact?
Khizar said:
the bootloops were cased by restroing nandroids.. AFAIK there were no issues with wipes...
so the mega wipe wipes interal sdcard as well? is there anyway to edit that so the script only wipes data/system/cache/dalvik, and leaves sdcard intact?
Click to expand...
Click to collapse
The MegaWipe DOES NOT wipe internal sdcard. Having looked at the original script, it never did.
gcrutchr said:
The MegaWipe DOES NOT wipe internal sdcard. Having looked at the original script, it never did.
Click to expand...
Click to collapse
Mega Wipe does not delete your internal partition? Because in Samsung Galaxy S 3 i remember this script "reformat" your preload internal partition! the word "reformat" i put it in quotes because i don`t know exactly how to say it in english! Anyway i must thank you for your hard work!
Nice. If I understand this correctly this is like the Darkside wipes (and now Infamous wipes) for GSII. I used those all the time on my phone. Easiest way to wipe without worry. Thanks. I was hoping for this for the Note 3.
does not work for my n9005
Theblack_jack said:
does not work for my n9005
Click to expand...
Click to collapse
Thanks for your feedback!
no problem
gcrutchr said:
The MegaWipe DOES NOT wipe internal sdcard. Having looked at the original script, it never did.
Click to expand...
Click to collapse
Did you test it on your Note 3 this tool that you port?
good question
the dev of this mod will not again zip for megawipe, such as the not working?
anyone?
Theblack_jack said:
anyone?
Click to expand...
Click to collapse
I will post a working update on Sunday.
ah yes! thank you
Theblack_jack said:
ah yes! thank you
Click to expand...
Click to collapse
Scripts should be working now. Updated, tested and used for a new ROM I installed.
well does not work on n9005
Theblack_jack said:
well does not work on n9005
Click to expand...
Click to collapse
Can you send the partition layout for the N9005 so I can check the partition numbers?
If you do not know what they are, there is a free partition layout app on the PlayStore you can install.
It is called Partition Table by Lakshman.
I need the following:
/data
/preload
/system
/cache
Also, what do you mean it is not working? what happens when you run it?
can you give me the name of the application? and when I flash the zip it's still about 10%
so if I have the full menu. superwipe, megawipe .... with cwm 6.0.4.4

going from full f2fs to mixed.

i was reading the temasek thread and noticed that keeping /system on ext4 is better for the phone. judging by the slow downs i found after switching to f2fs... i have to agree. so i am hoping to clarify something right quick. formatting /system back to ext4 - will not erase my roms, correct? thanks.
phermey said:
i was reading the temasek thread and noticed that keeping /system on ext4 is better for the phone. judging by the slow downs i found after switching to f2fs... i have to agree. so i am hoping to clarify something right quick. formatting /system back to ext4 - will not erase my roms, correct? thanks.
Click to expand...
Click to collapse
Formatting /system will erase everything that resides in the /system partition obviously.
timmaaa said:
Formatting /system will erase everything that resides in the /system partition obviously.
Click to expand...
Click to collapse
indeed obviously. i have so many issues with the drivers on my xp machine that i just wanted to be sure. if it erased my downloads... i would have been hours. i went ahead and took the chance a bit earlier. i should have updated. thanks for responding.

Missing Cache Partition After Rooting With Magisk/TWRP

I installed TWRP and rooted with Magisk but I have no cache directory. When I go to wipe there is no cache, just system/data/internal storage and Dalvik. How do I get cache back? I am on partition A in case that matters.
Much thanks for any/all help!
eddi0 said:
I installed TWRP and rooted with Magisk but I have no cache directory. When I go to wipe there is no cache, just system/data/internal storage and Dalvik. How do I get cache back? I am on partition A in case that matters.
Much thanks for any/all help!
Click to expand...
Click to collapse
The pixel does not have a cache partition or at least it has never shown one in twrp. If you wipe/dalvik/cache it will tell you, cache was not found.
Tulsadiver said:
The pixel does not have a cache partition or at least it has never shown one in twrp. If you wipe/dalvik/cache it will tell you, cache was not found.
Click to expand...
Click to collapse
So no way to wipe cache at all on Pixel then? I found benefit in doing that on the Nexus 5X so that is why I am wondering.
Thanks.
eddi0 said:
So no way to wipe cache at all on Pixel then? I found benefit in doing that on the Nexus 5X so that is why I am wondering.
Thanks.
Click to expand...
Click to collapse
Apparently the cache partition was used for OS updates. With two system partitions, that became unnecessary as it can be done in the background.
eddi0 said:
I installed TWRP and rooted with Magisk but I have no cache directory.
Click to expand...
Click to collapse
In the future, please don't post the same question in two threads, especially just minutes apart. An exception would be understandable if no one has answered the question in the first thread after several days.
Huh I feel like at some point this phone did have a cache partition though. I almost explicitly remember several wipes in which my cache didn't throw up an error. Could just be misremembering though

Wipe /system remove fingerprints?

Hi everyone, I'm not sure if I'm posting in the right place, so forgive me if I'm in the wrong place.
The title says it all: Does wiping the /system partition remove my fingerprints? I'm running lineage 18.1, I'm experiencing the battery draining very quickly, so I wanted to try a GApps that allows me to optimize Google services, I'm using MindTheGapps (Recommended by LineageOS), but I saw that NikkGapps allows me to do what I want, so I would like to test it, but I don't want to do it on top of another gapps, so I would clean /system.
But I share my fingerprint with my girlfriend, and re-enrolling her fingerprint is boring. So I wanted to know if the wipe in /system would erase the prints, or can I do it with peace of mind?
Thank's
Princknoby said:
Hi everyone, I'm not sure if I'm posting in the right place, so forgive me if I'm in the wrong place.
The title says it all: Does wiping the /system partition remove my fingerprints? I'm running lineage 18.1, I'm experiencing the battery draining very quickly, so I wanted to try a GApps that allows me to optimize Google services, I'm using MindTheGapps (Recommended by LineageOS), but I saw that NikkGapps allows me to do what I want, so I would like to test it, but I don't want to do it on top of another gapps, so I would clean /system.
But I share my fingerprint with my girlfriend, and re-enrolling her fingerprint is boring. So I wanted to know if the wipe in /system would erase the prints, or can I do it with peace of mind?
Thank's
Click to expand...
Click to collapse
No, wiping system partition doesn't wipe stored fingerprints because they are stored in the data partition. When flashing ROMs, wiping data partition(factory reset) is required unless you are flashing an updated version of a ROM that you already have installed, such as having LineageOS installed and then updating to a newer version of LineageOS, you can just flash the new ROM without having to wipe anything.
Hi, unfortunately I couldn't test if it would work... I wiped /system /dalvik /cache, installed ROM and GApps, but was unable to boot, stuck in bootloop, forced to format /data partition Anyway, thanks for your time!

Categories

Resources