oops! internal storage wipe - what to do now - Nexus 7 (2013) Q&A

so i had a brain fart when prepping for a new rom install and wiped internal storage. now i have no rom to install and i've already wiped the system.
at this point i have nothing to reboot into right? not sure what to do now. i need to get the rom file back on the tablet obviously but don't want to reboot the device at this point since there's nothing there.
help!

byproxy said:
so i had a brain fart when prepping for a new rom install and wiped internal storage. now i have no rom to install and i've already wiped the system.
at this point i have nothing to reboot into right? not sure what to do now. i need to get the rom file back on the tablet obviously but don't want to reboot the device at this point since there's nothing there.
help!
Click to expand...
Click to collapse
At the very least you need to fastboot flash the system image which you extract from inside the factory image. Which is what I would do. Or you can flash the whole factory image using the flash_all.bat file. Either way you will need the sdk installed. If your storage was not wiped you can modify the flash_all batch file by opening it up with notepad and removing the -w from the text which will keep the storage from being wiped when flashing the factory image. I've always used the sdk but you can probably use one of the toolkits like Wug's Nexus Root Toolkit v1.8.9 or One Click Factory Restore. So... you have multiple choices!

Related

SOMEONE PLEASE PLEASE HELP!! I Lost everything

Ok I have made the stupidest and idiotic attempt to upgrade from 4.0.4 to 4.1 jelly bean on GSM Galaxy Nexus.
Basically, my phone was already rooted and unlocked, so I made a nandroid copy and off I went into recovery mode, trying to install the yakju zip file to manually update the firmware.
After I installed it and rebooted, it seems like it wasn't installed on some sort of internal storage that was only 66mb and I have lost my SD card and no user settings can be saved onto it. I realised this because if I went into recovery mode again and reboot normally, I will have to go through the initial setup all over again!!! At this point, if I tried to go back to nandroid copy, I could have done so easily.
BUT I made the mistake of trying to wipe all user data again and now everything on my SD card has been wiped out, including my nandroid copy and the ability to restore my nandroid back up!!! So if i tried to flash clockwork recovery image and restore, there is nothing in there for me to restore.... and I don't have access to the 13gb SD storage from phone or computer!!
Someone please help??!! At least I just want my old ICS system back!
Post 3 of my guide.
Push a rom and flash it.
Or flash stock images.
Jubakuba said:
Post 3 of my guide.
Push a rom and flash it.
Or flash stock images.
Click to expand...
Click to collapse
Could you be a bit more specific because I don't know how to push a rom or flash it and I can't find my SD card storage either
you clearly didnt read post 3 of juba's guide
I'll try to sum Jubakuba's guide up for you.
1. Boot into bootloader.
2. Select recovery.
3. adb push a ROM-Zip-file from your PC to /data/media/ (adb push $(/path/to/ROM.zip) /data/media/
3.1 Reboot recovery. (adb reboot recovery)
4. Install it like you'd install any other ROM.
---------
Sorry for my bad English.
amethyst_lyre said:
Ok I have made the stupidest and idiotic attempt to upgrade from 4.0.4 to 4.1 jelly bean on GSM Galaxy Nexus.
Basically, my phone was already rooted and unlocked, so I made a nandroid copy and off I went into recovery mode, trying to install the yakju zip file to manually update the firmware.
After I installed it and rebooted, it seems like it wasn't installed on some sort of internal storage that was only 66mb and I have lost my SD card and no user settings can be saved onto it. I realised this because if I went into recovery mode again and reboot normally, I will have to go through the initial setup all over again!!! At this point, if I tried to go back to nandroid copy, I could have done so easily.
BUT I made the mistake of trying to wipe all user data again and now everything on my SD card has been wiped out, including my nandroid copy and the ability to restore my nandroid back up!!! So if i tried to flash clockwork recovery image and restore, there is nothing in there for me to restore.... and I don't have access to the 13gb SD storage from phone or computer!!
Someone please help??!! At least I just want my old ICS system back!
Click to expand...
Click to collapse
You can start the phone and go through the initial set up?
The trouble is your sd is wiped and you can't see it on your computer?
gpfnzl said:
You can start the phone and go through the initial set up?
The trouble is your sd is wiped and you can't see it on your computer?
Click to expand...
Click to collapse
Humn, I read it as he couldn't do anything.
But if that isn't the case...
Yeah, dude...your data is gone.
Jubakuba said:
Humn, I read it as he couldn't do anything.
But if that isn't the case...
Yeah, dude...your data is gone.
Click to expand...
Click to collapse
Yip, i think he data wiped after flashing the up date = data gone and will have to start new.
Should still be able to see sd on computer.
Wiping data doesn't wipe the sd card, where did the upgrade come from? this may have wiped the card.
Try re-flashing a stock rom, root, unlock, flash recovery.
The GNex Toolkit makes it easy to do all these.

Noob questions

1. What is the difference between the following terms: adb. fastboot, bootloader, recovery.
I understood a bit from efrant's thread but I still need some more clarity.
Correct me if I'm wrong - ADB is a mode which can be accessed by either booting into recovery or booting normally into android. and FASTBOOT is a mode which can be accessed by booting into the bootloader.
A key question still remains in my mind - what is the difference between booting into bootloader and booting into recovery?
2. How do I open command prompt in a specific folder? The instructions listed in efrant's thread don't work in Windows 7.
3. I can flash PA as long as I have an unlocked bootloader even if device is not unrooted?
4. Where do I get the fastboot.exe file and adb files (the .exe and two .dll files for Windows) being talked about in efrant's thread and what are they used for?
5. Are custom ROMs flashed to system partition?
6. Do I use ChainsDD's Superuser, or Chainfire's SuperSU?
Note:
Efrant's thread: forum.xda-developers.com/showthread.php?p=29733879#post29733879
TheMysteriousOne said:
1. What is the difference between the following terms: adb. fastboot, bootloader, recovery.
I understood a bit from efrant's thread but I still need some more clarity.
Correct me if I'm wrong - ADB is a mode which can be accessed by either booting into recovery or booting normally into android. and FASTBOOT is a mode which can be accessed by booting into the bootloader.
A key question still remains in my mind - what is the difference between booting into bootloader and booting into recovery?
2. How do I open command prompt in a specific folder? The instructions listed in efrant's thread don't work in Windows 7.
3. I can flash PA as long as I have an unlocked bootloader even if device is not unrooted?
4. Where do I get the fastboot.exe file and adb files (the .exe and two .dll files for Windows) being talked about in efrant's thread and what are they used for?
5. Are custom ROMs flashed to system partition?
6. Do I use ChainsDD's Superuser, or Chainfire's SuperSU?
Note:
Efrant's thread: forum.xda-developers.com/showthread.php?p=29733879#post29733879
Click to expand...
Click to collapse
1. The bootloader is Google's interface for flashing the phone with stock images. Recovery (stock) is used to flash OTAs & perform a Factory reset.
3. You need a custom recovery (either TWRP or CWM) to flash a custom ROM, your phone does not need to be rooted.
4. Look for efrant's (stickied) return to stock thread in the general section, it has the needed fastboot & adb files attached to the OP.
5. Yes & they also generally include a kernel (some have a stock kernel some use a custom)
6. AFAIK Chainfire's SuperSU is more reliable ATM on Jelly Bean.
http://wiki.rootzwiki.com/Android_SDK
That's the link I used to set up adb. Just make sure you get the nexus drivers set up right. To test it when you think you've got it all set up, make sure you have adb debugging checked in developer options, plug your phone in, open command prompt and type adb devices. It should spit out a line of numbers. If it's blank that means the phone drivers aren't set up right. If you want to test it further you can try an adb push command.
Where are Nandroid backups stored? Are the backups still there after a factory reset?
Where are Titanium backups stored? Are the backups still there after a factory reset?
Using adb you choose where to store your nandroids.
For titanium open the app and it shows where on the main screen.
Don't forget to thank those who helped
Edit: backups remain as long you don't wipe internal or external storage
namtombout said:
Using adb you choose where to store your nandroids.
For titanium open the app and it shows where on the main screen.
Don't forget to thank those who helped
Click to expand...
Click to collapse
But where do I store the backups so that I can access them even after a factory reset?
Does a factory reset delete everything literally?
TheMysteriousOne said:
But where do I store the backups so that I can access them even after a factory reset?
Does a factory reset delete everything literally?
Click to expand...
Click to collapse
/sdcard/clockwordmod/backup -- copy the whole folder with the date and time on it. replace it in the same location if you want to restore from it
edit: for titanium backup, copy the whole folder on the root of your sdcard labelled "titaniumbackup"
Create a folder named nandroid in your internal storage.
Factory reset won't wipe any of your files in your internal storage.
namtombout said:
Using adb you choose where to store your nandroids.
For titanium open the app and it shows where on the main screen.
Don't forget to thank those who helped
Edit: backups remain as long you don't wipe internal or external storage
Click to expand...
Click to collapse
I don't think you understood what I was trying to say.
Suppose I make a Nandroid backup now and then perform a factory reset. Will that nandroid backup still be a available on the phone?
TheMysteriousOne said:
But where do I store the backups so that I can access them even after a factory reset?
Does a factory reset delete everything literally?
Click to expand...
Click to collapse
I am on CM10.1 and the backup I made with CWM was stored in data/media/clockworkmod/backup. Its an odd location but I have done factory resets in order to install other ROMs and the backup remains. And a factory reset does not wipe the Internal storage. A factory reset pretty much just resets the system files back to stock. The only thing you really lose is your apps. All your personal files (pictures/videos/etc.) are left alone.
namtombout said:
Create a folder named nandroid in your internal storage.
Factory reset won't wipe any of your files in your internal storage.
Click to expand...
Click to collapse
Then what exactly does a factory reset do - what do I lose in a factory reset?
And if factory reset doesn't wipe everything, what does?
jsgraphicart said:
And a factory reset does not wipe the Internal storage. A factory reset pretty much just resets the system files back to stock. The only thing you really lose is your apps. All your personal files (pictures/videos/etc.) are left alone.
Click to expand...
Click to collapse
I use twrp recovery. Wiping internal or external storage wipes everything
namtombout said:
I use twrp recovery. Wiping internal or external storage wipes everything
Click to expand...
Click to collapse
But a simple factory reset doesnt wipe the internal storage. There may be options in there to do so but I thought we were just talking about a factory reset.
TheMysteriousOne said:
Then what exactly does a factory reset do - what do I lose in a factory reset?
And if factory reset doesn't wipe everything, what does?
Click to expand...
Click to collapse
its simple.
Factory reset wipes /data (where all your play store/side loaded apps and data (app settings, etc) are stored)
and /cache
it does not touch the /data/media which is your internal storage. since there is no external storage on the nexus, there is nothing to worry about there
/system does not get touched unless you flash a new rom or wipe it manually from recovery
if you wipe /system, you better have another rom to flash in its place....or the phone wont boot into the OS, because /system contains the OS
TheMysteriousOne said:
Then what exactly does a factory reset do - what do I lose in a factory reset?
And if factory reset doesn't wipe everything, what does?
Click to expand...
Click to collapse
Are you asking because you WANT to wipe everything or are you afraid of losing stuff?
You Sir are correct. Just quoted you to help answer op questions.
namtombout said:
Create a folder named nandroid in your internal storage.
Factory reset won't wipe any of your files in your internal storage.
Click to expand...
Click to collapse
Note: nandroid backups get created on /sdcard aka /data/media.
TheMysteriousOne said:
I don't think you understood what I was trying to say.
Suppose I make a Nandroid backup now and then perform a factory reset. Will that nandroid backup still be a available on the phone?
Click to expand...
Click to collapse
Answered by the poster above, thank him. I corrected him, as well.
TheMysteriousOne said:
Then what exactly does a factory reset do - what do I lose in a factory reset?
And if factory reset doesn't wipe everything, what does?
Click to expand...
Click to collapse
Answered below.
jsgraphicart said:
But a simple factory reset doesnt wipe the internal storage. There may be options in there to do so but I thought we were just talking about a factory reset.
Click to expand...
Click to collapse
Pirateghost said:
its simple.
Factory reset wipes /data (where all your play store/side loaded apps and data (app settings, etc) are stored)
and /cache
it does not touch the /data/media which is your internal storage. since there is no external storage on the nexus, there is nothing to worry about there
/system does not get touched unless you flash a new rom or wipe it manually from recovery
if you wipe /system, you better have another rom to flash in its place....or the phone wont boot into the OS, because /system contains the OS
Click to expand...
Click to collapse
There's an option in twrp at least, that allows to format the internal storage. if you do it by accident or need a fresh start/don't care about the data, of course you'll need to know how to use adb to push stuff back to it, previously pulled from it to the PC.
What I'm saying is that it only matters as much as you care about your data stored up until that point. I keep regular, tarball backups of /data/media in my PC.
Sent from my i9250
So, Nandroid backs up all 13 partitions?
Note: nandroid backups get created on /sdcard aka /data/media.
Click to expand...
Click to collapse
What is this /data/media that you talk about?
I read that Nandroid backup gets stored on /sdcard/clockworkmod/backup
Edit: Also, http://www.vikitech.com/10347/perform-nandroid-backup-restore-android-device says "A point to note here is that your SD Card data is not backed up."
TheMysteriousOne said:
So, Nandroid backs up all 13 partitions?
What is this /data/media that you talk about?
I read that Nandroid backup gets stored on /sdcard/clockworkmod/backup
Edit: Also, http://www.vikitech.com/10347/perform-nandroid-backup-restore-android-device says "A point to note here is that your SD Card data is not backed up."
Click to expand...
Click to collapse
The backup will be in either location. Some phones put it on the sd card. I just recently got a Nexus and found out it was backed up to data/media/clcockworkmod/backup. To get to that location, you need a root browser. I use Root Explorer and love it. Once you get one, you can go to the root directory of your phone and start going into each folder data/media/clockworkmod/backup.
/data/media/ is the same as /sdcard/
You must backup your own sdcard. Adb push /data/media to a computer

[Q] Quick Questions

I am not a total noob to this, as I used to root/ROM the OG Nook Color to death, but I have a few questions on what to do when going from CM 10.1 M1 to the newest M2.
On the Nook, I could put files onto the SD card for flashing after I wiped the device in order to install a new ROM. However, on the Nexus there is no such option. I downloaded goo manager and got the latest GAPPS and M2 zip, but if I wipe the device prior to flashing the latest M2, won't these be wiped also? I guess I'm asking what is the best solution for updating ROMS since I don't have the benefit of loading files to an external SD card.
Along the same lines, I also made a NAND backup of the current ROM and a titanium backup of the apps+data. All of these files reside on the phone itself, so should I move them to the computer first, wipe the device then load them back on for flashing?
Thanks a ton.
bluewhite79 said:
I am not a total noob to this, as I used to root/ROM the OG Nook Color to death, but I have a few questions on what to do when going from CM 10.1 M1 to the newest M2.
On the Nook, I could put files onto the SD card for flashing after I wiped the device in order to install a new ROM. However, on the Nexus there is no such option. I downloaded goo manager and got the latest GAPPS and M2 zip, but if I wipe the device prior to flashing the latest M2, won't these be wiped also? I guess I'm asking what is the best solution for updating ROMS since I don't have the benefit of loading files to an external SD card.
Along the same lines, I also made a NAND backup of the current ROM and a titanium backup of the apps+data. All of these files reside on the phone itself, so should I move them to the computer first, wipe the device then load them back on for flashing?
Thanks a ton.
Click to expand...
Click to collapse
There is no such need mate! When you root your phone, you get "an image of your internal memory" - forgot the word for it xD
So, when you do a "wipe" in recovery (TWRP or CWM) you do a factory reset - wipe system(on twrp) - wipe cache - wipe dalvik - and it just delets the current ROM you have, all your files remain on the internal memory, togeather with the titanium backup - zip files you just flashed and so on ... Hope you understand what I meant
Wow, I didn't know that it left files after doing a factory wipe in TWRP. So you're saying I can wipe system, cache, and dalvik cache, but my m2 zip, Gapps zip, nandroid backup zip and titanium backup files will still be there?
What about my wifi and bluetooth settings? do I need to do those over again or are they "saved" somewhere
bluewhite79 said:
Wow, I didn't know that it left files after doing a factory wipe in TWRP. So you're saying I can wipe system, cache, and dalvik cache, but my m2 zip, Gapps zip, nandroid backup zip and titanium backup files will still be there?
What about my wifi and bluetooth settings? do I need to do those over again or are they "saved" somewhere
Click to expand...
Click to collapse
If they are synced with your google account, they will restore back!
When wiping - do cache - dalvik cache- factory reset - system ... DON'T wipe anything else, especially internal storage! THAT will wipe everything off ...
I don't know how to check if they are synced. I know I have contacts calendar, etc synced. How can I tell if wifi settings and bluetooth are synced?
Go to backup & reset in settings and check there!
ok, thank you! it is checked, so I guess i'm good to go.
I will wipe "SYSTEM" in TWRP - which wipes the ROM only. I will not do a factory reset in twrp.
Doom, you've been a ton of help!
christ, i tried to install m2 and in says "FAILED"
**** **** ****! I am screwed. why did the flash of the latest m2 fail?
Stuck on Google splash screen
I am re downloading the latest M2 from get.cm to my PC. I guess I can reboot into recovery and try to get the zip onto the phone.
restoring from Nand backup now. UGH. what went wrong with the goomanager m2.zip??
bluewhite79 said:
Stuck on Google splash screen
I am re downloading the latest M2 from get.cm to my PC. I guess I can reboot into recovery and try to get the zip onto the phone.
Click to expand...
Click to collapse
Perhaps you had a bad download ...
Doomhamma said:
Perhaps you had a bad download ...
Click to expand...
Click to collapse
That's what I'm guessing. now my PC won't recognize the nexus...as if the device drivers won't work on my PC. ugh.
after the restore, i'll see if I can get my PC to recognize the device when I plug it in. This is odd.
I ALWAYS download this via PC - then send 'em on my GNexus and then flash aterwards ...
Thanks doom, I am restored to my old M1 rom, but my PC is not recognizing the device, so I can't move the downloaded m2 zip to it just yet. I've got to figure out what is going on with device recognition before trying this again.
My Nexus recognizes that it is connected to a PC as a USB device and I can hear the bleep on my PC that it is connected, but I cannot see the device in windows explorer.Consequently, I cannot move the zip to the device if I cannot "see" it.
Do you get the icon in your comp's status bar that it's connected? Android debugging enabled in settings?
Its actually working now. I launched nexus root toolkit to recheck the drivers and now it magically appears in windows explorer...go figure.
should I also install the latest GAPPS after flashing M2? I was using late 2012 Gapps, but now there is one from 3/1/2013 or will that screw up something?
I don't really know ... Didn't try those out! Neither did I try M2 .. xD
Thanks doom! Flashed the M2 zip and newest 3/1/13 Gapps. No need to set up the phone all over again! I am now on M2 (4.2.2).

Clean Flash Custom Rom

I know I saw this process in a recent thread but I've misplaced it. If anyone can point me to it, I would be grateful.
I want to clean flash CM 13 on my OP3.
From what I remember, I'm supposed to store the CM 13 zip file and gapps file in the SD Card folder. Is that truly correct? The OP3 doesn't have an SD Card though I did find a folder.
If I do a factory reset and wipe everything, won't that folder also get wiped? Then how would I install the ROM from the phone?
Sorry, I know this is a straightforward process for many of you, and dirty flashing is easy. But I think a clean flash is better and I'd rather not guess and end up with a bricked phone I have to fuss with.
Again, I know this exact process is in a thread somewhere but I can't find it.
the phone storage is /sdcard/
u can use something like ES File Explorer and create a folder called CM13 or whatever u want
u do have ur bootloader unlocked and twrp installed, correct?
yes u will just the get cm zip file and put it in a folder (ex. /sdcard/CM13/)
i put the gapps in the same folder
create a nandroid backup
wipe/advance wipe - wipe caches/data/system !!!!Do NOT WIPE - INTERNAL STORAGE OR OTG!!!
then flash cm zip and gapps
Hi, thank you. Yes, bootloader unlocked, twrp installed and I've done it in the past on a different phone but couldn't sort out clean flashing from dirty flashing. I've done it correctly in the past, and it's also gone very wrong for me. I think I mistakenly wiped internal storage once and that was a disaster.
Somewhere I've also read about a factory reset through trwp.
I don't need to do that, or wiping caches/data/system is the same thing?
.
digger16309 said:
Hi, thank you. Yes, bootloader unlocked, twrp installed and I've done it in the past on a different phone but couldn't sort out clean flashing from dirty flashing. I've done it correctly in the past, and it's also gone very wrong for me. I think I mistakenly wiped internal storage once and that was a disaster.
Somewhere I've also read about a factory reset through trwp.
I don't need to do that, or wiping caches/data/system is the same thing?
.
Click to expand...
Click to collapse
If you wipe internal storage, you will lose the zips for your ROM and GAPPS. You can connect your device and have it recognized on your PC from within TWRP if you do accidentally wipe your internal storage.
Factory reset doesn't wipe the system partition as that would remove your OS. Most Roms will wipe your system partition before it installs itself so generally you don't have to wipe the system partition manually, but it's good practice.
Clean flash = wipe dalvik, cache, data; then install ROM (which will wipe system before it installs, or manually wipe system before the ROM install for good measure).
Dirty flash = flash ROM, then wipe dalvik and cache. The only time you should do this if the ROM you're looking to flash says it can be done (ie. CM nightlies).

wipse system in TWRP

I accidentally wiped the system in TRWP and the phone won't boot, it just shows white screen with HTC logo and the red text down.
Did I just wiped my android from the phone?
I can get into bootloader and recovery. But I dont have rom in my internal storage. (because I deleted everything) How can I put rom.zip into my storage again and do the flash?
PLEASE HELP!
delete please have found an answer
JernejB2 said:
delete please have found an answer
Click to expand...
Click to collapse
Threads typically aren't deleted on XDA. If you found a solution, post it for the benefit of others that may have the same/similar issue.
In the future, you shouldn't be wiping anything, if you have no idea what it is, or what the outcome will be. It says right on the TWRP Wipe section, that the default wipe is the only one you need most of the time. And it says that for a reason. And the remaining options are also called "Advanced" for good reason.
Yes, "system" is the Android Operating System. By wiping it, you wiped the whole OS.
Recovering from this is typically done by putting a ROM on removable SD, or alternately using adb push to put a ROM on the phone. Then boot into TWRP and install the ROM.
You should also typically have TWRP backup of your current ROM, for easy recovery. Basic good practice to always have a TWRP "nandroid" backup whenever messing with the phone (root, ROMs, other mods). And there is usually not a good reason to wipe "everything" (all at the same time) and therefore also wipe your backups wherever they may be (internal storage or SD card).

Categories

Resources