How to erase CACHE PARTITION ? - Xperia Z5 Q&A, Help & Troubleshooting

I ran into a problem today when I tried to repair my Z5 Dual, I unplugged my phone in the beginning (NOT EVEN 5 Seconds). Then my phone started showing SOFTWARE UPDATE FAILED PLEASE CONNECT YOUR PHONE TO YOUR COMPUTER. I have a lot of important data in my phone which I need. I thought of just erasing the cache partition. But when I try via fastboot it says that REMOTE: COMMAND NOT ALLOWED HERE. Is there any other way to erase the cache partition? is there any other tool for erasing the cache partition alone? If the above doesn't work us there any way to recover the files in the internal storage. I have also encrypted some files using galleryvault that's why I prefer wiping cache and trying to boot up instead of flashing a new ROM with USERDATA box unchecked. Any help would really be appreciated.

Wipe it in twrp if you have it.

L33Tgod said:
Wipe it in twrp if you have it.
Click to expand...
Click to collapse
I haven't unlocked the bootloader.. No modifications to my phone. Is there any other way?

ajithpoison said:
I haven't unlocked the bootloader.. No modifications to my phone. Is there any other way?
Click to expand...
Click to collapse
Then just flash .ftf using flashtool without wiping anything

Related

[Q] TWRP issue: E:Unable to mount storage.

Help. I have the this error when I start TWRP
Code:
E:Unable to mount storage.
This stop me from doing backup in TWRP..
I have tried to re-flash TWRP. I have also tried flash the recovery.img from Google, and then flash TWRP. The problem still there.
I even try to nearly did a factory the full factory image by doing
Code:
fastboot flash bootloader bootloader-hammerhead-HHZ11d.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-hammerhead-m8974a-1.0.25.0.23.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot erase cache
fastboot flash cache cache.img
and then restart phone,. booth into phone, and reboot to recovery and flash TWRP...
Are there anything else that I can do? Please help...
Are you using twrp 2.6.3.4? Go into wipe and then format data. Backup first
jd1639 said:
Are you using twrp 2.6.3.4? Go into wipe and then format data. Backup first
Click to expand...
Click to collapse
He's not able to backup. That's the point of his problem. Still trying wiping dalvik and cache first. Then try data. If that don't work trying flashing cwm or Philz's touch recovery.
I tried to wiping dalvik and cache... the problem remains.
I then tried to wipe data but preserve /data/media, which is the default action. The problem remains...
I really don't want to reset my phone to factory state with internal memory completely wiped... any help, please?
leoncheong said:
I tried to wiping dalvik and cache... the problem remains.
I then tried to wipe data but preserve /data/media, which is the default action. The problem remains...
I really don't want to reset my phone to factory state with internal memory completely wiped... any help, please?
Click to expand...
Click to collapse
Don't think you have a choice if you want the phone to work. You're going to have to format the data.
Sound like you missed a reboot before installing custom recovery after unlocking boot.
WR
Sent from my Nexus 5
I solve it flashing to stock rom and re installing the recovery.. It is the only way.. I had the same problem
Inviato dal mio Nexus 7 utilizzando Tapatalk
Thanks for all your suggestions! I took the pain to wipe the phone.
jd1639 said:
Don't think you have a choice if you want the phone to work. You're going to have to format the data.
Click to expand...
Click to collapse
I wanna format my N5, leave it really clean, coz it has the same problem about not mounting storage. But i wanna do it by commands. Can u tell me how can I do that? By adb or fastboot?
tinaag said:
I wanna format my N5, leave it really clean, coz it has the same problem about not mounting storage. But i wanna do it by commands. Can u tell me how can I do that? By adb or fastboot?
Click to expand...
Click to collapse
I'm not sure but you could try adb shell wipe data. Any reason you don't want to do it through twrp?
Sent from my [device_name] using XDA-Developers Legacy app

How to perform a complete wipe without leaving any files on the phone?

