[HELP] Accidentally formated SDCARD! - Nexus 4 Q&A, Help & Troubleshooting

So I rooted, then put CM10.1 nightly and gapps on my sdcard, then went to flash, and I spaced out and accidentally formatted SDCARD when i know that I shouldnt have. crap.
i tried using the "sideload" feature but it wouldnt work on my adb-mac version, i also tried adb pushing ROM files to SDCARD, it says transfered but when i go to flash it says no files in SDCARD, I also tried pushing to SDCARD/0 but i get an error that it isnt a directory since it is formatted.
SOME ONE PLEASE give me instructions on what to do. Do I have to go back to stock or can I just get this to go straight to CM10.1? Id prefer straight to CM10.1 obviously.

crackmulah said:
So I rooted, then put CM10.1 nightly and gapps on my sdcard, then went to flash, and I spaced out and accidentally formatted SDCARD when i know that I shouldnt have. crap.
i tried using the "sideload" feature but it wouldnt work on my adb-mac version, i also tried adb pushing ROM files to SDCARD, it says transfered but when i go to flash it says no files in SDCARD, I also tried pushing to SDCARD/0 but i get an error that it isnt a directory since it is formatted.
SOME ONE PLEASE give me instructions on what to do. Do I have to go back to stock or can I just get this to go straight to CM10.1? Id prefer straight to CM10.1 obviously.
Click to expand...
Click to collapse
Push cwm via fastboot then reflash the rom
Fastboot flash recovery (your recovery)
Sent from my Nexus 4

Hindsight 20/20, but it never hurts to do an adb backup, it will b/u your sdcard as well.
For the future: http://forum.xda-developers.com/showthread.php?t=1420351

mark manning said:
Push cwm via fastboot then reflash the rom
Fastboot flash recovery (your recovery)
Sent from my Nexus 4
Click to expand...
Click to collapse
did this, but still same error, no files found in sd card. i did not think this would solve it but i tried anyway...

crackmulah said:
did this, but still same error, no files found in sd card. i did not think this would solve it but i tried anyway...
Click to expand...
Click to collapse
So you've successfully flashed a recovery img via fasboot? Did you also push a copy of the ROM zip back to your phone?
Boot to recovery and then adb push the ROM to the sd card.
Code:
adb push yourROMsName.zip /sdcard/
The above code assumes you've placed the rom zip in the adb or platform-tools folder on your PC.

Can't you just boot into fastboot, flash a recovery, boot into said recovery and mount the internal storage and drag and drop the files from your computer?
How did you format the SD card when the phone doesn't have one?

jakejm79 said:
Can't you just boot into fastboot, flash a recovery, boot into said recovery and mount the internal storage and drag and drop the files from your computer?
How did you format the SD card when the phone doesn't have one?
Click to expand...
Click to collapse
The internal storage is considered an SD card.
Sent from my Nexus 4

CMNein said:
So you've successfully flashed a recovery img via fasboot? Did you also push a copy of the ROM zip back to your phone?
Boot to recovery and then adb push the ROM to the sd card.
Code:
adb push yourROMsName.zip /sdcard/
The above code assumes you've placed the rom zip in the adb or platform-tools folder on your PC.
Click to expand...
Click to collapse
yes i did repush the rom file. this isnt working because i dont believe that flashing a recovery adds folder/partition information to the sdcard. maybe im wrong, but it didnt work.

crackmulah said:
yes i did repush the rom file. this isnt working because i dont believe that flashing a recovery adds folder/partition information to the sdcard. maybe im wrong, but it didnt work.
Click to expand...
Click to collapse
Are there any spaces in the ROM zips name?

CMNein said:
Are there any spaces in the ROM zips name?
Click to expand...
Click to collapse
lol no
I am currently using Wug's Nexus Toolkit to try to flash stock from softbrick mode...will let you know how it goes
EDIT:: This is giving me some trouble as I cant turn on USB DEBUGGING (because i have no OS installed) to install the drivers and such.....
PLEASE KEEP IDEAS ROLLIN...

