[Q][HELP] Deleted dalv.cache/cache/system/int.storage/data partitions via TWRP - Nexus 5 Q&A, Help & Troubleshooting

While trying to do a factory reset (wanted to remove unuseful, old folders and start fresh with new ROM (p.s. now I know it was a wrong method)) accidentally checked all the partitions in WIPE section on TWRP. Thant included dalvik cache/cache/system/internal storage/data. Sadly it erased everything and now I am not able to put any zip to flash, since my pc doesn't recognise the phone. Now it is completely empty, only with custom recovery - TWRP. What should I do?

you must adb push or use USB OTG to get a ROM zip on your phone.
adb works in recovery
Sent from my Nexus 5 using Tapatalk

Related

[Q] SNS I9020T Stuck at "google" screen with unlocked padlock symbol

Hi I'm aware that there are similar threads as to this issue but the problem i'm having is my computer being able to detect my usb storage. Since I cannot boot the phone up I can't turn on usb storage. How do I go about flashing the right software since I cannot mount the files to my sdcard through my computer?
As it stands right now:
1. SNS status = unlocked
2. I am able to boot in to clockwork recovery v3.0.2.4
3. I have tried a factory reset/wipe data from recovery
4. I am using windows vista, have downloaded the proper driver (i think)
I followed the nexusshacks guide so far
can anybody help?
Go into clockwork recovery, mounts and storage, mount USB.
Sent from my Nexus S using XDA App
vulcanrav3n said:
Go into clockwork recovery, mounts and storage, mount USB.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Thanks for that! Now I know I can access my sd card. But now I just need help flashing the default software so I can access my sns again! This is my 1st android phone and would really appreciate a straight forward guide as to how to get out of my bad situation and back to a full system recovery. Once again here are my specs:
1. SNS I9020T Running Gingerbread 2.3.4
2. Phone status = unlocked in bootloader mode
3. I have wiped my SD card clean and tried a full factory/data reset through clockwork recovery
4. All I can do it boot to bootloader or boot to cw recovery
5. I need to flash the default software for this phone so I can start a new
Can anyone help me out? would be greatly appreciated
Do you want to reflash the stock ROM or do you want to try a custom ROM? I'd suggest you download a custom ROM, for example Cyanogenmod 7. If you do, it'll also have a compatible kernel and you'll be running your phone again in no time.
Otherwise, search the development section for a stock ROM that suits your phone (http://forum.xda-developers.com/forumdisplay.php?f=883)
Now, I'll assume you download CM7 but the same steps apply to the stock ROM.
1) Download the ROM, it'll be around 86mb in size, a zip file.
2) Copy it to your SDcard using CWM
3) In CWM, go to "install zip from sdcard"
4) "Choose zip from sdcard", obviously, select the ROM.zip file you just downloaded
5) Let it run the installer
6) Reboot
Should work, good luck, let me know if something goes wrong
Greetz
also if you haven't installed the su zip file yet do that. in clockwork recovery mount the usb, copy the su zip file to /sdcard, unmount, and install zip from sdcard.
not sure how you lost the stock 2.3.4 rom, but you can get the GRJ22 rom back onto your ns. read these threads if that's your cup of tea:
- http://forum.xda-developers.com/showthread.php?t=1060192&highlight=stock+2.3.4
- http://forum.xda-developers.com/showthread.php?t=1056062
if you're brave and step over to the dark side of custom roms, i can guarantee you won't turn back. i've tried several, but i usually oscillate back to nscollab. you'll want titanium backup to backup your apps and rom manager to make nandroid backups. also when you flash between different roms make sure you wipe data, cache, and dalvik cache to prevent foreclose issues.
Download one of the stock/ota roms from vulcan's post.
Extract the zip, and put boot.img in the same folder as fastboot.
<fastboot flash boot boot.img>
Reboot.
See if that works.

[Q] Help! My internal storage is dead!! No access!

