Hi y'all. I've recently bought a refurbished nexus 5, installed TWRP and wiped cache and dalvik/art-cache. The thing is, when it rebooted, only 10 apps were optimized (given I had many more installed) and when I went to storage, I found out I had 200mb of data in the cache partition.
Is there something else I'm missing? Thanks!
Try flashing a stock rom and then perform a factory wipe from stock recovery.
audit13 said:
Try flashing a stock rom and then perform a factory wipe from stock recovery.
Click to expand...
Click to collapse
Done that, but nothing diferentt happened
Enviado desde mi Nexus 5 mediante Tapatalk
Did you flash the userdata.img file too? After flashing stock, relock the bootloader, reboot to fastboot to see if the bootloader stays locked. If it does, unlucky again and, if it wipes the phone in a few seconds, the emmc could be damaged..
audit13 said:
Did you flash the userdata.img file too? After flashing stock, relock the bootloader, reboot to fastboot to see if the bootloader stays locked. If it does, unlucky again and, if it wipes the phone in a few seconds, the emmc could be damaged..
Click to expand...
Click to collapse
I used the flash-all.bat given. Do I have to flash it or don't? I'll try what you suggest.
I would flash userdata.img as the script doesn't flash it.
Hey, wanted to say it worked! It seems my cache partition was corrupted or something, but your solution did the trick. Thanks!
Glad it worked for you. Enjoy your phone.
Related
I restart my phone because it did a lot of time to reset cache. I regered the time I did it but was late.
Now my phone opens but does not have mobile network and cannot access my /sdcard/
From recovery I can see my sdcard. What can I Do?
Are you fully stock? If so, then format /cache partition and then perform a factory reset via stock recovery.
If you aren't fully stock, and use a custom recovery then I would suggest you to perform a factory reset from the custom recovery (it won't wipe internal sd)..
If it still doesn't work then you need to go back to fully stock by flashing the factory images from Google.
- Sent from an IceCold Hammerhead!
Yep, just keep wiping / formatting cache until it fixes or fastboot flash the stock cache.img
Sent from my Nexus 5 using Tapatalk
vin4yak said:
Are you fully stock? If so, then format /cache partition and then perform a factory reset via stock recovery.
If you aren't fully stock, and use a custom recovery then I would suggest you to perform a factory reset from the custom recovery (it won't wipe internal sd)..
If it still doesn't work then you need to go back to fully stock by flashing the factory images from Google.
- Sent from an IceCold Hammerhead!
Click to expand...
Click to collapse
I am not stock at all. I thought if I could copy sdcard to otg before all these.
pagratios said:
I am not stock at all. I thought if I could copy sdcard to otg before all these.
Click to expand...
Click to collapse
Just flash the stock recovery via fastboot and then format cache multiple times until it successfully formats! Your data won't be lost.
Since you rebooted before the cache was formatted, it has ended in a messed up /cache partition.
If you want to backup data, you can use adb pull from recovery...
See above
Edit.. By that I meant my previous post
Sent from my Nexus 5 using Tapatalk
rootSU said:
Yep, just keep wiping / formatting cache until it fixes or fastboot flash the stock cache.img
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
It says cannot mount cache.
vin4yak said:
Just flash the stock recovery via fastboot and then format cache multiple times until it successfully formats! Your data won't be lost.
Since you rebooted before the cache was formatted, it has ended in a messed up /cache partition.
If you want to backup data, you can use adb pull from recovery...
Click to expand...
Click to collapse
Now. I am pulling my data and then I'll flash stock.
I have a backup before the mistake. If I restore it?
pagratios said:
It says cannot mount cache.
Click to expand...
Click to collapse
In fastboot? That is an unknown error in fastboot to me.
Sent from my Nexus 5 using Tapatalk
pagratios said:
It says cannot mount cache.
Now. I am pulling my data and then I'll flash stock.
I have a backup before the mistake. If I restore it?
Click to expand...
Click to collapse
You can try to restore the backup but I doubt if it will solve the issue. However, there's no harm in trying..
The cache partition is messed up.. It needs to be formatted first. That's why I suggested you to go back to stock recovery and format cache...
I have tried wiping cache on Philz Touch and twrp and it didn't solve my problem. I had to format the cache partition using the stock recovery and voila! Everything was fixed.
vin4yak said:
You can try to restore the backup but I doubt if it will solve the issue. However, there's no harm in trying..
The cache partition is messed up.. It needs to be formatted first. That's why I suggested you to go back to stock recovery and format cache...
I have tried wiping cache on Philz Touch and twrp and it didn't solve my problem. I had to format the cache partition using the stock recovery and voila! Everything was fixed.
Click to expand...
Click to collapse
Yes but if you're flashing stock recovery fastboot you may aswell flash cache.img instead which is a well documented fix in this forum
Sent from my Nexus 5 using Tapatalk
rootSU said:
In fastboot? That is an unknown error in fastboot to me.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
My bad. I understand to have done this from TWRP. I haven't tried yet to do something from fastboot due to the backup.
rootSU said:
Yes but if you're flashing stock recovery fastboot you may aswell flash cache.img instead which is a well documented fix in this forum
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yeah. I guess it will save some time and will be relatively easy for the OP!
pagratios said:
My bad. I understand to have done this from TWRP. I haven't tried yet to do something from fastboot due to the backup.
Click to expand...
Click to collapse
Flashing the stock cache.img won't wipe your saved data or backups.. There's no harm in trying.. However, if you're skeptical, adb pull all your important stuff and then do the flashes!
Finally I flashed cache.img and seems that everything is good again. Thank you for your help.
I just got my Nexus 5 a while ago and I just unlocked the bootloader and flashed TWRP and as soon as I opened TWRP it basically crashed and rebooted the phone is a boot loop but now when I go to TWRP the log says Unable to mount /data and I can't do anything. Does anyone have the solution? I knew I shouldn't have rooted -_-
Have you flashed a stock cache.img yet? Thats usually the first thing to try.
Sent from my Nexus 5 using Tapatalk
Uhh
Not yet right now I'm currently using Wug's Toolkit and seeing if that helps then i'll try that. Do you have the link by any chance?
OH thank GAWD its working again thanks for your help though
what did you do in the toolkit?
Generally the consensus here is to not use toolkits. There are 2-3 "Johnny Opposite" members, but the masses of senior members see them as a bad thing.
I explain what happend.
You opened bootloader, but you flashed twrp instead of start the phone to let stock recovery finish the formating. You flashed twrp and rebooted to twrp. Twrp found the commands in the memory or on the misc partition to do a factory reset then reboot, but that format command is not compatible with twrp, so that commamd was skipped and then twrp rebooted your, because that was the next command in the line. Now your started booting with an unformated cache and data partition. The easiest way to solve the issue is to do a format data in twrp to format data partition then a factory reset to format cache.
So In the toolkit I basically flashed the stock rom and it basically factory reset EVERYTHING so now its working again thanks for the help! Now to try this over again
killerkyman said:
So In the toolkit I basically flashed the stock rom and it basically factory reset EVERYTHING so now its working again thanks for the help! Now to try this over again
Click to expand...
Click to collapse
Ok thanks. It is best to do those steps manually
Sent from my Nexus 5 using Tapatalk
Yeah so I forgot to reboot before flashing recovery and entering that so now that I crossed that bridge I don't have to worry Wooh thank goodness I thought I totally messed up
What's the process to flash the 33R system image without me losing the internal storage data? I have run in to some unfixable issue with the OPO and hence am considering flashing the factory image as the last option.
The only concern is the data on the internal storage which is important for me. As I am unable to boot to the desktop nor use the MTP mode from TWRP, I cannot transfer/back up the content.
I've tried flashing Mahdi/33R/38R zips after wiping system/dalvik/cache/data with no luck. The phone keeps rebooting and is in a loop. Tried fixing permissions from recovery with no luck. I have no idea what am missing here...
I'd appreciate if anyone can provide me with steps to flash system image (without losing the internal storage data) instructions or resolve the other bootloop issue.
Thanks!
All you do is TWRP -> Wipe -> Swipe -> Flash ROM (and others... only flash ROM for now and it'll boot, maybe one of the mods or whatever ur flashing causes ur phone to boot loop)-> Reboot.
And then your phone will stop boot looping
zephiK said:
All you do is TWRP -> Wipe -> Swipe -> Flash ROM (and others... only flash ROM for now and it'll boot, maybe one of the mods or whatever ur flashing causes ur phone to boot loop)-> Reboot.
And then your phone will stop boot looping
Click to expand...
Click to collapse
Thank you. I have done all that to be frank. I flashed only the Mahdi ROM zip first and then booted. No luck. It kept bootlooping. Then tried the same with 33R zip too. No luck again. I have no mods running whatsoever.
I've done a complete wipe too as apps and app data isn't something I care for currently. It's the internal storage.
Use fastboot, grab the latest stock images
fastboot erase system
fastboot erase boot
fastboot erase cache
fastboot flash system system.img
fastboot flash boot boot.img
This won't erase internal SD, all will be intact so long as your prior issue didn't corrupt it in anyway
Have you tried restoring a nandroid?
shaker2k said:
Have you tried restoring a nandroid?
Click to expand...
Click to collapse
Yup, did that too. Restored a couple of nandroids with no luck
demkantor said:
Use fastboot, grab the latest stock images
fastboot erase system
fastboot erase boot
fastboot erase cache
fastboot flash system system.img
fastboot flash boot boot.img
This won't erase internal SD, all will be intact so long as your prior issue didn't corrupt it in anyway
Click to expand...
Click to collapse
Thanks. Yup, used to do that with Nexus 5 and other nexus devices. But the factory image for OPO has other files too. Do I not need to flash them too somehow?
I think those are boot.img and tour radio firmware. I don't think you have tot flash those. But I'm also new to this...
Sent from my 1+1 using XDA Mobile Free
Wiped everything (internal memory too) and flashed the factory image clean and now I have the "Unfortunately, AudioFX has stopped working" error. The phone is unusable literally.
https://forums.oneplus.net/threads/how-do-you-go-from-custom-rom-to-stock-cm11s.95786/
Try this...
Sent from my A0001 using Tapatalk
---------- Post added at 07:31 AM ---------- Previous post was at 07:29 AM ----------
This will wipe your device... And make sure you use the right userdata.img
Sent from my A0001 using Tapatalk
syncopy said:
Wiped everything (internal memory too) and flashed the factory image clean and now I have the "Unfortunately, AudioFX has stopped working" error. The phone is unusable literally.
Click to expand...
Click to collapse
http://forum.xda-developers.com/oneplus-one/help/fix-brickloop-audio-fx-fc-efs-corrupt-t2879061
playya said:
http://forum.xda-developers.com/oneplus-one/help/fix-brickloop-audio-fx-fc-efs-corrupt-t2879061
Click to expand...
Click to collapse
OMG! You're my hero and savior. This fixed it. Thank you so much. You have no idea how happy I am
Thank you!
Basically, my wife's phone was constantly rebooting. I had heard of power button issues so I tried to open the phone to fix that. After fiddling around with the button the problem persisted. I read somewhere that wiping the cache would help so I prepared to do that.
As I was waiting for the cache to wipe... the phone reboot again. It now does not boot (sits on the boot screen after the Google logo goes away) and says invalid argument when I try to wipe the cache.
According to this post, flashing the cache.img will fix the corrupt cache and allow me to wipe it.
Unfortunately my wife's phone has not been backed up, nor has the bootloader been unlocked. Is there ANY way to backup/retrieve files before unlocking the bootloader so I can fix the cache corruption issue? She has stock recovery, running lollipop.
Would really appreciate help in this matter, the pictures on her phone are from a year of travelling (not my best idea to leave them on her phone...but I digress).
If your phone keeps rebooting, and bootloader is LOCKED, its going to be hard to do anything to recover user data.
Having said that,
If you had ADB debug enabled before this disaster, you could try to ADB Sidleoad the Nexus 5 Lollipop OTA zip from stock recovery.
Then you data would remain intact.
Best of luck
Artorias90 said:
Basically, my wife's phone was constantly rebooting. I had heard of power button issues so I tried to open the phone to fix that. After fiddling around with the button the problem persisted. I read somewhere that wiping the cache would help so I prepared to do that.
As I was waiting for the cache to wipe... the phone reboot again. It now does not boot (sits on the boot screen after the Google logo goes away) and says invalid argument when I try to wipe the cache.
According to this post, flashing the cache.img will fix the corrupt cache and allow me to wipe it.
Unfortunately my wife's phone has not been backed up, nor has the bootloader been unlocked. Is there ANY way to backup/retrieve files before unlocking the bootloader so I can fix the cache corruption issue? She has stock recovery, running lollipop.
Would really appreciate help in this matter, the pictures on her phone are from a year of travelling (not my best idea to leave them on her phone...but I digress).
Click to expand...
Click to collapse
Contact me on hangouts/email: [email protected]
I can flash custom recovery without unlocking bootloader or wipe. If the /data partition didnt get corrupted we could recover the files.
Sent from my Nexus 5 using XDA Free mobile app
Has my brain gone broken? I thought you could fastboot stock img files without unlocking the bootloader?
Ben36 said:
Has my brain gone broken? I thought you could fastboot stock img files without unlocking the bootloader?
Click to expand...
Click to collapse
You can try that too.
What version of Android did you have on the phone?
In order to flash factory images, you’ll need to have the Android SDK HERE
Then you need to download the same version of Hammerhead Factory Image
you have been running on her phone HERE
Extract the correct Hammerhead Factory Image using 7zip or other extractor tool.
Then copy the cache.img from the extraction to the SDK/platform-tools folder.
From within your platform-tools folder, open a command prompt.
I'd recommend wiping the partition before flash.
-First type the following command
fastboot erase cache
-Then type the following command
fastboot flash cache cache.img
Plenty of tutorials in the sticky's if you need to learn more .
Best of luck
Just flashed "openrecovery-twrp-2.8.5.0-falcon_STOCK_KK" in my lollipop.
Then made a nanodroid backup to my otg pendrive.
Then when i reboot i stuck in a bootloop
How to fix it.
Do i have to erase cache after flashing recovery????
I don't know if it is still the case, but I have had to use the following fastboot command before I could access TWRP again in this situation. The command will wipe internal storage entirely.
fastboot erase userdata
Follow the TWRP thread for developments: http://forum.xda-developers.com/mot...y-twrp-2-8-2-0-touch-recovery-t2980621/page10
.:Addicted:. said:
Just flashed "openrecovery-twrp-2.8.5.0-falcon_STOCK_KK" in my lollipop.
Then made a nanodroid backup to my otg pendrive.
Then when i reboot i stuck in a bootloop
How to fix it.
Do i have to erase cache after flashing recovery????
Click to expand...
Click to collapse
I had the same problem but I can't remember how I solved. I do remember that I deleted all the user data. I then tried to do another nandroid and again it ended up with a boot loop so I think it's a recovery bug. I wouldn't do nandroid backups via recovery until the bug is fixed. I think there is an app in the play store that can make backups without the recovery but I haven't tried it.
.:Addicted:. said:
Just flashed "openrecovery-twrp-2.8.5.0-falcon_STOCK_KK" in my lollipop.
Then made a nanodroid backup to my otg pendrive.
Then when i reboot i stuck in a bootloop
How to fix it.
Do i have to erase cache after flashing recovery????
Click to expand...
Click to collapse
i did exactly the same thing that you did flashed twrp 2.8.5 made backup booted and boom - STUCK ON LOGO
i have erased my entire phone and no success yet
This issue is now fixed with the latest version of TWRP just released: http://forum.xda-developers.com/mot...ry-twrp-2-8-2-0-touch-recovery-t2980621/page1
lost101 said:
This issue is now fixed with the latest version of TWRP just released: http://forum.xda-developers.com/mot...ry-twrp-2-8-2-0-touch-recovery-t2980621/page1
Click to expand...
Click to collapse
Hey this is not solved yet
Because i flashed the latest 2.8.5 and currently my phone is in coma and its not booting any os
Ps:my data partition is corrupted does anyone know how to repair that
Sent from my E6 using XDA Free mobile app
sjandroiddeveloper said:
Hey this is not solved yet
Because i flashed the latest 2.8.5 and currently my phone is in coma and its not booting any os
Ps:my data partition is corrupted does anyone know how to repair that
Click to expand...
Click to collapse
You need to format 'data' as I describe in post #2.
lost101 said:
You need to format 'data' as I describe in post #2.
Click to expand...
Click to collapse
You are not getting it bro i have erased everything but whenever in custom recovery i reset my device it says cant mount data
Sent from my E6 using XDA Free mobile app
sjandroiddeveloper said:
Hey this is not solved yet
Because i flashed the latest 2.8.5 and currently my phone is in coma and its not booting any os
Ps:my data partition is corrupted does anyone know how to repair that
Sent from my E6 using XDA Free mobile app
Click to expand...
Click to collapse
You need to format data partition not erase.
Don't remember how to do that.
I just flashed stock lollipop then flashed twrp.[didn't made backup this time,it's not working i think.waiting for update from dev]. Now twrp just works fine[with that screen flickering]
.:Addicted:. said:
You need to format data partition not erase.
Don't remember how to do that.
I just flashed stock lollipop then flashed twrp.[didn't made backup this time,it's not working i think.waiting for update from dev]. Now twrp just works fine[with that screen flickering]
Click to expand...
Click to collapse
I meant format only
But the thing is recovery is not mounting data partition
Do you have a solution for that
Sent from my E6 using XDA Free mobile app
lost101 said:
I don't know if it is still the case, but I have had to use the following fastboot command before I could access TWRP again in this situation. The command will wipe internal storage entirely.
fastboot erase userdata
Follow the TWRP thread for developments: http://forum.xda-developers.com/mot...y-twrp-2-8-2-0-touch-recovery-t2980621/page10
Click to expand...
Click to collapse
Thanks hit to you!
Your suggestion saved my day!
I flashed the entire firmware and it didn't worked for me. How can I fix that? I had to flash CM and then reinstall the backup I made.
Whats the fix for having everything working as before? Cause i'll need to flash stock again to be able to receive OTA updates.
Will "fastboot erase userdata" fix all these problems?
22/3 version is working fine with nandroids, today I did a backup and restored it succesfully :good: also flickering is gone
jneto3000 said:
I flashed the entire firmware and it didn't worked for me. How can I fix that? I had to flash CM and then reinstall the backup I made.
Whats the fix for having everything working as before? Cause i'll need to flash stock again to be able to receive OTA updates.
Will "fastboot erase userdata" fix all these problems?
Click to expand...
Click to collapse
Yeah! It should, since it worked for me!
aumshethia said:
Yeah! It should, since it worked for me!
Click to expand...
Click to collapse
hey im a bit confused. so i am in the twrp 2.8.5.0 bootloop (alternating between black screen and warning boot loader screen). Once i do the fastboot erase cache method, whats my next step?
butthurtlocker said:
hey im a bit confused. so i am in the twrp 2.8.5.0 bootloop (alternating between black screen and warning boot loader screen). Once i do the fastboot erase cache method, whats my next step?
Click to expand...
Click to collapse
According to these people(not me) when you enter command fastboot erase userdata your phone should boot normally
I suggest you to flash Philz touch because backup restore are working fine there
Sent from falcon
PRESS THANKS IF HELPED?
butthurtlocker said:
hey im a bit confused. so i am in the twrp 2.8.5.0 bootloop (alternating between black screen and warning boot loader screen). Once i do the fastboot erase cache method, whats my next step?
Click to expand...
Click to collapse
No, Not erease cache, but "erase userdata".
Use the command "fastboot erase userdata" from command prompt, that's all.
After you do this, press power button to switch your Moto G off and press power button again to start it. Your phone should normally boot and will be fresh as arrived from factory
Hope this helps you.
.:Addicted:. said:
Just flashed "openrecovery-twrp-2.8.5.0-falcon_STOCK_KK" in my lollipop.
Then made a nanodroid backup to my otg pendrive.
Then when i reboot i stuck in a bootloop
How to fix it.
Do i have to erase cache after flashing recovery????
Click to expand...
Click to collapse
i have same problem last month
just installed philz recovery
reset cache davlik cache phone boot up now.
butthurtlocker said:
hey im a bit confused. so i am in the twrp 2.8.5.0 bootloop (alternating between black screen and warning boot loader screen). Once i do the fastboot erase cache method, whats my next step?
Click to expand...
Click to collapse
sanads said:
i have same problem last month
just installed philz recovery
reset cache davlik cache phone boot up now.
Click to expand...
Click to collapse
YEAH!
That will work too :good:
aumshethia said:
YEAH!
That will work too :good:
Click to expand...
Click to collapse
i tried to erase delvic cache.
But that didn't help.
why i should erase user data when i can flash full rom???
i don't want to lose userdata & those backed up file doesn't contain user data[opened in ubuntu,only system datas are backed up.no user data].
is there any way to pull user data using adb or something[i just want to know for future reference as i already flashed rom n phone is fine ]