crackmulah said:
lol no
I am currently using Wug's Nexus Toolkit to try to flash stock from softbrick mode...will let you know how it goes
EDIT:: This is giving me some trouble as I cant turn on USB DEBUGGING (because i have no OS installed) to install the drivers and such.....
PLEASE KEEP IDEAS ROLLIN...
Click to expand...
Click to collapse
Just go back to stock
Sent from my Nexus 4

mark manning said:
Just go back to stock
Sent from my Nexus 4
Click to expand...
Click to collapse
this is what im trying to do lol...having trouble tho. what is your recommended method?

crackmulah said:
this is what im trying to do lol...having trouble tho. what is your recommended method?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2010312
Sent from my Nexus 4

You could also try wugfresh's toolkit and selecting "Back to Stock" -> "Soft-bricked".

mark manning said:
http://forum.xda-developers.com/showthread.php?t=2010312
Sent from my Nexus 4
Click to expand...
Click to collapse
ya im gonna do that if this Wug's Toolkit wont do the trick...seems to be working now tho...in middle of flashing stock

crackmulah said:
ya im gonna do that if this Wug's Toolkit wont do the trick...seems to be working now tho...in middle of flashing stock
Click to expand...
Click to collapse
You should learn how to do this without tool kits. Those things while helpful are nothing more than a crutch
Sent from my Nexus 4

mark manning said:
The internal storage is considered an SD card.
Sent from my Nexus 4
Click to expand...
Click to collapse
Yeah but doesn't the Nexus 4 lump all the internal storage together, I know other devices like the OXL have like 6GB internal storage and then a 'simulated' mSD card of about 10GB, making 16GB total. But the Nexus 4 uses the whole 16GB (or 8GB) as internal storage.

mark manning said:
You should learn how to do this without tool kits. Those things while helpful are nothing more than a crutch
Sent from my Nexus 4
Click to expand...
Click to collapse
yes definitely agreed.
although ive always wanted to try one, and it worked! if this were to happen again (if i dont shoot myself) then i will be doing it manually.
Thanks so much to everyone for all the help! I am now running Official CM10.1 Nightly (newest) and running beautifully so far. This is my second N4 tho, so I will be using my 1st stock one for today since its already setup, have to go to work now and will setup my new CM10.1 N4 later, hopefully wont find any crazy bugs...

I had the same problem and after reading this thread I tried the Fastboot method first:
after I finished it didnt boot so I continue with the inst', then it booted but only with 8GB, so I continue with the inst' and from that stage it just didnt boot.
At the end I tried the root toolkit V1.6.2 and the phone back to life with stock rom and 16GB.

I'm back to stock now. But I've used the sideload successfully. After you get your phone restored, you'll probably want to do a full factory reset because some of your pushes have probably gone through and are now eating up space. You can't delete them that I know of unless you FULLY format.
ANYWAY
When I got sideload to work, I had to push it to /sdcard/0/, /sdcard0/, or something like that. Wish I could be more specific, but I don't want to change from stock to install cwm (the ROMS have too many bugs so far, and we might be getting 4.2.2)
The key is finding the right directory to push it to. Experiment with slashes, and it SHOULD work.

Related

[Q] [SOLVED] [BRICKED] HELP PLEASE!!! i am stuck in Bootloader/Recovery mode