Hi community,
I have my Nexus 5 since 2 Days. Now it cant find the internal storage.
U dont talk about usb, mount at mass storage etc. NO
My Phone didnt recognize the internal storage.
So i can boot it, but can not access.
What i have done:
- its odex stock rom
- open bootloader
- root SuperSU
- Recovery TWRP latest
Until then everything was fine.
Then I tried to mount my USB storage with TWRP.
I know now its not possible..
But I would not give up so I installed CWM latest to try it.
->
fastboot erase cache
fastboot flash recovery cwm.img
fastboot erase cache
After that i navigated to "mount option" and try to mount and unmount all of this buts not working.
So i flashed back to twrp and reboot my phone.
Now the phone has booted, but the internal storage was not recognized.
In addition, there is no GSM / LTE connection.
Because I can not access the storage, I can not f the recovery
So my question:
How does the phone get back access to the memory?
Thank
Try format data and data/media (sdcard) from recovery. If that doesn't work, you may have to flash the factory images from fastboot. In either case, your data will be wiped.
Sent from my Nexus 7 using Tapatalk 4
Since you´ve messed up your internal storage, I suggest you to flash a factory image and to hope for the best
https://developers.google.com/android/nexus/images?hl=de#hammerheadkrt16m
Gorgtech said:
Since you´ve messed up your internal storage, I suggest you to flash a factory image and to hope for the best
https://developers.google.com/android/nexus/images?hl=de#hammerheadkrt16m
Click to expand...
Click to collapse
What to do?
O wont fail again.
Flashing a factory image is very simple, have a look at eg. this link: http://forum.xda-developers.com/showthread.php?t=2513701
zoellner86 said:
What to do?
O wont fail again.
Click to expand...
Click to collapse
Yeah, thx. Now its stock and full working.

Is not having external SDCard an issue for rooting?

