[Q] USB Brick And No Rom Access - G2 and Desire Z Q&A, Help & Troubleshooting

Hey Guys,
I've inherited a G2 from a good friend of mine, but it seems that USB access is bricked on the device. I'm unable to mount the SDCard through CWM which makes it unable to flash any rom.
Also, looks like he formatted the OS as I'm unable to boot up CM7 on the phone as it just sits at the HTC screen forever. I can access the device in Fastboot and ADB just fine however.
When I ran the 2 commands:
fastboot oem enableqxdm 0 (unblock your sd-card)
fastboot oem eraseconfig (fix misc partition)
I'm able to read and write files to the SDCard in ADB, but CWM is still unable to mount the SDCard. Anyone have any ideas on how to get the SDCard to read on this guy? It's currently S-OFF on HBOOT 0.84.2000.
Thanks!

Try pushing a zip file with adb push?

Can you see the external storage in your PC (even if it's not accessable) ?
Any kind of error messages while you trying to mount it?
Check the device tab in your PC, if the system have proper drivers for the device.
I guess you know following, but for the record:
If ADB works, use this:
adb push filename.zip /sdcard/filename.zip ......... (rename "filename.zip" twice to the proper name of your zip file)
If not, try to reflash the recorvery via:
fastboot flash recovery recovery.img ........... (unrar the archive first to get IMG file)
Turn device off, remove battery, put battery back, hold trackpad, push power btn. Choose recorvery -> u're back in CWM.
Or maybe ony the SD card have corrupted FAT table / unknown format for OS.
Try to remove the card from phone and connect it to PC via some kind of card reader, or another phone which can connect card as mass storage. Reformat the card to FAT32 (sometimes erase only does not help, so untick quick format and do it again).

Easy way to mount SD card in custom Recovery
ChristmasGT said:
Hey Guys,
... a G2 ... , ... USB access is bricked ...
... can access the device in Fastboot and ADB ...
When I ran the 2 commands:
... but CWM is still unable to mount the SDCard. Anyone have any ideas on how to get the SDCard to read on this guy? It's currently S-OFF on HBOOT 0.84.2000.
Thanks!
Click to expand...
Click to collapse
Mounting SD card in Recovery? Telling recovery to use internal fstab containing sdcard entry should work:
Code:
adb shell mount /sdcard
See what partitions are mounted now:
Code:
adb shell mount
See if the sdcard has some content that can be read from Recovery:
Code:
adb shell ls /sdcard/*
Best regards,
Catherall

Hey Guys thanks for the suggestions. I'm able to push ROMs to the SDCard, but it seems like they vanish after the phone's rebooted.
when pushing I use the following command:
adb push C:\<rom name> /sdcard/
after the upload is complete, I can do "ls /sdcard/" and see the rom inside. But I'm still not able to mount or see it inside of CWM.
Cahterall thanks for the suggestions on the commands, I've tried running them but everything seems to be not found when it comes to the SDCard, which makes it confusing as to how the ROM is even being pushed there. Below's the output of the commands you suggested, I'm also researching like mad to see If I can find any solution.
~EDIT
I think the underlying cause is that I'm getting the following error:
/dev/block/mmcblk1p1 no such file or directory
since /dev/block/mmcblk1p1 is missing it can't mount. Any suggestions?

"Mount and storage" menu in Recovery
ChristmasGT said:
Hey Guys thanks for the suggestions. I'm able to push ROMs to the SDCard, but it seems like they vanish after the phone's rebooted.
when pushing I use the following command:
adb push C:\<rom name> /sdcard/
after the upload is complete, I can do "ls /sdcard/" and see the rom inside. But I'm still not able to mount or see it inside of CWM.
Click to expand...
Click to collapse
Hello,
the output of mount shows that your sd card is NOT mounted at all.
However, Recovery has a directory called /sdcard on the ramdisk where the system is started.
This directory is used to mount the content of the sd card.
When the sd card is not mounted you still can write files into the directory /sdcard on the ramdisk, but they will be gone when you reboot the phone.
Usually in a custom ROM you can use the menu item "Mounts and storage" (engage with trackpad) and choose either to "mount /sdcard" or to "mount sd card to USB".
Mounting sd card to USB should connect the sd card as usb harddisk to your computer.
And mounting /sdcard (the partition) allows to push files on sd card using "adb push".
ChristmasGT said:
~EDIT
I think the underlying cause is that I'm getting the following error:
/dev/block/mmcblk1p1 no such file or directory
since /dev/block/mmcblk1p1 is missing it can't mount. Any suggestions?
Click to expand...
Click to collapse
When I remember correctly then the Desire Z uses "/dev/block/vold/179:33" to mount the sd card with type vfat.
Are you sure that your sd card is formatted using FAT?
Best regards,
Catherall

Hey Catherall, thanks for all the help man!
Unfortunately, trying to mount the /sdcard or mount USB storage gives me the following error:
"E:Unable to write to ums lunfile (No such file or directory)"
I've tried multiple SD Cards and long formatted all of them to FAT with the same results. Can't seem to find any resolution to this at all which is unfortunate.

Just wanted to update this:
I've gone ahead and updated the System / Data / Boot / Cache via fastboot (I'm S-Off) from the following thread:
http://forum.xda-developers.com/showthread.php?t=1572924
Also, it does NOT appear that my EMMC is corrupt and has 2.09GB free. Any ideas by chance?
Still looks like I'm unable to get past the White HTC Logo and still don't have any type of SDCard Access.

Related

E: Can´t mount /dev/block/mmcblk0p2 (File exists)

Hello,
I have a PVT4 Desire with erasezize 40000
I am rootes and s-off
Recovery : Clockworkmod Alpharev Recovery 2.5.1.8
After i switch from Starburst Rom to a normal apps2sd+ rom, i got this:
E: Can´t mount /dev/block/mmcblk0p2 (File exists)
Error everytime in Recovery.
This error comes before i have to confirm the wipe of the dalvik cache.
I unrooted the phone with a official RUU and rooted it again and did s-off again,
but the error still exists.
Stock Rom is working, recovery is working, but i am afraid of flashing a new rom
Please help
Thank you
Do you still have the ext partition? I believe this is the error that you get when there is no ext partition.
no, i don´t have a ext partition, because it is a rooted stock rom running now without apps2sd+
its a new sdcard fat 32
do you mean if i create a new ext partition on the sd card, the error disappers ??
Yes but i don't know if there is any point in doing that.
ok, i created a new ext 3 partition on the sd card, but the error still exists
I found the exact error in a different thread here.
They managed to solve it
dunno if its of ne help....but i had the same prob of "E:Can't mount /dev/block/mmcbld0p2 (file exists)" with my HTC Desire with cynogen recovery mod and leedroid.
phone was getting stuck at boot screen. only recovery was working. i unmounted the SD card, deleted the ext3 partition through Disk Management in windows and mounted the card again. Now, android booted (but without A2SD) i downloaded ROM Manager and used the option "partition SD card" and like a miracle, the phone rebooted, partitioned my SD card, and rebooted back to android (this time WITH A2SD working!!!)
hope it gets as easy as this for u guys as well.
(P.S. : before A2SD, my internal space showed 92.4 mb, after A2SD started functioning, internal memory showed 130.2 mb)
PVT4 Desire's can't use CWM - they have to use AmonRA as highlighted in the stickied at the top of the General thread
stuck in bootloop, with same error in recovery
i have somehow managed to screw the device, it wont boot stuck at htc white screen, id really appreciate if you could help, i cant manage to get adb setup on my computer to list the connected devices maybe the driver issues
what i did to get into this was this:
1.i was using a custom rom from Auraxtsense 8.3 with Amon.RA recovery
2.i got into Rom Manager n install clockworkmod recovery just out of curiosity, the next reboot i was stuck on the htc screen
3.i can get into recovery n stuff, but i cannot mount my SD card, ive somehow managed to get my data out of the card by using it from another phone
steps tried:
1.i tried to go into fastboot n use a RUU to flash it but i got a Error 171 usb connection error
2.tried using Android fastboot commander but it fails to flash any type of file
i cannot understand the right process to go about things please help me, even if i can setup adb with the right drivers, access it from hboot or so push files make it stock then root n stuff again
formatted the sdcard totally to fat32 also n then tried via recovery to partition n all no luck
AceNik said:
i have somehow managed to screw the device, it wont boot stuck at htc white screen, id really appreciate if you could help, i cant manage to get adb setup on my computer to list the connected devices maybe the driver issues
what i did to get into this was this:
1.i was using a custom rom from Auraxtsense 8.3 with Amon.RA recovery
2.i got into Rom Manager n install clockworkmod recovery just out of curiosity, the next reboot i was stuck on the htc screen
3.i can get into recovery n stuff, but i cannot mount my SD card, ive somehow managed to get my data out of the card by using it from another phone
steps tried:
1.i tried to go into fastboot n use a RUU to flash it but i got a Error 171 usb connection error
2.tried using Android fastboot commander but it fails to flash any type of file
i cannot understand the right process to go about things please help me, even if i can setup adb with the right drivers, access it from hboot or so push files make it stock then root n stuff again
formatted the sdcard totally to fat32 also n then tried via recovery to partition n all no luck
Click to expand...
Click to collapse
Flash the rom again but no wipe.
I get the /dev/block **** when I wipe Dalvik cache but everything is working fine.
GoogleJelly said:
Flash the rom again but no wipe.
I get the /dev/block **** when I wipe Dalvik cache but everything is working fine.
Click to expand...
Click to collapse
i cannot access sd card, when in recovery n try to choose option flash zip from SD it gives this error
tried RUU also but get that stupid USB error
u think guys at HTC RMA will fix it?
Format the SD Card and see if that works.
Thanks, Steps that worked
GoogleJelly said:
Format the SD Card and see if that works.
Click to expand...
Click to collapse
hey thanks, i did that plus i also needed to run this command that seemed to have fixed the issue
Code:
fastboot oem enableqxdm 0
although i followed 2 threads
No-ADB-No-SD
&
Usb Brick Function
but jus used the command n formatted memory card n stuff worked not i couldnt move those 2 files mentioned here to the system since cat commands couldnt work
im still unsure device seems restored using my earlier rom from AuraxtSense with Data2SD
i still wonder if it completely fixed, n whether i should go ahead n create a goldcard, n like i need a guide to know what are the perfect things to do to keep as backup when such stuff happens
dunno if its of ne help....but i had the same prob of "E:Can't mount /dev/block/mmcbld0p2 (file exists)" with my HTC Desire with cynogen recovery mod and leedroid.
phone was getting stuck at boot screen. only recovery was working. i unmounted the SD card, deleted the ext3 partition through Disk Management in windows and mounted the card again. Now, android booted (but without A2SD) i downloaded ROM Manager and used the option "partition SD card" and like a miracle, the phone rebooted, partitioned my SD card, and rebooted back to android (this time WITH A2SD working!!!)
hope it gets as easy as this for u guys as well.
(P.S. : before A2SD, my internal space showed 92.4 mb, after A2SD, internal showed 130.2 mb)
the error's gone, but problem exists
hey the error of the recovery not being able to access memory card is gone, but now when within the android OS the problem is when connected to the computer the charge sign or even the prompt to mount as disk drive does not show in the notification
in short i need to mount my memory card on the computer n the android OS cannot figure out how, is there somethin that may still be locked, i issued a command earlier from fastboot to get the earlier problem go
Code:
fastboot oem enableqxdm 0
You have the USB brick issue. The misc partition gets corrupted.
If you search you will find the solution.
Sent from my HTC Desire using XDA App
Jpcurrie said:
You have the USB brick issue. The misc partition gets corrupted.
If you search you will find the solution.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
hey thanks, i tried here
i need some help
Code:
3. Get flash_image from the attached files below
Move this to /data/ , and flash the modified image using:
"/data/flash_image misc /data/mtd0.img"
You can move both mtd0.img and flash_image by putting it on your sdcard, and issueing the following command in a terminal emulator:
'cat /sdcard/flash_image > /data/flash_image'
'cat /sdcard/mtd0.img > /data/mtd0.img'
You might have to do 'chmod u+x /data/flash_image' before you run the commands (or chmod 755 /data/flash_image)
4. Repeat step 3 a couple of times if it doesn't seem to work well.
5. All done! Reboot, you should have normal usb connectivity. Post your 'fastboot oem boot' log and intermediate steps if it fails.
i got the 2 files on my sdcard, im rooted but S-ON, i tried the 3 commands
cat /sdcard/flash_image > /data/flash_image
cat /sdcard/mtd0.img > /data/mtd0.img
chmod u+x /data/flash_image
in terminal emulator on phone, but when i press enter jus shows # again
then tried /data/flash_image misc /data/mtd0.img
says illegal instruction or somethin as an error
can you help me if im doin this rite? i browsed the /data/ folder via a ESFile Browser it seemed to be empty
I had this issue with my SD using, i solved it. Just partition your SD with 512mb for ext2 primary and the rest for fat32 WITH ALSO primary partition, I was using FAT32 Primary and EXT Logical, thats why i got the error =)
Hope it helps, and sorry for my bad english
hi guys, im also getting the following error... E:cant mount /dev/block/mmcblk0p2
i have searched for days now trying to find the solution, i see something about adb and command lines etc but i have no idea how to do that!
plus i see that it means that ineternal partitions are somehow messed up, but i only get this error with one of my sd cards.. my old one works fine. so surely it is a sd card problem,
i have so far tried partitoning with cwm recovery, in windows, using gparted and no luck.. as anyone found a definate solution yet?!
thanks
Solution to E:cant mount /dev/block/mmcblk0p2
moley10 said:
hi guys, im also getting the following error... E:cant mount /dev/block/mmcblk0p2
i have searched for days now trying to find the solution, i see something about adb and command lines etc but i have no idea how to do that!
plus i see that it means that ineternal partitions are somehow messed up, but i only get this error with one of my sd cards.. my old one works fine. so surely it is a sd card problem,
i have so far tried partitoning with cwm recovery, in windows, using gparted and no luck.. as anyone found a definate solution yet?!
thanks
Click to expand...
Click to collapse
hey i had this problem a few weeks back
refer this thread just to get the update.zip file
1.format your SD card to FAT32, put update.zip on it
2.boot into fastboot, connect usb cord to phone n computer
to get into fastboot mode
press volume down + power held for a few seconds when phone is off
then press volume down once n enter fastboot
then connect the phone to the computer
3.on the computer run command prompt n browse to the director with android SDK n go into the tools folder
execute this command
Code:
fastboot oem enableqxdm 0
4.once this is done, the SD card is then recognized by the recovery
5.now reboot go back into recovery from the same volume down+power sequence n then say flash zip from SD card
to get into recovery
vol down + power at start n then select recovery (having access to recovery is important)
then choose flash zip from sd n flash the file update.zip from your sd card
basically the fastboot command n format of the sd card should be fine to let you flash a new ROM zip file n get the phone started
but the issue is actually called a USB brick in which, you lose access to bluetooth, battery drains a lot, n there is no way to access mem card via usb on the computer its not recognized
hence i flashed this update file from that forum there, which describes the fix in detail

SD Card Problem

Ok, so here's what I did.
1) My SD Card was partitioned.
I had used Darktremors a2sd a while back to put my apps on SD
2) Today, I copied the contents of my SD Card to my desktop
3) Then, I partitioned my SD Card (swap - 0MB; ext2 - 0MB; FAT32 - remainder)
4) Now, my computer doesn't recognize the SD Card AND Android doesn't work!?
Seriously, it will load to a wallpaper with battery, signal, and time. It even gives me the little USB icon. But, no shell or whatever.
Here is the error I was getting:
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
(No such file or directory)
E:Can't mount /sdcard
5) AmonRA will allow me to repartition the SD Card (or so it says), but this doesn't fix the problem.
6) I finally got Fastboot to recognize my device, however running the following commands didn't fix ****:
fastboot-mac oem enableqxdm 0
fastboot oem enableqxdm 0
7) Then, I tried selecting clear storage in the bootloader (why I did this on a rooted phone I'll never know), and now my phone doesn't do anything.
8) About all I have going for me is a working recovery and fastboot recognizing my device. No OS, no SD Card, and no way of flashing anything.
What do I do!?
Heres your first problem....
3) Then, I partitioned my SD Card (swap - 0MB; ext2 - 0MB; FAT32 - remainder)
Click to expand...
Click to collapse
You should have gave at least 1024MB to EXT.2.Thats where your apps are installed.Try that and let me know.
Just a thought
If you have a Card Reader, Remove the SD card from your phone and put it in a microSD adapter to see if your computer recognizes it that way.
Is it possible for you to repartition but put 1024 MBs onto an ext2 and try again? I thought our phones needed the ext2 partition.
Just throwing some suggestions around.
Or you can boot into the boatloader,by powering off,then hold the volume rocker in the down position,once in there,try to enter recovery,if not,connect to your computer through the bootloader.Yes you can repartition the sd card,only from inside recovery or from the computer using a partition application.
Why did you post this twice? You posted this same question in general as well I think your problem may be failure to read since you obviously didn't read the forum rules, if you searched Google you could have found the answer instead of asking a question that has been answered multiple times and not only did you not search but you posted the same question twice
We are legion, for we are many.

FXP - Flash file not on sd card root

Good evening,
sorry for the question. But i have a very serious problem. I tried to flash the FX105 Rom , everything went good.. but i Forget to save the Rom in the root of the Sdcard... i wiped all cache and the folder where it used to be "ROM"... So now i cant select it to flash... how can i put the file in the root of SD card now? if i connect to my Laptop i have only ADB access..windows 7 can not mount my sdcard, i want to move the .zip file in to the root directory, so i can select it from FXP Recovery Mod...please help me, im very stuck now
Please
Have you tried the mount options in CWM?
take out sd card,put on cardreader,connect to pc,transfer..
sent from my LT18i FXP103 SuperCharged
hi, i have no card reader for micro sd...
I try this ways:
1)phone is off, pluged to pc, menu key is pressed, then i turn on the phone, the LED is blue... on fastboot shell: fastboot devices.. i get numbers/letters.. but if i try to do this :
adb shell
adb mount sdcard
cd sdcard
adb push <filename> /sdcard/
fast boot says: no device found error...
in CW option i tried the following scenario... usb device plugged to my phone... i normally turn on the device... then on mount options: i select Mount sdcard.. then CW reboots thats it, nothing happens on my pc...
Please guys if you have any idea, please help me
daftman6 said:
in CW option i tried the following scenario... usb device plugged to my phone... i normally turn on the device... then on mount options: i select Mount sdcard.. then CW reboots thats it, nothing happens on my pc...
Click to expand...
Click to collapse
Afaik, you have to boot into recovery, go under mount options, select mount sd card and then connect it to your PC. Usually it should detect your device.
I've always done the same.
And if you don't have a card reader, I don't think it's too expensive to buy one.
Thank you guys, ive solved the problem.
Now i have FXP Ice Cream Sandwich on my Arc! really great rom.
Thanks!

[Q] Flash rom with adb (no sdcard)

I googled the question quite extensively but have found no conclusive answers
Is there a way to flash a rom without first transferring it to the SD card (specifically for DHD)? There seems to be something wrong with my SD bay as my phone cannot mount the SD card successfully (it works fine on my computer), so I'm looking for a way to flash a new rom on the phone to rule out the possibility that the ROM is what's causing the SD card failures.
Google turned up a couple of results that seemed promising, but they all say you have to use Amon_RA recovery, which (to my knowledge) does not exist for DHD, and following the same steps while using CWM recovery leads to an error.
Unfortunately, as a new user I can't post the link to the method. It basically involves pushing the rom to /data/ on the phone then executing the command
recovery --update_package=DATA:ROM.zip
this should flash the rom. But because I'm using CWM there is an error, because CWM doesn't allow you to flash that way (or something to that effect)
Currently running IceColdSandwich 3.0.test4
Is there any way I can flash a rom without needing the SD card?? I don't wanna have to buy a new SD bay :/
Maybe this helped .. googled some more
http://forum.xda-developers.com/showthread.php?t=625950
Mount /sdcard
Just like you mounted /data try to mount sdcard using this adb comments,
./adb shell
su
# mount -o rw,remount rootfs /
# chmod 777 /mnt/sdcard
and push your ROM form computer, i.e ("adb push d:\adb directory\Your ROM /sdcard")
and try to mount sdcard in CWM....
I hope this would work for you,
NOT TESTED BY ME !! Pl replay

[Q] How to access external-sd with adb in recovery mode?

I can't seem to find/access my external sd card in adb shell when my phone is in recovery mode. Going to /sdcard gives me the internal location where CWM backups are kept. Nothing is listed in /external_sd and when I choose 'mount external sd' from the menu in clockworkmod I get an error in CWM. I need to access it because that's where I keep backups of files I'm messing with.
ThisThing said:
I can't seem to find/access my external sd card in adb shell when my phone is in recovery mode. Going to /sdcard gives me the internal location where CWM backups are kept. Nothing is listed in /external_sd and when I choose 'mount external sd' from the menu in clockworkmod I get an error in CWM. I need to access it because that's where I keep backups of files I'm messing with.
Click to expand...
Click to collapse
What format is the SD Card in? If its exFAT then CWM wont be able to recognize it. If its FAT or FAT32 then try this in adb shell
su
mount /external_sd
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
su shows up as an unrecognized command, oddly enough (even though it works when I'm not in recovery.) I've found another way to move the files around so I'm not going to worry about it.
My problem now is the framework-res.apk that I replaced some sounds in causes boot to get stuck on the end of the t-mobile animation. I'm finding threads all over the place about how to replace it, but if anyone has a guaranteed method for this device now I'd appreciate it.

Categories

Resources