I''d like to completely erase the internal memory of the phone. Akin to formatting a HD. It seems when I format all of the available options in recovery it still does not do this (ie full wipe, SD card, cache, system, etc).
How can this be done?
I'm assuming I can do this over adb commands from the PC and then load in a new zip to flash. The reason I'm doing this is that something is corrupt on the phone causing me to have dialer crashes as soon as dialer opens. I've wiped, I've switched ROMS, and nothing has prevented it. More info: http://forum.xda-developers.com/goo...di-rom-2-6-t2540455/post51346791#post51346791
Read the stickies then flash the factory image
Fastboot erase userdata
Fastboot flash userdata userdata.img
Locking then unlocking the bootloader again would wipe it clean...no?
Never relocked....so guessing.
KJ said:
Locking then unlocking the bootloader again would wipe it clean...no?
Never relocked....so guessing.
Click to expand...
Click to collapse
If you oem lock and then unlock it does wipe it again.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
If you oem lock and then unlock it does wipe it again.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
OP wants to wipe everything I think, boot loader unlock only wipes user data
Fastboot erase boot
Fastboot erase cache
Fastboot erase recovery
Fastboot erase system
Fastboot erase userdata
Then flash the factory .IMG files right after
Or just use the flash-all script that's included in the factory images as it uses -w to wipe everything.
Lokke9191 said:
Fastboot erase userdata
Fastboot flash userdata userdata.img
Click to expand...
Click to collapse
No need, just
Code:
fastboot format user data
beekay201 said:
No need, just
Code:
fastboot format user data
Click to expand...
Click to collapse
Will this only delete user data or every bit and byte on the flash memory?
integramodder said:
Will this only delete user data or every bit and byte on the flash memory?
Click to expand...
Click to collapse
no, there's 20 or more different partitions on the whole flash memory. This is the only on though that has anything to do with your dialer issue.
Sent from my Nexus 5 using XDA Free mobile app
integramodder said:
Will this only delete user data or every bit and byte on the flash memory?
Click to expand...
Click to collapse
userdata.

How to delete data?

I've broke touch, screen works but i can't no more reset as my nexus 5 is encrypted and i can't get access on it, any can help?
If the bootloader is unlocked, you could try erasing data, cache, or flashing a new userdata.img file to the phone in fastboot.
audit13 said:
If the bootloader is unlocked, you could try erasing data, cache, or flashing a new userdata.img file to the phone in fastboot.
Click to expand...
Click to collapse
I never unlocked it or rooted the phone
Since the bootloader is locked, you won't be able to flash any files to the phone. You could try erasing data and cache partitions from fastboot.
audit13 said:
Since the bootloader is locked, you won't be able to flash any files to the phone. You could try erasing data and cache partitions from fastboot.
Click to expand...
Click to collapse
Solved with nexus root toolkit
So you were able to unlock the bootloader? I have never used the nrt.
audit13 said:
So you were able to unlock the bootloader? I have never used the nrt.
Click to expand...
Click to collapse
Exactly, unlocked and resetted

*URGENT* Tablet wont boot and is bricked