I'll try to explain myself before people jump at me. I saw another thread with same question but seems like people misunderstood the question.
I am not talking about "lack" of memory, or not having another 32/64gb availble, etc.
I'll give you an example to what I am referring to:
Recently I decided that my rooted S2 needs a little 'refreshing', meaning - not just a wipe, but a complete format, to start from scratch. So I formatted everything, including /system and /emmc partitions. I then re-booted to recovery and had my rom file on the SD card so i was able to get a clean install.
Now, the question is - say I am at a stage when I need to 'refresh' the phone and wipe everything out. How do I then access the rom file for new install if I don't have external SD Card?
Thanks.
with adb.
What I do when I want a clean start, is I will load the rom/gapps/kernel to my phone, go to recovery, factory reset (with system if you choose), then flash all the things you want, then go back and wipe internal storage after. Then you're left with a fresh version of the ROM you want to install and no files whatsoever in the memory. Hope that helps.
I had the same suspicions a while ago. Basically with the nexus 5, even without an external sd, you can still do a full wipe of everything other than your storage. There is a path on the internal storage which essentially acts like an sd card, and when doing wipes in recovery it will not be wiped, unless of course you specifically choose to format /sdcard or all of /data. Read here for more info. I found that explanation very helpful.
So to answer your question, no, its not an issue.
Zepius said:
with adb.
Click to expand...
Click to collapse
This.
I have the same issue, with my OCD, that I always need a complete wipe of EVERYTHING.
One option, I recommend if that's not an option at the time of flash, is to simply "reset" in settings. It clears out the whole SD, which is something I usually want to do when I want a FULL flash
justinisloco said:
simply "reset" in settings. It clears out the whole SD, which is something I usually want to do when I want a FULL flash
Click to expand...
Click to collapse
Reset in settings just uses recovery unless something changed I haven't realised?
It should be down to what recovery you have (stock vs custom) as to whether a reset (regardless of how you initiate it) wipes /sdcard or not... or are you saying that's changed now?
Sent from my Nexus 5 using Tapatalk
Zepius said:
with adb.
Click to expand...
Click to collapse
Pardon my ignorance, but what is adb?
spitefulrain said:
What I do when I want a clean start, is I will load the rom/gapps/kernel to my phone, go to recovery, factory reset (with system if you choose), then flash all the things you want, then go back and wipe internal storage after. Then you're left with a fresh version of the ROM you want to install and no files whatsoever in the memory. Hope that helps.
Click to expand...
Click to collapse
Problem with factory reset, as far as I know, is that it does not wipe out everything. When I do factory reset in my S2, I still see old folders (even though empty) from before the wipe. That's why I like to format everything clean. When I mean clean, I don't want to see any old folder in there
justinisloco said:
This.
I have the same issue, with my OCD, that I always need a complete wipe of EVERYTHING.
One option, I recommend if that's not an option at the time of flash, is to simply "reset" in settings. It clears out the whole SD, which is something I usually want to do when I want a FULL flash
Click to expand...
Click to collapse
OK, but if you do that, where do you 'keep' the rom file and how do you flash it?
sbi1 said:
Pardon my ignorance, but what is adb?
OK, but if you do that, where do you 'keep' the rom file and how do you flash it?
Click to expand...
Click to collapse
Android Debug Bridge. It allows you to communicate with your phone via command line tools.
You would keep the rom somewhere on your internal storage (data/media) just like you would on any other phone. Then after wiping, you would simply choose to install zip from sdcard and your rom, along with any other flashable zip on your sdcard will be available to install. Basically when you do a typical full wipe from a custom recovery, the contents of your internal storage/sdcard are not wiped.
Chromium said:
Android Debug Bridge. It allows you to communicate with your phone via command line tools.
You would keep the rom somewhere on your internal storage (data/media) just like you would on any other phone. Then after wiping, you would simply choose to install zip from sdcard and your rom, along with any other flashable zip on your sdcard will be available to install. Basically when you do a typical full wipe from a custom recovery, the contents of your internal storage/sdcard are not wiped.
Click to expand...
Click to collapse
OK, this seems a bit too complicated for me
sbi1 said:
Problem with factory reset, as far as I know, is that it does not wipe out everything. When I do factory reset in my S2, I still see old folders (even though empty) from before the wipe. That's why I like to format everything clean. When I mean clean, I don't want to see any old folder in there
Click to expand...
Click to collapse
Which is why I said wipe your internal storage after
Sent from my Nexus 5 using Tapatalk
rootSU said:
Reset in settings just uses recovery unless something changed I haven't realised?
It should be down to what recovery you have (stock vs custom) as to whether a reset (regardless of how you initiate it) wipes /sdcard or not... or are you saying that's changed now?
Click to expand...
Click to collapse
Lately, I've noticed that it wipes the Data as well. Unless It was only on CWM that it happened? I had installed CM11 with CWM and wanted to reset my SD. I used the reset feature and it erased everything, except the OS
sbi1 said:
OK, but if you do that, where do you 'keep' the rom file and how do you flash it?
Click to expand...
Click to collapse
I would flash the Rom first, then do the factory reset, the only downside is the nandroid you made may be lost, unless you uploaded it to GDrive or something.
---------------------------------------
Using this guide, you will be able to learn about ADB
http://forum.xda-developers.com/goo...ide-nexus-5-how-to-unlock-bootloader-t2507905
In Step 3-
Chromium said:
3. Rooting
Now that your phone has an unlocked bootloader and a custom recovery installed you have a two options to gain root (Pick one or the other. You don't need to do both)
Option A) Flash SuperSU binaries which will give you root with the stock rom
Confirm that you have downloaded the SuperSU zip from the downloads section above and that it is located in the platform-tools folder inside of the android-sdk-windows folder on your desktop.
Turn the phone off then boot into the bootloader. (volume down + power). Once in the bootloader use the volume rockers to scroll onto Recovery Mode, then press power to select it. This should bring you into your newly installed custom recovery. Leave the phone at the home page of the custom recovery.
Open a command prompt window and run the following commands:
Code:
cd Desktop/android-sdk-windows/platform-tools
Code:
adb push UPDATE-SuperSU-v[COLOR="Red"]X[/COLOR].[COLOR="red"]XX[/COLOR].zip /sdcard/
This will copy the SuperSU zip onto your phone. Once the command has completed continue.
Instructions for TeamWin Recovery Project (TWRP):
Install > browse to SuperSU zip and select the it
Swipe to confirm the installation. Then reboot.
Click to expand...
Click to collapse
It shows how to "Push" a file to your phone. That is the best way, IMO. But instead of SuperSU, just "adb push ROM.zip /sdcard/"
sbi1 said:
OK, this seems a bit too complicated for me
Click to expand...
Click to collapse
Flashing the rom? Its honestly not any more complicated than flashing a rom for any other device. You download the rom to your internal storage. Boot into recovery. Then do a full wipe:
TWRP Full Wipe:
- Wipe
- Advanced wipe
- Select all, except internal storage
- Swipe to wipe
CWM Full Wipe:
- wipe data/factory reset
- wipe cache partition
- advanced > wipe dalvik cache
- mounts and storage > format /system
Finally you can then flash the rom (and gapps).
sbi1 said:
OK, this seems a bit too complicated for me
Click to expand...
Click to collapse
It's not really and if you're rooting and flashing any device, adb is essential knowledge.
Once you've installed adb (millions of guides on the net) you just boot into recovery then connect to pc via usb.
adb commands are run from cmd prompt.
For example...
adb push c:\users\sbi1\desktop\rom.zip /sdcard
Would push the file on your windows desktop called rom.zip to your sdcard.
You can even sideload from recovery.
Or better yet,.just don't wipe /sdcard. It has no benefit other than looking tidy anyway
Sent from my Nexus 5 using Tapatalk
---------- Post added at 10:20 PM ---------- Previous post was at 10:17 PM ----------
Ok too many cooks... i'm bowing out
Sent from my Nexus 5 using Tapatalk
OK, thank you all. So I should have no worries then. Was just wondering how this is done without external SD and it seems to be working fine. Thanks again!
Chromium said:
CWM Full Wipe:
- wipe data/factory reset
- wipe cache partition
- advanced > wipe dalvik cache
- mounts and storage > format /system
Click to expand...
Click to collapse
Parting note
Philz Touch Full Wipe:
- wipe data/factory reset > clean to install new ROM
(Does all the steps mentioned above at once)
Sent from my Nexus 5 using Tapatalk

