Accidently delete: system/data/Cache/internal storage ---> how to restore - Nexus 5 Q&A, Help & Troubleshooting

Hi!
I have deleted my whole phone by using TWRP.
Is there a way to restore the internal storage? I have made a backup yesterday, but the file was also on internal storage.
Sorry for this silly question, but I have a headache already from this morning and was just to dumb to whipe in a proper way

No one?
Any chance to restore the internal storage?

Re-flash your rom

Done already by adb sideload
But I'm still lacking all my staff from internal storage

Sui77 said:
Done already by adb sideload
But I'm still lacking all my staff from internal storage
Click to expand...
Click to collapse
If you wiped your sdcard from TWRP, chances are you can do nothing now. You can check this thread though: http://forum.xda-developers.com/google-nexus-5/general/info-storage-nexus-5-data-info-loss-t2534010

Ok, got it
I think the "fix file system" key inside TWRP is a bit nasty.
When you are slightkly sleepy, you have got chances to do a full wipe

TWRP is a powerful tool so it has be used with caution.

Related

[Q] Dalvik/Chache/User data wipe?

So I'm about to install Tiamat's new ROM (I really want the init.d scripting functionality, plus it can't hurt to get up-to-date) but I can't remember if wiping my user data wipes out the /sdcard/ mount on my xoom. I've got 15gbs in there in all kinds of random stuff and I'd rather not wipe it if I don't have to.
What I THINK is that the Dalvik/Cache/User data wipe that I do before I install the ROM will do what it would on my phone - simply wipe everything that isn't on the /sdcard/ partition. Is this correct? I sure hope so.
Yes, that is correct. It won't touch your SD card.
Just to be certain...
Ok, but to be clear, I don't actually HAVE an sdcard, just the bigass bit of internal memory mounted AS /sdcard/. It won't mess with that right?
mikeserv said:
Ok, but to be clear, I don't actually HAVE an sdcard, just the bigass bit of internal memory mounted AS /sdcard/. It won't mess with that right?
Click to expand...
Click to collapse
If you are asking about the user data wipe you will have to do I order to flash thetiamat rom,
ummm yes, it will wipe that (internal storage) but not wipe your external/removable sdcard.
Damn. Ok, well, I'll just back all of that up to the computer then. It'll take a while.
You need an sdcard to install the rom though.
Sent from my EVO 3D
Nope
Ok, so, like I thought, the "wipe data/factory reset" option in ClockWorkMod Recovery does NOT format the /sdcard/ partition, even though it is actually physically located on the internal storage.
Because of this I was also able to use the internal storage to store the tiamat*.zip rom file and flash from the internal storage mapped to /sdcard/. I'm now going to attempt to restore all of my settings and apps via Titanium Backup.
Thanks anyway guys. You did inspire me to do a full backup of my /sdcard/ partition onto my computer at least.
Sorry guys. I was way off. I was even smug about it. Well, as it turns out, you do need an SD card. Check out my post here to see what happened (a lot of dumb bad stuff): http://forum.xda-developers.com/showthread.php?t=1152121

[Q] Wipe/factory reset and flashing new ROM

I'm currently on Paranoid Android and as I am a bit unsatisfied with the performance and responsiveness of the device (GT-P3110) I thought I'd try out the latest version of Slimbean as I've heard a lot of good things about it. The installation instructions says to download the ROM, doing a full wipe/factory reset and then flashing the new ROM.
Now, this probably is a really stupid question, but if I first download the ROM and then do a full wipe, won't the downloaded file also be deleted? Am I supposed to download the file to my computer and transfer it to the tablet after wiping it? Is it possible to transfer files to the tablet in recovery mode?
Bit of a noob, as you can see....
staffh said:
I'm currently on Paranoid Android and as I am a bit unsatisfied with the performance and responsiveness of the device (GT-P3110) I thought I'd try out the latest version of Slimbean as I've heard a lot of good things about it. The installation instructions says to download the ROM, doing a full wipe/factory reset and then flashing the new ROM.
Now, this probably is a really stupid question, but if I first download the ROM and then do a full wipe, won't the downloaded file also be deleted? Am I supposed to download the file to my computer and transfer it to the tablet after wiping it? Is it possible to transfer files to the tablet in recovery mode?
Bit of a noob, as you can see....
Click to expand...
Click to collapse
No, its all good. Just put your new file onto your internal or external sd and flash from there with CWM or TWRP. I prefer to flash with TWRP from the external sd, that way I can just keep it in case I have to reflash or whatever. Good luck!
CSP III said:
No, its all good. Just put your new file onto your internal or external sd and flash from there with CWM or TWRP. I prefer to flash with TWRP from the external sd, that way I can just keep it in case I have to reflash or whatever. Good luck!
Click to expand...
Click to collapse
Thank you. So basically doing a wipe/factory reset/format won't delete the file? If this is the case, what does actually get wiped?
staffh said:
Thank you. So basically doing a wipe/factory reset/format won't delete the file? If this is the case, what does actually get wiped?
Click to expand...
Click to collapse
Check this out: http://checkrom.com/threads/wipe-data-factory-reset.672/
Don't forget to hit the "thanks" button if I helped!
CSP III said:
Check this out...
Don't forget to hit the "thanks" button if I helped!
Click to expand...
Click to collapse
Done!
I have now wiped the device and done a format of the /system folder as per the instructions on the slimroms website (can't post an external link as a new user). Since my /Downloads folder (to which I downloaded the ROM .zip file) is now empty, how do I go about flashing the device?
viewshs concept
I have attempted to push the files to the device while in recovery using the ./adb push filename.zip /sdcard/download command, and while it says...
Desktop/Slim-p3110-4.2.2.build.6-OFFICIAL.zip /sdcard/download
4174 KB/s (87596355 bytes in 20.490s)
...the file is nowhere to be found in the /sdcard/download folder when I want to flash it. Any thoughts?
First, activate flash zip from sideload in CWM and then send sideload command "./adb sideload flashable.zip". Good luck!
ketut.kumajaya said:
First, activate flash zip from sideload in CWM and then send sideload command "./adb sideload flashable.zip". Good luck!
Click to expand...
Click to collapse
Thank you -- worked like a charm!
opursta surviving
After installing the new ROM I realised I only have about 2gb of free space on my internal memory (out of 8gb). Is this normal? I'm thinking this may have something to do with the device being slow and unresponsive? How can I make sure my tablet is completely "wiped"?
staffh said:
After installing the new ROM I realised I only have about 2gb of free space on my internal memory (out of 8gb). Is this normal? I'm thinking this may have something to do with the device being slow and unresponsive? How can I make sure my tablet is completely "wiped"?
Click to expand...
Click to collapse
In TWRP, an option called "format data" will format your internal storage, just make sure that your downloaded rom, kernel and gapps are on your external storage before proceed.
Usually after performing a data format, I will reboot recovery before flashing to ensure that the partition is ready for the new rom, as per advised on the TWRP on screen instruction.
Install philz recovery it has lots of options for wipe your device fully touch to use

Wiped internal storage...kind of

So I was trying out a new ROM and I accidentally wiped my internal storage via latest TWRP. No big deal, phone is new and I really only had ROM and kernel files on it.
There's no more files on my SD card, nothing to install. I ADB pushed a ROM and kernel and started over. Installed and rebooted and to my surprise I saw Optimizing App 1 of 193... I got all rebooted and my apps were still there. I searched XDA, but I think it's down ( I searced a ROM thread looking for another answer, but it gave back 0 results. I looked back a couple pages in the thread and found the answer with the keyword(s) I used.. ).
So why didn't wiping internal storage take out my apps? I mean hey, my NANDroid backups got deleted so I'm not complaining lol but yeah, I still have all my apps. Can anyone help me understand what happened?
Edit: Forgot to mention, I wiped EVERYTHING in TWRP. Nuked the phone. Advanced wipe > system, data, cache, dalvik and internal storage
RoyJ said:
So I was trying out a new ROM and I accidentally wiped my internal storage via latest TWRP. No big deal, phone is new and I really only had ROM and kernel files on it.
There's no more files on my SD card, nothing to install. I ADB pushed a ROM and kernel and started over. Installed and rebooted and to my surprise I saw Optimizing App 1 of 193... I got all rebooted and my apps were still there. I searched XDA, but I think it's down ( I searced a ROM thread looking for another answer, but it gave back 0 results. I looked back a couple pages in the thread and found the answer with the keyword(s) I used.. ).
So why didn't wiping internal storage take out my apps? I mean hey, my NANDroid backups got deleted so I'm not complaining lol but yeah, I still have all my apps. Can anyone help me understand what happened?
Click to expand...
Click to collapse
I dont know the specific options in TWRP, but generally "Internal storage" refers to /sdcard and nothing else.
If you're unsure of how the N5 "memory" is set out, have a look here:
Please forward this on to any interested parties who may have been missed
*see edit, sorry
RoyJ said:
*see edit, sorry
Click to expand...
Click to collapse
No idea then. Ask the TWRP devs. Obviously something failed.

[Q] Android L not reporting the correct amount of storage space

I clean-flashed the stock release version of Android L that just came out, and I noticed that my phone doesn't detect the correct amount of storage on the device. This is a 32GB Nexus 5, yet the storage page in Settings only lists 12.55GB of total space (screenshot). Windows (10) also lists only 12.5GB of total space (screenshot). What's wrong here?
vaindil said:
I clean-flashed the stock release version of Android L that just came out, and I noticed that my phone doesn't detect the correct amount of storage on the device. This is a 32GB Nexus 5, yet the storage page in Settings only lists 12.55GB of total space (screenshot). Windows (10) also lists only 12.5GB of total space (screenshot). What's wrong here?
Click to expand...
Click to collapse
If flashing userdata results in your device's internal storage being downgraded to 16GB according to the OS, just do a full wipe in recovery, that should fix it. This is a bug caused by the userdata.img file being distributed by Google.
Click to expand...
Click to collapse
What a launch for the N5!
RVDigital said:
What a launch for the N5!
Click to expand...
Click to collapse
So... I have to completely wipe my phone and start from scratch AGAIN?
vaindil said:
So... I have to completely wipe my phone and start from scratch AGAIN?
Click to expand...
Click to collapse
Apologies, that quote assumes everyone knows what a Full Wipe is (that's not sarcasm, its a silly assumption). Wipe the data partition in recovery is what is being suggested here. In some recoveries, a full wipe is data and cache.
I will tell you that doing this in TWRP didn't solve the problem. I ultimately just formated via fastboot, as follows.
Code:
fastboot format userdata
RVDigital said:
Apologies, that quote assumes everyone knows what a Full Wipe is (that's not sarcasm, its a silly assumption). Wipe the data partition in recovery is what is being suggested here. In some recoveries, a full wipe is data and cache.
I will tell you that doing this in TWRP didn't solve the problem. I ultimately just formated via fastboot, as follows.
Code:
fastboot format userdata
Click to expand...
Click to collapse
Is there a way I can back up the contents of userdata then restore them back once the partition is the correct size? I'll go through the process of reinstalling everything again if I have to, but I'd really like to avoid that if at all possible. Can I MTP to it from TWRP?
vaindil said:
Is there a way I can back up the contents of userdata then restore them back once the partition is the correct size? I'll go through the process of reinstalling everything again if I have to, but I'd really like to avoid that if at all possible. Can I MTP to it from TWRP?
Click to expand...
Click to collapse
Why not do a TWRP Backup of /data then restore it when you're finished?
I will say I was having the same issue, and I couldn't create a nandroid backup via CWM. Backs up boot image OK. Backs up recovery image OK. Backs up system OK. "Runs out of" storage space when backing up data. GRRR. SD card space free: 0 MB. False!
Wiped data partition in CWM. Started setup again. STILL 16GB.
Formatted using the Minimal ADB and Fastboot tool found here: http://forum.xda-developers.com/showthread.php?t=2317790
(Code: fastboot format userdata)
Rebooted
THAT worked!!! I am just raging that I spent ~8 hours setting up and customizing everything last night, down to the last email account and icon and NOW it's all gone.
RVDigital said:
Why not do a TWRP Backup of /data then restore it when you're finished?
Click to expand...
Click to collapse
Ah, I thought a nandroid backup was a full partition backup, so doing that would just restore the entire partition with the incorrect size. I took a TWRP backup of data, wiped data, then restored the nandroid backup and all is well. Thank you!

[SOLVED] TWRP can't mount internal storage - the problem is coming back...

I wanted to update my rooted Android Nougat to Oreo and also go from SuperSU to Magisk. During that process I discovered that TWRP recovery couldn't mount my internal storage.
I quickly saw on a lot of sites that it's a well-known issue, and I solved it by converting from ext4 to ext2 and back again. Now my phone is running perfect. All apps are installed, data and settings are restored with Titanium and root with Magisk is working fine. But then I remembered about the issue with TWRP and booted into recovery - just to discover the problem is back again. I can't mount my internal storage. So I can't flash zip files, I can't do a backup etc.
When I search xda or the web in general, I can't figure out why the problem has occured again. Also I can't find out how to fix it without losing all my data. Can anybody answer these two questions? Why is this happening again and how do I permanently fix it? And can it be with all my data on my phone - because I'm not able to do a backup.
Michael B.N. said:
I wanted to update my rooted Android Nougat to Oreo and also go from SuperSU to Magisk. During that process I discovered that TWRP recovery couldn't mount my internal storage.
I quickly saw on a lot of sites that it's a well-known issue, and I solved it by converting from ext4 to ext2 and back again. Now my phone is running perfect. All apps are installed, data and settings are restored with Titanium and root with Magisk is working fine. But then I remembered about the issue with TWRP and booted into recovery - just to discover the problem is back again. I can't mount my internal storage. So I can't flash zip files, I can't do a backup etc.
When I search xda or the web in general, I can't figure out why the problem has occured again. Also I can't find out how to fix it without losing all my data. Can anybody answer these two questions? Why is this happening again and how do I permanently fix it? And can it be with all my data on my phone - because I'm not able to do a backup.
Click to expand...
Click to collapse
The problem occurs when you use a ROM which encrypts the software or the ROM your flashing has an encrypted kernal. The only way out is to flash a ROM which doesn't encrypt. It is a known problem with TWRP and we have to wait for the TWRP team to update TWRP to handle quota allocation.
It seems the problem is solved for me. I flashed the TWRP version from this link: https://forum.xda-developers.com/showpost.php?p=77296102&postcount=1243
First I tried from Odin but it didn't work. Then I installed the TWRP app from Google Play and flashed the other file, rebooted to recovery, and it seems to work. I can mount my internal storage, make a backup etc. So this is the solution for me.
I had also similar problem of internal storage 0mb and i was not be able to mount my data
so when i flash color recovery by nobody
It's gone because it's allready patch by him
I think it's issue of encrypt data so just flash this recovery from nobody post
https://forum.xda-developers.com/galaxy-s7/themes/recovery-twrps-colored-t3859323
Hey guys
wondering if somebody can assist me with my issue. I can mount the internal storage via twrp, and can copy files etc over to the internal storage on my pc. But when i go into file manager nothing appears. even though i indicate that it show me the internal storage. any ideas?
isgakbrfc said:
Hey guys
wondering if somebody can assist me with my issue. I can mount the internal storage via twrp, and can copy files etc over to the internal storage on my pc. But when i go into file manager nothing appears. even though i indicate that it show me the internal storage. any ideas?
Click to expand...
Click to collapse
i think you must try with different file mngr, that one have no ability or permission to read system files
noniboyba said:
i think you must try with different file mngr, that one have no ability or permission to read system files
Click to expand...
Click to collapse
I'll re flash later and try a different file manager. Otherwise I'll install treble or re flash stock and start over
isgakbrfc said:
Hey guys
wondering if somebody can assist me with my issue. I can mount the internal storage via twrp, and can copy files etc over to the internal storage on my pc. But when i go into file manager nothing appears. even though i indicate that it show me the internal storage. any ideas?
Click to expand...
Click to collapse
same problem, have you found solution ? please help me
TWRP sometimes can't mount the storage, the storage is encrypted, but don't worry. You can still flash your files and rewrite system partion. But in order to show the Storage, you have to use a different version of TWRP. Why am I saying this is mentioned following:
I installed the latest version of twrp, It didn't ask for any password patter to decrypt my storage. So , different XDA posts made me understand that , formatting everything, factory reset will decrypt my storage. And trust me, I have done it several time, several times my brother but it didn't decrypt my storage. I couldn't backup my ROM and without backing up my ROM, I didn't take the risk of flashing new ROM. I waited. This twrp couldn't even mount my system partion. So I seeked knowledge from different person. It took a lot of effort.
Then I learned that, I should change this version of TWRP. I changed to an older version and it didn't decrypt my internal storage after formatting, but it mounted my system partion. Since, it couldn't decrypt my internal storage, I couldn't take backup of my rom and save it to internal storage. so I inserted a pendrive in my phone, and saved the backup of my rom there.
Permanent Solution​
Flashing DM Verity Force Encryption Disabler will decrypt your storage instantly. But in my case, it aroused another problem, None of the security measures of my phone worked afterwards. FOD, pin, password, pattern none of them worked. I don't know the reason but I don't suggest it with my little knowledge. but almost every rom flasher use them, so I thing I have to study about them to know how they work.​
second and best option: start trying older version of TWRP, the good one will be the one to ask the password the recovery in the beginning. It will decrypt your internal storage.​
I was brief here, if anyone doesn't understand these things, let me know, I will explain them step by step because I know the pain of being NEWB.

Categories

Resources