Hello my Nvidia Shield Tablet (original WIFI) is dead i think
I can get into fastboot and TWRP recovery.
TWRP shows Internal memory as 0mb and is unable to mount anything
I also tried flashing stock images but no luck as it keeps failing and tablet wont boot
Any solution? please help:fingers-crossed:
what did you do to get it to this state? try format data and wipe data in twrp. might take a few tries. could also try flashing stock in twrp rather then fastboot. I've seen similar on my phone (involves encryption error) but never on my shield.
Sent from my SAMSUNG-SM-N900A using Tapatalk
lafester said:
what did you do to get it to this state? try format data and wipe data in twrp. might take a few tries. could also try flashing stock in twrp rather then fastboot. I've seen similar on my phone (involves encryption error) but never on my shield.
Sent from my SAMSUNG-SM-N900A using Tapatalk
Click to expand...
Click to collapse
Hi this happened after i flashed 5.1 blob from Optimized Rom thread
Try reflashing OTA 5.2 blob as the blob is not just the bootloader but also the GPT partition setup too
Sent from my pa_osprey using Tapatalk
hacktrix2006 said:
Try reflashing OTA 5.2 blob as the blob is not just the bootloader but also the GPT partition setup too
Sent from my pa_osprey using Tapatalk
Click to expand...
Click to collapse
Hello man thanks for the suggestion can you please guide me through this i am not sure about the GPT partition setup?
I just dont want to go wrong thanks
Right using the following commands for flashing the device.
Code:
fastboot flash staging blob
fastboot erase boot
fastboot flash boot boot.img
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot format system
fastboot flash system system.img
fastboot format userdata
fastboot format cache
This is how i flash mine when returning to stock.
hacktrix2006 said:
Right using the following commands for flashing the device.
Code:
fastboot flash staging blob
fastboot erase boot
fastboot flash boot boot.img
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot format system
fastboot flash system system.img
fastboot format userdata
fastboot format cache
This is how i flash mine when returning to stock.
Click to expand...
Click to collapse
Ok i will try this again and update you
Dalbin Reji said:
Ok i will try this again and update you
Click to expand...
Click to collapse
Ok so i tried flashing this in an unconventional way by rebooting fastboot everytime it failed and then it worked after
but still after i press continue, it says booting failed...
Whats wrong?
Which shield do you have? Original or K1
Sent from my pa_osprey using Tapatalk
Dalbin Reji said:
Ok i will try this again and update you
Click to expand...
Click to collapse
hacktrix2006 said:
Which shield do you have? Original or K1
Sent from my pa_osprey using Tapatalk
Click to expand...
Click to collapse
I have the original WIFI
Make sure your using factory images for that device and not the K1 version
Sent from my pa_osprey using Tapatalk
hacktrix2006 said:
Make sure your using factory images for that device and not the K1 version
Sent from my pa_osprey using Tapatalk
Click to expand...
Click to collapse
Nope man i used the Factory images for Wifi version im sure
Dalbin Reji said:
Nope man i used the Factory images for Wifi version im sure
Click to expand...
Click to collapse
https://developer.nvidia.com/gameworksdownload#?search=Shield Tablet Wifi
Did you use that one?
hacktrix2006 said:
https://developer.nvidia.com/gameworksdownload#?search=Shield Tablet Wifi
Did you use that one?
Click to expand...
Click to collapse
Yep that one exactly, this all happened after i flashed 5.0 blob from an optimized custom rom thread i believe ?
Looks like you have corrupted the boot-loader then hence the issue you have, the chances of recovering from that is very slim. Best to speak to nvidia see if they can help.
hacktrix2006 said:
Looks like you have corrupted the boot-loader then hence the issue you have, the chances of recovering from that is very slim. Best to speak to nvidia see if they can help.
Click to expand...
Click to collapse
Is there no way i can fix it? Probably not then aw
Only Nvidia will be able to fix boot loader issues as they have the magic key for lower level access.
Sent from my SHIELD Tablet K1 using Tapatalk
Maybe you have bricked internal memory eMMC chip
Dalbin Reji said:
I can get into fastboot and TWRP recovery.
TWRP shows Internal memory as 0mb and is unable to mount anything
I also tried flashing stock images but no luck as it keeps failing and tablet wont boot
Click to expand...
Click to collapse
Internal memory as 0mb, and failure to mount anything, often are signs that the internal storage has been corrupted.
Try going to TWRP Wipe section, and tap the button to "Format data". Obviously, you will lose your data. But your data is probably beyond that point, anyway.
Formatting the storage, will often fix corruption issues.
redpoint73 said:
Internal memory as 0mb, and failure to mount anything, often are signs that the internal storage has been corrupted.
Try going to TWRP Wipe section, and tap the button to "Format data". Obviously, you will lose your data. But your data is probably beyond that point, anyway.
Formatting the storage, will often fix corruption issues.
Click to expand...
Click to collapse
Sorry man but when i try @format data it gaves me the same error ''unable to mount.... storage'' etc
Any other method to fix corrupted bootloader?

Nexus 5 deleted data partition

Hi there,
So I wanted to resize the system partition so I could install GApps. I accidentally deleted the data partition somehow (deleted not corrupted). I can go into bootloader and recovery, my bootloader is unlocked so I can flash any recovery I need to but I can't boot Android. Any ways to redo the partition table or manually add the userdata partition?
Thanks in advance.
Edit: I was able to fix the partition by creating a partition called "userdata" with parted, but now my phone is constantly rebooting and it cant be the power button because when powered off or in bootloader, it doesnt automatically turn on. Any help?
KevinKraze said:
Hi there,
So I wanted to resize the system partition so I could install GApps. I accidentally deleted the data partition somehow (deleted not corrupted). I can go into bootloader and recovery, my bootloader is unlocked so I can flash any recovery I need to but I can't boot Android. Any ways to redo the partition table or manually add the userdata partition?
Thanks in advance.
Click to expand...
Click to collapse
I would start fresh and flash the last factory image using fastboot
Then follow this guide for repartitioning... https://forum.xda-developers.com/t/recovery-unofficial-twrp-hh-for-nexus-5-hammerhead.4047653/
Lughnasadh said:
I would start fresh and flash the last factory image using fastboot
Then follow this guide for repartitioning... https://forum.xda-developers.com/t/recovery-unofficial-twrp-hh-for-nexus-5-hammerhead.4047653/
Click to expand...
Click to collapse
I have tried to flash the factory image, but as I said, the data partition is deleted so nothing works
I got it to work by manually creating a partition with parted and called it "userdata" After I just flashed the userdata.img file and everything seemed to work!

Categories

Resources