[Q] bad scenario

Hello, i am quite panicked about this problem so i will cut to the chase.:crying: I will write down stuff i did in numerical orders.
1. Using TWRP 2.8.6.1, I was curious to try to go to Wipe>Advanced>full wipe (wiping everything). After i did and tried to reboot, it said there is no OS. So i tried flashing my flashable stock rom 4.4.4 in zip form but it didn't boot.
2. So i flashed to stock in fastboot. (For flashing to stock, i used this instructions http://androidforums.com/threads/guide-how-to-flash-a-nexus-factory-image-manually.706533/). After finish flashing, i went to stock recovery and wiped dalvik cache and data.
3. After that, i rebooted and... that when it didn't seem right. Nexus 5 COULD connect to my PC but it only showed "Internal Storage" and nothing else. If i tried to move something to the storage, it would immediately say i can't move it there.
4. So i thought this was because the full wipe i did before and that the system partition got totally wiped. So i used TWRP again but to restore my old nandroid backup.
5. After i flashed my nandroid backup, twrp said this one line that goes in red "unable to mount /firmware. I ignored and rebooted. It still had the problem where i couldn't move anything to my storage by MTP but also adb push. It even couldn't save screenshots and download anything from internet like apk or some sort. When i went into the app called "Zipper", it said 'no sdcard'.
6. I searched through the internet to fix this but i kept failing to solve it. I tried going to TWRP and doing chmod, chmod 755, using these instructions (http://forum.xda-developers.com/google-nexus-5/general/sdcard-problems-upgrading-android-t2938749)
TL;DR : I did a full wipe in TWRP and lost all permissions to read or write. Nandroid backup didn't help. Whatever i flash in twrp, it says "unable to mount /firmware" at the end.
metallikoh said:
Hello, i am quite panicked about this problem so i will cut to the chase.:crying: I will write down stuff i did in numerical orders.
1. Using TWRP 2.8.6.1, I was curious to try to go to Wipe>Advanced>full wipe (wiping everything). After i did and tried to reboot, it said there is no OS. So i tried flashing my flashable stock rom 4.4.4 in zip form but it didn't boot.
2. So i flashed to stock in fastboot. (For flashing to stock, i used this instructions http://androidforums.com/threads/guide-how-to-flash-a-nexus-factory-image-manually.706533/). After finish flashing, i went to stock recovery and wiped dalvik cache and data.
3. After that, i rebooted and... that when it didn't seem right. Nexus 5 COULD connect to my PC but it only showed "Internal Storage" and nothing else. If i tried to move something to the storage, it would immediately say i can't move it there.
4. So i thought this was because the full wipe i did before and that the system partition got totally wiped. So i used TWRP again but to restore my old nandroid backup.
5. After i flashed my nandroid backup, twrp said this one line that goes in red "unable to mount /firmware. I ignored and rebooted. It still had the problem where i couldn't move anything to my storage by MTP but also adb push. It even couldn't save screenshots and download anything from internet like apk or some sort. When i went into the app called "Zipper", it said 'no sdcard'.
6. I searched through the internet to fix this but i kept failing to solve it. I tried going to TWRP and doing chmod, chmod 755, using these instructions (http://forum.xda-developers.com/google-nexus-5/general/sdcard-problems-upgrading-android-t2938749)
TL;DR : I did a full wipe in TWRP and lost all permissions to read or write. Nandroid backup didn't help. Whatever i flash in twrp, it says "unable to mount /firmware" at the end.
Click to expand...
Click to collapse
EDIT: alright i did a mess up. When i flashed the stock, i didn't rename the radio from radio-hammerhead-m8974a-2.0.50.1.16 to radio.img.

Wiping Phone in TWRP Reovery

What should I wipe before I sell my phone:
Dalvik Cache
System
data
Internal Storage
Cache
USB-OTG
Well, assuming the person buying it wants an OS on there, you should perform a factory reset from the settings menu while the phone is booted. This should take care of the system and data partitions (I think it takes care of internal storage as well, but you can be sure by wiping internal storage in TWRP).
You could also just do everything in TWRP if you have a flashable zip of an OS (COS, CM, OOS, etc.) and a Gapps package ready. If you have those ready, wipe system, data, cache, DALVIK, and internal storage then flash the OS and Gapps and boot. If you did this, you just performed a clean flash and everything that was previously on the phone is now gone.
Sent from my A0001 using Tapatalk
If I wanted to just keep the OS, would I wipe everything but System then?
Also, when I restart my phone, it still asks me for my encryption password. I thought after a factory reset, it would no longer ask me for this. How do I get rid of this? I want to leave whatever is encrypted, encrypted. Do I need to wipe something else, I am guessing?
Wipe everything on that list and just connect PC to computer and transfer gapps and rom via twrp and then flash. Completely cleans phone
Check first if your computer recognizes your OPO while in TWRP. If not, get yourself OTG cable and pendrive. Wipe everything and flash new rom, gapps, root perhaps via otg. Cheers!
kodo12 said:
Check first if your computer recognizes your OPO while in TWRP. If not, get yourself OTG cable and pendrive. Wipe everything and flash new rom, gapps, root perhaps via otg. Cheers!
Click to expand...
Click to collapse
Wipe everything *before* plugging in the OTG drive. Wouldn't want to wipe the drive containing the ROM.
Sent from my A0001 using Tapatalk
Yup, you're right kind sir. Thank you for pointing that out. Best regards.

Categories

Resources