I am stuck in Bootloader/Recovery mode, i was installing another Room (Android 4.2.1 Linaro ) , and fallowing the instructions like i usually do,
when i stupidly formated the SD card with the ROM in it, ... i did that because the many Rom installations was giving me troubles , always adding one more layer in the SD card , the last time i opened the file explorer, the Root was like SD CARD/0/0/0/0/0/0/files of the system, so i end up erasing the SD Card on the recovery menu .
Now i cant push the ZIP files to the root of the card , because i cant use the debugging function to connect Nexus 7 toolkit , what are my options ?
Any one as a suggestion that can spare ? i would be much obliged, tank you
escalhavardo said:
I am stuck in Bootloader/Recovery mode, i was installing another Room (Android 4.2.1 Linaro ) , and fallowing the instructions like i usually do,
when i stupidly formated the SD card with the ROM in it, ... i did that because the many Rom installations was giving me troubles , always adding one more layer in the SD card , the last time i opened the file explorer, the Root was like SD CARD/0/0/0/0/0/0/files of the system, so i end up erasing the SD Card on the recovery menu .
Now i cant push the ZIP files to the root of the card , because i cant use the debugging function to connect Nexus 7 toolkit , what are my options ?
Any one as a suggestion that can spare ? i would be much obliged, tank you
Click to expand...
Click to collapse
You can use adb while you are in recovery.
Sent from my Nexus 7
Stop... MUFFIN TIME!!!
veeman said:
You can use adb while you are in recovery.
Click to expand...
Click to collapse
To use ADB, its suppose to be in debugging mode, right ? at least thats what i read ...
escalhavardo said:
To use ADB, its suppose to be in debugging mode, right ? at least thats what i read ...
Click to expand...
Click to collapse
No, not while in recovery.
Put the zip where you keep your adb, own a command prompt, change directories to your Android SDK, then type :
adb push nameofrom.zip /sdcard
- Sent from my US Cellular SGS3
RMarkwald said:
No, not while in recovery.
Put the zip where you keep your adb, own a command prompt, change directories to your Android SDK, then type :
adb push nameofrom.zip /sdcard
- Sent from my US Cellular SGS3
Click to expand...
Click to collapse
I already done that , but now when i go to CHOSE ZIP FROM SD CARD, it says No files found , but in the command line it´s said that it went .... so, what now ?
Are you using version 6.0.1.9 of ClockworkMod Recovery or the latest TWRP Recovery?
If not, flash the latest version via fastboot command from the bootloader.
- Sent from my US Cellular SGS3
RMarkwald said:
Are you using version 6.0.1.9 of ClockworkMod Recovery or the latest TWRP Recovery?
If not, flash the latest version via fastboot command from the bootloader.
Click to expand...
Click to collapse
I have flashed the version 6.0.1.9 like you said it , but the problem still persists, when i go to "CHOSE ZIP FROM SD CARD", it says "No files found"
the files are getting trough to the /sdcard directory ...
does the " /sdcard/update.zip" option have something to do with it ? cause , this option i can select, but not the " ZIP FROM SD CARD" option ...
escalhavardo said:
I have flashed the version 6.0.1.9 like you said it , but the problem still persists, when i go to "CHOSE ZIP FROM SD CARD", it says "No files found"
the files are getting trough to the /sdcard directory ...
Click to expand...
Click to collapse
Try TWRP.
Sent from my Nexus 7
Stop... MUFFIN TIME!!!
veeman said:
Try TWRP.
Sent from my Nexus 7
Stop... MUFFIN TIME!!!
Click to expand...
Click to collapse
i end up trying the sideload option ... it went sweet !
THANK´s very much to you guys !!
Don´t have words that can demonstrate my gratitude ... :laugh:

[Q] Nexus 4 No OS. Only fastboot [SOLVED]

