ADB Device with no ROM - Android Q&A, Help & Troubleshooting

Ok so Im just expiramenting with a Atrix 4g and ADB to get a little more versed with it and discovered that the rom I flashed is incomplete so it obviously wont boot however I have access to CWM and the device is unlocked. Now this would be so much simpler if I just had a SD card but seeing as I dont there is no way for me to mount sd card... Im just trying to figure out the directory in which I need to push my ROM.zip file so that I can see it in CWM. Right now I have successfully pushed it into my /data/ROM.zip however I cannot access that directory through CWM. Using the ls /DIR/ command I did some delving to see if I can find the root directory that CWM explores but I cant seem to find any of the files that I know exist or directories...

Related

Need help flashing ROM

I've followed the post by xboarder56. My phone has an unlocked bootloader and is rooted. I did not receive any errors when running the command: Fastboot flash boot [boot.img path]. I attempted to use QuikSense and BeastMod. I am using windows, but have access to linux if necessary (would prefer to finish this in windows though).
I believe the problem might be that I do not have an sdcard. Also, I did not see any directions relating to copying files TO the phone, and as such did not. Does loading the boot.img load these files onto the phone or is this something that I need to be doing (also, how do you do that? Guessing I will need linux for that since I don't have an sdcard and will need to write to the device while windows can't read it).
You need a SD card, but xboarder is working on a recovery that doesn't require one
Sent from my HTC Amaze 4G using XDA App
I thought it might be as much. I ordered an sdcard and it should be here tomorrow. Do I need to perform any additional steps (such as copying files somewhere) or are the steps I am already performing going to be enough?
xboarder said the new recovery works with internal memory as well so shouldn't be a card problem
So I got my SD card and copied all the files to the root of it and performed the flash again. Still nothing. Where should I be copying the files to?
Valde_Edius said:
So I got my SD card and copied all the files to the root of it and performed the flash again. Still nothing. Where should I be copying the files to?
Click to expand...
Click to collapse
Let's backtrack.
What recovery do you have currently?
Stock, xboarders recovery (identifiable with the X in the background) or the CWM Recovery?
What files did you put and where did you put them?
Name the files you downloaded them and where you put them (external sdcard, internal sdcard, in a folder, etc)
Are you able to flash anything?
Did you format your sdcard from the phone?
So yeah... answer those for us please.
If the files are on the root of your INTERNAL SDCARD then you need xboarder's recovery.
If the files are on the root of your EXTERNAL SDCARD then you need the standard clockwork recovery (download from ROM Manager)

I may have bricked, NEED HELP!

So I htcdev unlocked. install amon ra, then I used nanbackup, then i install RezROM ICS
now i need to restore
and according to this post
http://forum.xda-developers.com/showthread.php?t=1447432
I need to flash the original PH98IMG.zip from the bootloader. I however don't know how to get PH98IMG.zip on my internal sdcard. I dont have access to android. or and sdcard adapter
so how can i do this
is there an adb command perhaps that will allow my to push the PH98IMG.zip to internal storage... Please help
boot into recovery. you can copy that to the sd card while it is in recoery
in recovery connect your phone to the computer and put the original PH91IMG.ZIP in the same folder as your adb.exe then run "adb push ph91img.zip /sdcard2/" without quotes. im not 100% sure of if thats it but if not just ask and ill test it till i figure it out still somewhat a noob haha
Also, correct me if I'm wrong, but will the phone read from the internal SD? I thought it only looked on external?
You are correct, you'll want to make sure that it's on the external sdcard (sdcard2).
I usually use either amon ra to mount the external sd card to Windows, or use adb to push. I usually find adb push to be my method of choice.
Also, I've found sometimes that when using the adb push command, you may need to first mount the external sd card in the mount menu in amon ra. For the sake of ease, I recommend just turning on use mass storage on the external card through amon ra.

[Q] Deleted ext sd card directory

