[Q] Accidentally Wiped /data, Stuck in TWRP.. - Nexus 10 Q&A, Help & Troubleshooting

Well, it looks like I unintentionally wiped the /data partition using TWRP right after I did my first backup after rooting. Now I obviously can't boot since system, data, cache, etc. are wiped. The backup I just made was also wiped. As others mentioned in the TWRP thread, it's a bit different for the Nexus 10 compared with other devices - out of the 11 android devices I've had I've never done this!
Anyhow, can anyone a solution to getting a ROM back on my device? I can't seem to mount anything to my PC using TWRP. I can get fastboot working, but not ADB or file system mounting.
Thanks

Ehm, does the Nexus 10 have a ad card? If yes, use another phone to put a Rom on it and then flash it trough twrp
Sent from my awesome fridge

have you tried mount sd storage? or you can try the toolkit in the sticky thread.
Sent from my ADR6425LVW using xda premium

Get a stick drive, sd card reader, etc. Put a rom on it & transfer via twrp file manager
Sent from my Nexus 7 using Tapatalk 2

Just boot into fast boot and flash the stock images.
Sent from my Nexus 10 using Tapatalk HD

can you use adb to push a rom to flash?

TWRP allows you to adb sideload ROMs. Google TWRP adb sideload and it'll walk through the steps. You can also search the Original Development section and find MSkip's toolkit which I believe can flash ROMs and whatnot from your computer. It will also automate installing the proper drivers if that hasn't already been done.

Thanks for all the help. ADB wasn't working in TWRP - I believe it was a driver issue on my PC though. However, as jellydroid13 mentioned, I was able to use fastboot to flash the stock 4.2 image from google, and then boot up from there. Thanks again!

chompone said:
Well, it looks like I unintentionally wiped the /data partition using TWRP right after I did my first backup after rooting. Now I obviously can't boot since system, data, cache, etc. are wiped. The backup I just made was also wiped. As others mentioned in the TWRP thread, it's a bit different for the Nexus 10 compared with other devices - out of the 11 android devices I've had I've never done this!
Anyhow, can anyone a solution to getting a ROM back on my device? I can't seem to mount anything to my PC using TWRP. I can get fastboot working, but not ADB or file system mounting.
Thanks
Click to expand...
Click to collapse
Add me to the list of people who have wiped data over 9000 times in CWM and after updating to twrp and doing it there, have lost everything. I have backups, but am having no device found with adb sideload and suffice to say im a little confused. Confused why "wipe data" and wipe SD card and wipe SD EXT all do the same thing.
"