I recently tried to flash PA on my nexus.
Installed cwm on my phone. Then downloaded the PA ROM and moved to the device storage.
Rebooted into CWM and performed all the wipes.
I accidentally wiped the system and the internel partitions too.
when i tried to install ROM from sdcard. it says "NO FILES FOUND"
Iam stuck here. Phone wont boot into Android... any suggestions? please help!
How did you wipe system within CWM?
But since you say you wiped internal partitions too, it seems to me that you wiped your internal emulated sdcard... so I think your only option now is to flash stock images again... Read this: http://forum.xda-developers.com/showthread.php?t=2010312
If you don't want to flash the stock images you can also push a rom to your phone with adb while booted in a custom recovery
adb push nameofrom.zip /sdcard/
Thanks guys. Found a solution.
Flashed TWRP and sideloaded the ROM file. And flashed it.
Earlier the same process with CWM was not successful. Now the phone is loaded with PA ROM!
Thanks guys! and can u point me to the google stock images??
njarun said:
Thanks guys! and can u point me to the google stock images??
Click to expand...
Click to collapse
Glad you solved it
Here are the stock OTA and images from google and mirrored http://forum.xda-developers.com/showthread.php?t=1971169
My dad said he knew how to fix this, and wiped my system, thats all, and now I can't boot. Any help on this?
mrjoeltan said:
My dad said he knew how to fix this, and wiped my system, thats all, and now I can't boot. Any help on this?
Click to expand...
Click to collapse
wiped /system? have you tried simple re-flashing your ROM from the .zip ?
no worry... download the nexus 4 twrp latest img from their site, and flash it to your N4
what you needed:
twrp img file
some n4 rom
adb and fastboot
instructions:
boot to fastboot, vol key down + powerbutton when n4 is off.
on your comp, , dos/terminal - fastboot flash recovery twrp.img
reboot in recovery
select the adb side load from advanced tab in the twrp.
on your comp - adb sideload rom.zip
everything done....reboot phone.
Sent from my Nexus 4 using xda premium
I have a same problem, but when i try to flash a Rom, it`s fail and said that no partition, how can i fix it? Thanks for read.
blackcatvn said:
I have a same problem, but when i try to flash a Rom, it`s fail and said that no partition, how can i fix it? Thanks for read.
Click to expand...
Click to collapse
did you wipe using fastboot erase command? if so, you need to re-format to the android supported file system to access the partitions!
try installing the twrp recovery and perform 'FORMAT DATA' from wipe. then install ROM.
N4 no OS.
njarun said:
I recently tried to flash PA on my nexus.
Installed cwm on my phone. Then downloaded the PA ROM and moved to the device storage.
Rebooted into CWM and performed all the wipes.
I accidentally wiped the system and the internel partitions too.
when i tried to install ROM from sdcard. it says "NO FILES FOUND"
Iam stuck here. Phone wont boot into Android... any suggestions? please help!
Click to expand...
Click to collapse
I need help, having the same problem you had with my N4. Cant seem to fix it. I had PA 3.69 for 3 weeks when I rebooted my N4 i had no OS on the phone. Just my Bootloader and Twrp 2500 was recently 2600 but cant do anything else. ADB works seems to fail when writing to N4. Im trying to get it back to stock. Any Ideas
Axel
Axelben said:
I need help, having the same problem you had with my N4. Cant seem to fix it. I had PA 3.69 for 3 weeks when I rebooted my N4 i had no OS on the phone. Just my Bootloader and Twrp 2500 was recently 2600 but cant do anything else. ADB works seems to fail when writing to N4. Im trying to get it back to stock. Any Ideas
Axel
Click to expand...
Click to collapse
can u get into recovery? did u check changing your USB Cable? The original nexus usb cable sucks, try another one. If you can access the fastboot/adb then it will be pretty simple..
Same problem but...
Hi, I'm having the same problem with my Nexus 4 and I have TWRP V 2.6.3.0 but I'm not sure how to push any rom to my phone because it's not showing up under my computer in Windows. How do I push roms to my Nexus 4? I'm stuck at the Google boot screen when I try to boot (Flashed Dalvik Cache, System, Data, Internal Storage, and normal cache) and I of course don't have any roms on my phone after I wiped all of the partitons. Help me plz
El Daddy said:
If you don't want to flash the stock images you can also push a rom to your phone with adb while booted in a custom recovery
adb push nameofrom.zip /sdcard/
Click to expand...
Click to collapse
Got it working
Hi, I got it to work. No worries guys
xXDustinoXx said:
Hi, I'm having the same problem with my Nexus 4 and I have TWRP V 2.6.3.0 but I'm not sure how to push any rom to my phone because it's not showing up under my computer in Windows. How do I push roms to my Nexus 4? I'm stuck at the Google boot screen when I try to boot (Flashed Dalvik Cache, System, Data, Internal Storage, and normal cache) and I of course don't have any roms on my phone after I wiped all of the partitons. Help me plz
Click to expand...
Click to collapse
njarun said:
can u get into recovery? did u check changing your USB Cable? The original nexus usb cable sucks, try another one. If you can access the fastboot/adb then it will be pretty simple..
Click to expand...
Click to collapse
i cannot get the thing to work this bloody adb command does not seems to work on my Windows 8.1
Can u please give a detailed intruction as i have my file in D Drive so where to keep this zip file
nickboy360 said:
i cannot get the thing to work this bloody adb command does not seems to work on my Windows 8.1
Can u please give a detailed intruction as i have my file in D Drive so where to keep this zip file
Click to expand...
Click to collapse
you got it working? else pm me your mail id. ill send you the necessary files and detailed info, I once composed it for one of my friend!
njarun said:
you got it working? else pm me your mail id. ill send you the necessary files and detailed info, I once composed it for one of my friend!
Click to expand...
Click to collapse
Thanks for asking mate i got it done... :good:

[Q] No ROM on sd card

I accidentally wiped my sd card and system, data and cache in recovery and I can't install any ROMs because there are none. Since the N4 doesn't have an SD slot i can't even copy a rom zip to that and install it. How do I load ROM files with a Mac? I have a Mac so please take that into consideration. Thanks!
http://forum.xda-developers.com/showthread.php?t=2010312
Sent from my Nexus 4 using xda premium
tykate said:
I accidentally wiped my sd card and system, data and cache in recovery and I can't install any ROMs because there are none. Since the N4 doesn't have an SD slot i can't even copy a rom zip to that and install it. How do I load ROM files with a Mac? I have a Mac so please take that into consideration. Thanks!
Click to expand...
Click to collapse
If you have access to fastboot follow the instructions in the [HOW-TO] How to flash a factory image / return to stock / unlock / root thread.
Essentially you'll be flashing a factory image. Again, as long as your bootloader is intact (fastboot mode) you'll be able to restore the device.
tykate said:
I accidentally wiped my sd card and system, data and cache in recovery and I can't install any ROMs because there are none. Since the N4 doesn't have an SD slot i can't even copy a rom zip to that and install it. How do I load ROM files with a Mac? I have a Mac so please take that into consideration. Thanks!
Click to expand...
Click to collapse
If youve got access to fastboot , flash a custom recovery that supports sideload. You'll use adb to push the zip to recovery and it'll flash it. I was in your position a few hours ago hahaha
Sent from my Nexus 4 using xda premium
comminus said:
Again, as long as your bootloader is intact (fastboot mode) you'll be able to restore the device.
Click to expand...
Click to collapse
Thanks for the help! What do you mean by bootloader is intact? How can it get broken?
I used the nexus toolkit to flash factory image. That made it nice and easy (after I fought with stupid Windows 8 driver problems for an hour :banghead: ).
Sent from an N4 blessed with AOKP and sanctified by Faux123!
It worked, thanks! I'M NOT FLASHING A CUSTOM ROM IN A LOOOOOOOOONG TIME

[Q] help stuck in recovery can't mount internal drive to flash