While using WiFi Explorer to attempt to delete a file from my external sdcard I seem to have deleted the whole external sdcard directory on my stock Rezound. I have tried factory reset, but that doesn't add the missing directory back. As it is now my external card won't mount. I'm sure that there used to be a directory called ext-sdcard or something similar, but there isn't anymore.
If someone could please give me a very detailed walk-through of how to fix this, I would be very grateful. I'm 65+, not too terribly up on this stuff, but I am pretty good at following exact directions to copy and paste when it comes to rooting, etc.
Thanks in advance.
Can't say that I have been in that situation, so I'm not really sure what you deleted. If you just deleted the shortcut, then your data might still be there. Just so we're on the same page, do you have ES File Explorer installed? If not, can you download it from the Market?
Once you launch it. It should take you to the Internal sdcard. Do you see any folders or files? Look for "ext_sd". Might be wrong, but I believe that is just a shortcut to your External sdcard, not your actual card. If that folder is not there, hit the menu button, select New, folder, and name it... ext_sd
If that doesn't work or you do not care about the data on your cards, you could always try reformatting the sdcards. (Just be warned. If you do that, you WILL lose any data that might on the cards, such as pictures.) It should be on the same settings menu as the factory wipe was. First try "Erased SD card". If it is greyed out, select "Unmount SD card" first. If you still can't access the card, try erasing phone storage. Once reformatted, it may reload your ext sd card mapping.
I had a similar problem, since there is /sdcard and /sdcard2 in the root (top-level) directory I figured those were the actual mount points and /mnt/sdcard and /mnt/sdcard/ext_sd were symlinks. It turns out it's the exact opposite so I essentially deleted about 25GB worth of stuff I had on there.
Essentially you need to recreate the directory either from a file brower with root access (such as es file manager) or from the command line.
Run this command via either adb shell or a shell/terminal on your phone when you have root access: mkdir /mnt/sdcard/ext_sd
The mount command shows where it's mount point actually is. Like said above it is in /mnt/sdcard/ext_sd
/dev/block/vold/179:65 /mnt/sdcard/ext_sd vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0202,dmask=0202,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
"Incorrect syntax" now
brando56894 said:
Essentially you need to recreate the directory either from a file brower with root access (such as es file manager) or from the command line.
Run this command via either adb shell or a shell/terminal on your phone when you have root access: mkdir /mnt/sdcard/ext_sd
Click to expand...
Click to collapse
I really appreciate the help. OK, I unlocked it, got root and tried to run the command "mkdir /mnt/sdcard/ext_sd" (without the quotes) with adb. The message I received back was "The syntax of the command was incorrect".
Hopefully I am a lot closer than I was.
If you don't mind, can I make a suggestion? Have you ran the latest .22 leaked RUU or any updates prior to this? Maybe look into Cleanrom 4.2(if you flashed the leak) or Cleanrom 1.7.5(if no leak). May be worth your time and patience to do this instead, as time is money.
Got it working - Thanks everyone
Prize goes to the suggestion of installing the leaked 4.0 Took me all day to figure out how to use adb, (it's hell to get old, kids), but finally all the stars were aligned and voilla. ICS kicks butt! Tomorrow I will see if I can remember how to unlock this thing again and install CleanRom. Again, thanks to all the helpful and friendly folks out there.
Glad you got it fixed!

[Q] Aw Carp, someone else needs help!

Sorry, I know there's a million threads on xda for people requesting help so I hope someone can help me.
I don't know why but my phone won't mount it's storage. When I try to flash a .zip through CWM, the phone just states it can't mount /sdcard/. When I power the phone on, and I plug it into my PC, the PC says it doesn't recognize the device. Trying to boot the phone into RSD mode makes it semi-recognizable, but is only recognized as a composite device, and I am nervous about flashing back to stock. I haven't tried fastboot and the only time I mess with it is to unlock my photon again.
If anyone has some sage advice, I would be more than grateful for it. Thank you!
What rom are you running? and were you able to mount before a possible flash or update? need more info first before assistance can be given
Oh sorry, I forgot! I'm Running MIUI build MIUI.us_sunfire_v4_2.3.30. and I was able to mount without any incident at all. In fact, I didn't even notice it until just recently, because post-flash of MIUI I was still able to use my usb storage without a hitch. And I was able to flash before.
ok so are you referring to the internal sd/external/both? if external try testing the card in a stand alone reader to see if it could possibly be corrupt
The SD card is definitely okay, and I experience the issue with the SD card in the phone and out. In fact, I don't usually have one in my Photon because of the internal storage.
so external sd then? are you able to see the internal sd? if so try flashing a nandroid back up through the internal and see if you regain connectivity
Hey, I hadn't, unfortunately, had more time to troubleshoot my phone. But I basically was unable to restore from a backup because it was saying /sdcard directory does not exist. I was, strangely enough, able to reinstall the drivers from my PC and RSD back to stock 198_6. However, I still get an error message that my device has malfunctioned when I plug into PC, and just to test, trying to do an "apply update.zip via sd card" in the stock recovery 3e just gives me the same message.../sdcard directory does not exist.
Zimmle said:
Hey, I hadn't, unfortunately, had more time to troubleshoot my phone. But I basically was unable to restore from a backup because it was saying /sdcard directory does not exist. I was, strangely enough, able to reinstall the drivers from my PC and RSD back to stock 198_6. However, I still get an error message that my device has malfunctioned when I plug into PC, and just to test, trying to do an "apply update.zip via sd card" in the stock recovery 3e just gives me the same message.../sdcard directory does not exist.
Click to expand...
Click to collapse
Sorry if this is too obvious a question but does the /sdcard directory exist? Can you navigate to it with a file explorer and open it? Does it look like the structure is intact?
CCallahan said:
Sorry if this is too obvious a question but does the /sdcard directory exist? Can you navigate to it with a file explorer and open it? Does it look like the structure is intact?
Click to expand...
Click to collapse
Ah, as strangely enough, I can. I can even navigate to /mnt/sdcard and /mnt/sdcard-ext. So there's a /sdcard directory and the previous two. in the /mnt directory there are /usbdisk1.0-7 files as well. Not sure if that helps, though...
Woo! Information bump! So I've been fiddling with my photon and from what I can tell, I get the same issue on 3 PCs(2 at home and 1 at work) where windows states the device has malfunctioned. I don't think it's a driver issue because it's happened multiple times on different PCs, and I know one of them definitely works.. I can definitely navigate to the /sdcard but my PC and phone recovery won't find it. Is there a way I can force the phone to mount it via fastboot? I will literally do ANYTHING to get my phone's internal storage to be read and any help would be mega appreciated!
Weren't people having issues when downgrading from a 198_7 base rom to stock 198_6. You have done a lot of fiddling around that you may have done something by accident and not have even noticed. Btw I believe anything ics based has to have 198_7 as the phones primary. Could be wrong.
That could have been the start of your problem from the beginning
just want to throw in my two cents. when I was haveing a problem with usb I couldnt mount it in cwm. Once i switched to twrp recovery i was able to mount just fine.
To everyone in this thread, THANK YOU! You guys are what make the xda community awesome. And apparently, I got it all figured out. Not sure what I did, but now the computer is recognizing the phone and so are all my other computers.
Still eternally grateful, though, to everyone in this thread.

EE:Can't mount /sdcard when in Recovery v5.8.3.4 or boots into CM10 & hangs...

Hello All,
I can see my files are all there (on the external sd card located permanently inside the TF201) when look via the pc but recovery doesn't seem to be able to mount the internal sdcard so I cannot get at the zip files I put on the internal sdcard to flash from recovery.
I was running a very happy TF201 running Virtuous Prime until I decided to change a font a few days ago. That was a bad move. On reboot everything was stuck on the intro splash screen. I managed to get into recovery & somehow managed to get my new rom (CM10 ish) flashed & i thought all was well until I realised that in all the 'heat of battle' the usual wipe re wipe/wipe dalvick/reset privileges routine had been omitted from my routine. Worse still I had flashed the rom but not yet flashed the Jelly Bean GAPPS.
So the system was still hanging at the splash screen (although this time at least it was the CM10 splash screen (progress is so sweet) but now, just when I thought it couldn't get any worse, when I go into recovery to apply a zip from an sdcard I get told that E:Can't mount /sdcard/ so I cant get at my file to flash!
I'm 3 days into this now & I am definitely loosing the plot so please please give me a nudge in the right direction .A have adb up & running & have just fastbooted a new recovery img over onto the prime because I read that this might sort my problem. Well, it didn't so here I am. Please assume I am a noob 1st class although I may surprise you with some of my knowledge that I've picked up over the last few days & years working in systems (though not Android) so maybe I wont!
Get this sorted with me & I'll be forever in your debt. Please let me know what other information you may need to give me a push in the right direction. Thanks for reading this & thanks for deciding to help me hang on to that thread of sanity that is left.
I have also asked for help on TransformerForums; because I'm new to this site I cannot provide you with the link. Sorry.
correct me if i got this wrong; so you are able to get into CWM und you see your device via
Code:
adb devices
right?
now can you push files via
Code:
adb push
to your device?
If so we had the exact same problem don't worry theres a fix for this:
first if you're in adb type:
Code:
adb shell
now you should see this "#" somewhere in front of your command line
type
Code:
ls
now it should show you the folders on your device, try to navigate to the directory /data/media via
Code:
cd /data/media/
now push the rom you want to flash in this directory, for example:
Code:
adb push ROM.zip /data/media/ROM.zip
the rom should be in the same folder as your adb.exe
essentially /data/media is your internal storage so you should now be able to flash the rom of your choice.
I hope i could help because I had almost exactly the same problem and was about to go crazy until i found this solution
success...
s0undless said:
correct me if i got this wrong; so you are able to get into CWM und you see your device via
Code:
adb devices
right?
now can you push files via
Code:
adb push
to your device?
If so we had the exact same problem don't worry theres a fix for this:
first if you're in adb type:
Code:
adb shell
now you should see this "#" somewhere in front of your command line
type
Code:
ls
now it should show you the folders on your device, try to navigate to the directory /data/media via
Code:
cd /data/media/
now push the rom you want to flash in this directory, for example:
Code:
adb push ROM.zip /data/media/ROM.zip
the rom should be in the same folder as your adb.exe
essentially /data/media is your internal storage so you should now be able to flash the rom of your choice.
I hope i could help because I had almost exactly the same problem and was about to go crazy until i found this solution
Click to expand...
Click to collapse
This has sorted the problem. Thank you very much for this. Could you please tell me the significance of the 'ls' line?
I followed your instruction which resulted in my being able to flash a ROM which still hung at the intro flash screen. Since I could now see the internal file system was mounting (& accessible) I decided to attempt to replace the recovery package with TWRP which is absolutely fantastic; you are able to access both internal & external sdcards + there's a very intuitive 'touch' UI.
I was beginning to wonder if I was going to get out of this one, but, thanks to you all is well.
ls is just to ensure you are in the right directory. the next time your rom is stuck at the boot screen try to give it some more time if this doesn't work wipe the dalvik and cache via recovery and it should be able to boot if flashing was successful. and yes you are absolutly right TWRP is waaay better than CWM. Glad I was able to help you get this sorted.
Enjoy your Weekend
soundless
No dice
I have same issue as user above. I connect my TF201 to my computer and I get Driver issues saying This device cannot start. (Code 10). I did everything restared computer, deleted drivers scan hardware changes reinstalled drivers, and everything. I can't get the adb working. I keep scanning and it says there isn't any devices.
I had a bad ROM flash and my TF201 will no longer boot. I can get it into the CWM v5.8.3.4 but it will not read my SD card. I tried 3 SD cards and none of them will read. I formatted them FAT32 from what I read and even tried FAT and NTFS just to see if that made a difference and that didn't work. WHen I click to install zip from sdcard it points to my internal storage. I created a backup but again just my luck the first time while reading on ways to fix the issue I ended up in the Asus fastboot load screen and being use to the CWM commands I hit volume down (moved cursor to the left hovering over wipe data) and hit volume up thinking it would go back to the USB symbol but that wiped all the data off the device.
I restared and booted back into CWM and selected install zip from SD card now nothing shows up since it no longer reads any internal data (accidently deleted) and it doesn't read my SD card.
So, at this point I feel I'm out of ideas. ADB doesn't work to try transfering a file directly to the device and CWM doesn't read SDcards so I can't flash a new ROM on the device to get it working again.
Any help would be much appreciated.
Why is CWM still used !!!!!
All recent bricks I've seen here were CWM related!!
See here: http://forum.xda-developers.com/showthread.php?t=1841001 second post for replacing cwm by twrp.
Just had this issue with the bad cm10 rom. TWRP saved the day!
---------- Post added at 02:04 PM ---------- Previous post was at 02:02 PM ----------
Crezabek said:
I have same issue as user above. I connect my TF201 to my computer and I get Driver issues saying This device cannot start. (Code 10). I did everything restared computer, deleted drivers scan hardware changes reinstalled drivers, and everything. I can't get the adb working. I keep scanning and it says there isn't any devices.
I had a bad ROM flash and my TF201 will no longer boot. I can get it into the CWM v5.8.3.4 but it will not read my SD card. I tried 3 SD cards and none of them will read. I formatted them FAT32 from what I read and even tried FAT and NTFS just to see if that made a difference and that didn't work. WHen I click to install zip from sdcard it points to my internal storage. I created a backup but again just my luck the first time while reading on ways to fix the issue I ended up in the Asus fastboot load screen and being use to the CWM commands I hit volume down (moved cursor to the left hovering over wipe data) and hit volume up thinking it would go back to the USB symbol but that wiped all the data off the device.
I restared and booted back into CWM and selected install zip from SD card now nothing shows up since it no longer reads any internal data (accidently deleted) and it doesn't read my SD card.
So, at this point I feel I'm out of ideas. ADB doesn't work to try transfering a file directly to the device and CWM doesn't read SDcards so I can't flash a new ROM on the device to get it working again.
Any help would be much appreciated.
Click to expand...
Click to collapse
Use Fastboot and flash TWRP Recovery. CWM still cannot use external sd cards! There are simple instructions on their website.
TWRP will give you the option to install from either the internal sd card or external sd card. I've found it to be a better bet all round than clockwork mod recovery. It uses a touch interface which saves more time than you'd imagine. Just one tip; occasionally the contents of the external sd card don't show. If that happens, just reboot into recovery (again) & everything will be as it should be. Hope this helps.!...
Sent from my GT-I9100 using xda premium
Crezabek said:
I have same issue as user above. I connect my TF201 to my computer and I get Driver issues saying This device cannot start. (Code 10). I did everything restared computer, deleted drivers scan hardware changes reinstalled drivers, and everything. I can't get the adb working. I keep scanning and it says there isn't any devices.
I had a bad ROM flash and my TF201 will no longer boot. I can get it into the CWM v5.8.3.4 but it will not read my SD card. I tried 3 SD cards and none of them will read. I formatted them FAT32 from what I read and even tried FAT and NTFS just to see if that made a difference and that didn't work. WHen I click to install zip from sdcard it points to my internal storage. I created a backup but again just my luck the first time while reading on ways to fix the issue I ended up in the Asus fastboot load screen and being use to the CWM commands I hit volume down (moved cursor to the left hovering over wipe data) and hit volume up thinking it would go back to the USB symbol but that wiped all the data off the device.
I restared and booted back into CWM and selected install zip from SD card now nothing shows up since it no longer reads any internal data (accidently deleted) and it doesn't read my SD card.
So, at this point I feel I'm out of ideas. ADB doesn't work to try transfering a file directly to the device and CWM doesn't read SDcards so I can't flash a new ROM on the device to get it working again.
Any help would be much appreciated.
Click to expand...
Click to collapse
Did updating recovery sort this out? If not, shout & I may be able to help.
Some people act this way: come to ask for help, and never come back...
Hi all,
I was using latest Revolver and gave a try on CM10 Beta4
I can open a adb shell but could not execute adb push file /dir propertly
EE:Can't mount /sdcard
damn!
wish restore my Revolver4 backup :good:
rafael_mfr said:
Hi all,
I was using latest Revolver and gave a try on CM10 Beta4
I can open a adb shell but could not execute adb push file /dir propertly
EE:Can't mount /sdcard
damn!
wish restore my Revolver4 backup :good:
Click to expand...
Click to collapse
push it to /data/media
sent from my i9250
bk201doesntexist said:
push it to /data/media
sent from my i9250
Click to expand...
Click to collapse
I tried to push it already, but I can't as mentioned before.
ADB recognizes my device, open 'adb shell' but push command don't work.
push file.zip /data/media/file.zip
*file is on the same folder as adb.exe
EDIT: Resolved using EasyFlasher Tool. As described on this post.

Categories

Resources