android01 said:
Add me to the list of people who have wiped data over 9000 times in CWM and after updating to twrp and doing it there, have lost everything. I have backups, but am having no device found with adb sideload and suffice to say im a little confused. Confused why "wipe data" and wipe SD card and wipe SD EXT all do the same thing.
"
Click to expand...
Click to collapse
+1 here
(i'll look for an OTG cable^^)

i had a similar problem several days ago
used ADB sideload to flash ROMs

why adb anything when like jellydroid said you can use fastboot and push all partitions and restore to stock?

I'm facing a similar issue but my device is Moto G5s Plus.
The problem I'm facing is that I accidently wiped out the mobile's system completely, and now it does not even have an "internal storage" partition at all (since it shows 0 MB). Hence, I cannot even transfer any files to my mobile because my computer does show the phone detected but no "internal storage exists".
Please help me out..

Related

[Q] How do you reload the ROM if only TWRP is installed

Fairly new at android, so go easy on me.
Created a backup (apparently incorrectly), and decided to restore the backup. Once it was completed and I rebooted the KF booted into TWRP and no backups exist. The only folder is the TWRP, but boot, cache, data, etc. exist when you move up a level. Any way to force a ROM re-installation at this point? I can mount the drive via TWRP and can access the TWRP folder via windows explorer, but it appears that the entire system has been wiped. I can also use ADB to look at teh status and its saying that its online, rooted, and in recovery mode (5001). Any help would be appreciated.
There are numerous roms in the forum. Look around and find the one that is right for you. There is the stock rom if you want the original kf experience. I reccommend cm7 if you want a fully functional android tablet. Downlad any rom to your pc and copy to the fire using usb mount in twrp. I recommend wiping system, data and dalvik before flashing a new rom to avoid complications. I would add links but that is kinda hard from the fire. Lol
Sent from my Kindle Fire using Tapatalk
Awesome... I was stuck here for 4 hours at work today. LOL
Thank you very much.

[Q] Newbie questions (don't kill me Im new!)

Hy there I love xda and im a new user to xda nexus forum
With excelent guides I learnt how to root unlock and install custom rom (quite easy let it down into your internal storage and install from zip)
but I have few questions..
When I tried to wipe data and cache I accidentally did factory reset which ended up in no installed rom, internal storage empty and I was in custom recovery and I couldn't connect to computer, so I had to start from 0... last times I've been selecting wipe data and cache.. but I seen that in my nexus 7 some old files are still there (under a folder called 0) What should I do to make a clean install? which option of the new recovery should I choose? thankyou
mariosanoguera said:
Hy there I love xda and im a new user to xda nexus forum
With excelent guides I learnt how to root unlock and install custom rom (quite easy let it down into your internal storage and install from zip)
but I have few questions..
When I tried to wipe data and cache I accidentally did factory reset which ended up in no installed rom, internal storage empty and I was in custom recovery and I couldn't connect to computer, so I had to start from 0... last times I've been selecting wipe data and cache.. but I seen that in my nexus 7 some old files are still there (under a folder called 0) What should I do to make a clean install? which option of the new recovery should I choose? thankyou
Click to expand...
Click to collapse
Use TWRP for recovery and to do a clean install wipe all data from TWRP.
Sent from my Nexus 7 using xda premium
mariosanoguera said:
Hy there I love xda and im a new user to xda nexus forum
With excelent guides I learnt how to root unlock and install custom rom (quite easy let it down into your internal storage and install from zip)
but I have few questions..
When I tried to wipe data and cache I accidentally did factory reset which ended up in no installed rom, internal storage empty and I was in custom recovery and I couldn't connect to computer, so I had to start from 0... last times I've been selecting wipe data and cache.. but I seen that in my nexus 7 some old files are still there (under a folder called 0) What should I do to make a clean install? which option of the new recovery should I choose? thankyou
Click to expand...
Click to collapse
I'd flash a stock recovery image onto your device available here which would restore your device completely back to stock (with your bootloader unlocked) From there I'd just re root and do what you want. However I'd personally use CWM Touch Recovery myself, but I just like that recovery more (have used it and the non-touch version for ages and on many devices)
smt8544 said:
I'd flash a stock recovery image onto your device available here which would restore your device completely back to stock (with your bootloader unlocked) From there I'd just re root and do what you want. However I'd personally use CWM Touch Recovery myself, but I just like that recovery more (have used it and the non-touch version for ages and on many devices)
Click to expand...
Click to collapse
I actually have Team Win Recovery Project..
under wipe I can find
Cache
Dalvik
Factory Reset (This is the one I use.. but It leaves in my internal storage with a folder called 0 and my old data from previous roms is stored there)
System
External Storage
Int. Storage ?
Format Data (I did this and I lost everything except TWRM which I could boot at it (but I had no option to install from zip neither couldnt transferr a file through usb mount sd card didn't work))
Which one of all of this should I run before doing the install zip from sd card?
mariosanoguera said:
I actually have Team Win Recovery Project..
under wipe I can find
Cache
Dalvik
Factory Reset (This is the one I use.. but It leaves in my internal storage with a folder called 0 and my old data from previous roms is stored there)
System
External Storage
Int. Storage ?
Format Data (I did this and I lost everything except TWRM which I could boot at it (but I had no option to install from zip neither couldnt transferr a file through usb mount sd card didn't work))
Which one of all of this should I run before doing the install zip from sd card?
Click to expand...
Click to collapse
I think it would be easier and cleaner if you restored back to stock before trying to re root, flash recovery, etc. If you have no important data on your device I'd go for it. If you do have important data, then try and pull it to your computer and then flash a stock image and re root etc.
I always find that in times when my device is screwing around, or I have file dregs around the place, I find it simply easier to backup important things and flash a stock image.

[SOLVED] Cannot mount /sdcard or flash in recovery following phone encryption

Hey guys,
I recently encrypted my phone for my work e-mails (the Exchange server required it). I made a complete Nandroid backup and also entire Titanium backup before encrypting, just in case something went wrong. But the encryption went beautifully.
However, I've noticed that I cannot mount /sdcard or flash anything from recovery. I can't update my Franco kernel or CM nightlies... It's a bit annoying because I want to keep flashing! lol.
My phone asks for my password everytime I reboot (in order to decrypt sdmount and mount the ROM), so I'm assuming this is the reason I can't mount it in CWM recovery.
Anyone know of a bypass or fix for this?
I don't really feel like restoring nandroid backup or doing a factory reset everytime I want to flash a new nightly, it just doesn't make any sense (besides I haven't even tried to see if I can restore from nandroid or factory resetting, they might not even work because it can't mount /sdcard?...)
I've searched around the forums for some complex solutions such as using ADB or Odin but I'm not interested in that.
Thank you!
UPDATED:
Ok guys so basically restoring from nandroid did not work because of the sdcard mount error.
I did a factory reset, erased all data and format system. But I couldn't format sdcard or even user data as it didn't have access... Basically the phone got bricked from then on and I had to completely restore back to stock bootloader/recovery/stock rom with adb/fastboot. Instructions are found here:
http://forums.androidcentral.com/nex...e-restore.html
Hopefully this will come to use to someone else. I've heard that TWRP does not have this sdcard mount problem with encryption as does CWM, so that's what I installed this second time around.
Why don't you just transfer the files regularly without entering recovery mode?
The recovery doesn't allow mounting to the PC. It just doesn't work.
Sent from my Nexus 4 using Tapatalk 2
scream4cheese said:
Why don't you just transfer the files regularly without entering recovery mode?
The recovery doesn't allow mounting to the PC. It just doesn't work.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
I've never mounted to PC in recovery. My files are backed up on my computer and nandroid as well.
My issue here is that I can't regularly flash new nightlies (and thus mount internal /sdcard to do so) following the phone encryption.
Since my internal /sdcard path is encrypted with a password, CWM recovery can't bypass this and it gives me the error "cannot mount /sdcard".
bump?
Any help would be highly appreciated!
Is this a lacking feature in CWM Recovery? Have the developers looked in it? Or is there already a fix for this without doing an entire factory reset?
Daily bump.
Anyone there? (echo...)
Ok guys so basically restoring from nandroid did not work because of the sdcard mount error.
I did a factory reset, erased all data and format system. But I couldn't format sdcard or even user data as it didn't have access... Basically the phone got bricked from then on and I had to restore back to stock using this:
http://forums.androidcentral.com/ne...3923-guide-nexus-4-factory-image-restore.html
Hopefully this will come to use to someone else. I've heard that TWRP does not have this sdcard mount problem with encryption as does CWM, so that's what I installed this second time around.
If you want to recover the data from SD card, you do not use the SD card.
You can try to recover the data from the card with some specific software.
I will try to fin one I used before.
It will take few minutes... do not use the card.
cyrus_e said:
Basically the phone got bricked from then on and I had to completely restore back to stock bootloader/recovery/stock rom with adb/fastboot. Instructions are found here: ...
Click to expand...
Click to collapse
Many thanks, this link helped me restoring my Nexus 4. I enabled "encrypted storage" and wanted to root the phone and almost bricked it.
It's also possible to flash the stock recovery with odin, then do a real factory data reset and be able to install a custom rom, after (or before) which you can reinstall a custom recovery.

TWRP backup question

If I backup my system on tw recovery, and flash a new rom, will wiping my phone delete the tw recovery backup in case I have to restore my phone? Feel free to correct me on this, but to my understanding teamwin has it's own partition, and wiping does not mess with this partition?
matthewbhass said:
If I backup my system on tw recovery, and flash a new rom, will wiping my phone delete the tw recovery backup in case I have to restore my phone? Feel free to correct me on this, but to my understanding teamwin has it's own partition, and wiping does not mess with this partition?
Click to expand...
Click to collapse
I think TWRP backups are normally stored on your internal storage partition, so if you perform a (EDIT full factory reset doesnt wipe this, thanks Silesh) or wipe your internal storage, your backups will be erased too. The TWRP itself does install to the recovery partition (which will only be affected by a flash to the recovery, which a wipe will not perform), you're correct on that but the backups are held separately to that. You can copy your backups to another computer or SD card, I found my backup under /SDcard/TWRP/BACKUPS - you could either copy the folder with a root browser or use the ADB pull command (with the ADB terminal), though the TWRP backup may not show on a Windows desktop even if it's been copied correctly. However, if copied back to your phone, the TWRP backup should function.
Edit: thanks Silesh for correcting me, I was thinking of app data rather than user data!
echo92 said:
I think TWRP backups are normally stored on your internal storage partition, so if you perform a full factory reset or wipe your internal storage, your backups will be erased too. The TWRP itself does install to the recovery partition (which will only be affected by a flash to the recovery, which a wipe will not perform), you're correct on that but the backups are held separately to that. You can copy your backups to another computer or SD card, I found my backup under /SDcard/TWRP/BACKUPS - you could either copy the folder with a root browser or use the ADB pull command (with the ADB terminal), though the TWRP backup may not show on a Windows desktop even if it's been copied correctly. However, if copied back to your phone, the TWRP backup should function.
Click to expand...
Click to collapse
Thanks for replying. I can't transfer files from my computer to my phone, but I have thought about using the ADB sideload option from recovery. Is there a way that I can move my backup from my phone to my computer (and to my phone from my computer) using the sideload option, just in case I need the backup? I refuse to flash a new ROM without access to my complete backup, lol.
Internal storage is not formatted during a normal wipe. You have to specifically go into the advanced wipe and select internal storage to wipe it completely. So there is no issue while flashing a new rom if you don't choose the advanced wipe option.
You could also create the twrp backup in your external sdcard. That way your backup stays even if you wipe your phone using a factory reset or by mistake.
Strange. What's the problem of making backups to external SD? The function is right there (as Silesh mentioned). BTW: the very last version of TWRP is able to make backups straight to pc. This needs to be done FROM a pc though. TWRP is capable to work with fastboot now (using special command though, or with this GUI for pc: https://forum.xda-developers.com/android/software-hacking/tool-twrp-backup-restore-tool-pc-t3572241 )
You can choose whether you want to use internal storage or SD card when making a backup. It doesn't matter which you choose as long as you (and I learned this the hard way) pay attention to what you are doing and DO NOT WIPE internal storage or your SD card. Advantages of SD card is you won't lose your backup if you decide to flash stock. Disadvantage: if your card craps out on you backup is lost unless you have copied to PC or saved on cloud.
My Solution
I solved my problem by using the pull command in adb. Now if I decide to flash a new ROM, I can push my TWRP recovery back to my phone using adb and then recover it in my TWRP recovery.. I also backup using adb backup which backs it up directly to my computer anyways.
I knew about storing my TWRP backup on an sd card, but I haven't made time to get one. . I recently switched to the Motorola G4 Plus after my iPhone 6s decided to turn off and not turn back on. I eventually grew tired of the iPhone anyways due to lack of accessibility and freedom. Back in the day I owned androids but never rooted one or had one that was rooted. I did jailbreak my 4th generation iPod a few years ago. But I went through an iPhone 5s, and upgraded to a 6s and had that for a few months. I eventually just switched back to android after the longest time and I can't say that I regret it.
My Moto G4 Plus has been an amazing phone. I've only had it for a few weeks now, but I rooted it the day after I got it . So I'm a bit of a noob in the rooting community, . Since then it's been a pretty smooth transition. I've only got root access and xposed framework as of now. I was thinking about flashing a ROM so I made backups just in case, but I don't plan on making any major changes to the kernel or flashing another ROM. I'm satisfied with the stock ROM since Motorola pretty much made it as minimal as possible. I would recommend this phone to anyone. It's the most solid phone I've had yet.

[miui11] Rolled back from V11-10 to _V11.0.2.0- Phone's internal storage is messed up

Hi Guys,
It's all in the title really, I have tried rolling back from the latest MIUI stable rom 20.1.9_v11-10 to my previously run V11.0.2.0 , this got my phone (mi9t) stuck in a bootloop. After going into recovery mode, I have realized the internal storage folders are all messed up, with the folders names showing in an odd combination of number and letters (Something like: 9KJJGDKJ).
The phone still mounts via USB to the laptop, by I'm unable to transfer any files to the internal storage. And as such, I'm currently unable to flash it with a ROM.
I'd appreciate any advice on this, hopefully one that would also help me salvage the files and data I have on my internal storage.
Hi
Abu-7abash said:
Hi Guys,
It's all in the title really, I have tried rolling back from the latest MIUI stable rom 20.1.9_v11-10 to my previously run V11.0.2.0 , this got my phone (mi9t) stuck in a bootloop. After going into recovery mode, I have realized the internal storage folders are all messed up, with the folders names showing in an odd combination of number and letters (Something like: 9KJJGDKJ).
The phone still mounts via USB to the laptop, by I'm unable to transfer any files to the internal storage. And as such, I'm currently unable to flash it with a ROM.
I'd appreciate any advice on this, hopefully one that would also help me salvage the files and data I have on my internal storage.
Click to expand...
Click to collapse
For backup have you tried running adb command "adb pull /sdcard _(here specify any location in your pc such as C:\x\) from CMD when in TWRP? And for flashing ROM you can use "adb push (ROM zip location and destination such as C:\x\anyrom.zip /sdcard/)" and flash ROM .zip from your sdcard root in TWRP AFTER factory reset and wipe system from TWRP. Remember factory reset will erase your internal storage. Hope it helps. Good luck.
Abu-7abash said:
Hi Guys,
It's all in the title really, I have tried rolling back from the latest MIUI stable rom 20.1.9_v11-10 to my previously run V11.0.2.0 , this got my phone (mi9t) stuck in a bootloop. After going into recovery mode, I have realized the internal storage folders are all messed up, with the folders names showing in an odd combination of number and letters (Something like: 9KJJGDKJ).
The phone still mounts via USB to the laptop, by I'm unable to transfer any files to the internal storage. And as such, I'm currently unable to flash it with a ROM.
I'd appreciate any advice on this, hopefully one that would also help me salvage the files and data I have on my internal storage.
Click to expand...
Click to collapse
Well, it looks like you phone is encrypted and the only way is to format data, and did you format data before doing the downgrade?
Do you have TWRP?
You need to format data, internal memory encrypted.
Boot to TWRP
Format DATA
Reboot to TWRP
Transfer xiaomi.eu rom and flash
Reboot
Abu-7abash said:
Hi Guys,
It's all in the title really, I have tried rolling back from the latest MIUI stable rom 20.1.9_v11-10 to my previously run V11.0.2.0 , this got my phone (mi9t) stuck in a bootloop. After going into recovery mode, I have realized the internal storage folders are all messed up, with the folders names showing in an odd combination of number and letters (Something like: 9KJJGDKJ).
The phone still mounts via USB to the laptop, by I'm unable to transfer any files to the internal storage. And as such, I'm currently unable to flash it with a ROM.
I'd appreciate any advice on this, hopefully one that would also help me salvage the files and data I have on my internal storage.
Click to expand...
Click to collapse
I would try another recovery, sounds like something is corrupt with the twrp version. Have you tried Orangefox?
I had the same problem. Only thing that works is formatting data. A different twrp wont work. I tried 3 different versions all the same.
Thanks guys, already formatted my sd card yesterday and then I was able to re-flash the Android Q update.
My data is lost tho. Thank you all for your input here.
Sent from my Redmi K20 using Tapatalk

Categories

Resources