Rooted and installed twerp 2.6 wiped download files to copy over and flash, but will not mount internal storage tried 2 different systems. stays stuck at updating partion details.
raven.warsong said:
Rooted and installed twerp 2.6 wiped download files to copy over and flash, but will not mount internal storage tried 2 different systems. stays stuck at updating partion details.
Click to expand...
Click to collapse
Do you have adb + the drivers installed? If not, do so now and then adb push the files to the phone. adb will work even if you're in recovery. Should be plenty of write ups on the forum about how to install and set up the required stuff.
is been a long time since I pushed files useing adb Im sure it will come back to me. Should I change to clockworks to avoid this in the future? Why is it not mounting
raven.warsong said:
is been a long time since I pushed files useing adb Im sure it will come back to me. Should I change to clockworks to avoid this in the future? Why is it not mounting
Click to expand...
Click to collapse
It can't be on the Nexus 4. If you don't have the files on your phone it's your only option at this point.
Edit: CWM vs TWRP wouldn't make a difference in this case.
CMNein said:
It can't be on the Nexus 4. If you don't have the files on your phone it's your only option at this point.
Edit: CWM vs TWRP wouldn't make a difference in this case.
Click to expand...
Click to collapse
I pushed the files over and im going to flash now. so i guess the nexus 4 dose not support usb mode so I will all ways need to push with adb? I gess thats the part I still dont understand. I like being able to mount it as a drive in recovery is this supported? if not great. If it is how to I trouble shoot it?
raven.warsong said:
I pushed the files over and im going to flash now. so i guess the nexus 4 dose not support usb mode so I will all ways need to push with adb? I gess thats the part I still dont understand. I like being able to mount it as a drive in recovery is this supported? if not great. If it is how to I trouble shoot it?
Click to expand...
Click to collapse
You cant mount it as USB storage in recovery mode. I normally download the new ROM I want to flash before going into recovery so that I don't have to use adb to push it.
chromium96 said:
You cant mount it as USB storage in recovery mode. I normally download the new ROM I want to flash before going into recovery so that I don't have to use adb to push it.
Click to expand...
Click to collapse
ok thanks I will reflash recovery or start there as long as I know it can be done thats all that matters.

Wiped internal Storage... HELP :(

When i was trying to flash Chroma for nexus 6p, i accidently wiped my internal storage. I wasnt thinking and clicked everything in TWRP to wipe and now when i plug in my phone to my computer all i see is internal storage but no space specifics and i cant copy the chroma rom over. What do i do?
I also lost all my backups because of the wipe. Can someone help me please ?
LifeOfNexus said:
When i was trying to flash Chroma for nexus 6p, i accidently wiped my internal storage. I wasnt thinking and clicked everything in TWRP to wipe and now when i plug in my phone to my computer all i see is internal storage but no space specifics and i cant copy the chroma rom over. What do i do?
I also lost all my backups because of the wipe. Can someone help me please ?
Click to expand...
Click to collapse
Can you still boot in to TWRP or do you get stock recovery? I'm not sure why you can't copy Chroma over but if you can still boot in to TWRP it allows you to mount USB storage. I haven't tried this option myself but you may be able to flash Chroma from an external storage device. You can also boot in to bootloader and follow Heisenberg's guide listed in the index and fastboot the stock images which is probably your best bet.
What happens when you try to move the file over? Have you tried to adb push the file over like so:
Code:
adb push [I]file_location_on_computer[/I] /sdcard
nathanchance said:
What happens when you try to move the file over? Have you tried to adb push the file over like so:
Code:
adb push [I]file_location_on_computer[/I] /sdcard
Click to expand...
Click to collapse
do u have teamviewer by any chance
LifeOfNexus said:
do u have teamviewer by any chance
Click to expand...
Click to collapse
I do not and I prefer to keep stuff in the forum so that everyone can benefit from this
Additionally, if you can't push the Chroma file to your phone, you can flash back to stock using Heisenberg's guide here (step 11) then do step 7 to install Chroma.
nathanchance said:
I do not and I prefer to keep stuff in the forum so that everyone can benefit from this
Click to expand...
Click to collapse
because i could not get it to work
LifeOfNexus said:
because i could not get it to work
Click to expand...
Click to collapse
So what exactly happens when you try to either copy or push the file over to the phone? Does it error out? Gonna need some more information. And I edited my previous post to include some instructions to get back to stock with fastboot if that is easier for you.
nathanchance said:
So what exactly happens when you try to either copy or push the file over to the phone? Does it error out? Gonna need some more information. And I edited my previous post to include some instructions to get back to stock with fastboot if that is easier for you.
Click to expand...
Click to collapse
i actualyl started that. Im almost done oging back to stock. Does that mean i need to reflash TWRP?
LifeOfNexus said:
i actualyl started that. Im almost done oging back to stock. Does that mean i need to reflash TWRP?
Click to expand...
Click to collapse
If you flash the stock recovery image, you will need to reflash TWRP. I usually just omit that command when flashing back to stock so I don't have to reflash TWRP.

Categories

Resources