yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] smc333:
Tried the sd card fix and it didn't work. When I reboot my phone just says "SD card safe to remove" but it doesn't read it I lost all of pictures and apps that were on it are not unnaccesable. Anyone else had this problem and fixed it???? Please help!
[EVO 4G Android Development] smc333:
Anyone??? Makes the phone pretty useless as I can't even take pictures now or really do much at all besides text and make calls. Has to be some way to fix this
[EVO 4G Android Development] kamran3:
Matarsak, I am exactly at the same point that you are. I can not boot my phone although I think it finished rooting it except the last step of flashing Unrevoked Forever. I have the same log that you posted and I get same white screen. When trying to follow fastreboot USB, I do not know what to do next.

Hopefully we hear from someone as what to do. It seems like we have to use ADB and DOS command although I am not sure.
[EVO 4G Android Development] slo-mo dove:
Bad block could not write misc

So I followed everything in original post to get my USB working.

I have root and I am running the Wimax Cyanogen mod by toast and shinzul. When I get to the last command typing in the terminal emulator

mtd: not writing bad block at 0x00040000

Error writing misc: No space left on device.

I have the latest radios and have tried all the above methods to fixing my usb not working...Any suggestions from the pros here?
[EVO 4G Android Development] Clarkkent434:
I hope this Helps??

I had the same issues of Evo not wanting to load my sd card. I had my phone rooting but when I used the Android App Terminal Emulator and type in fastboot oem enableqxdm 0, I kept getting an fastboot permission denied. The way I solved this is to type SU first then type the command line for the sd card. The su gives root access to the terminal. You do have to hit menu to toggle the soft keyboard to bring it back. Everything work. It did not do an reboot for fastboot reboot command so you might have to do it manually like me. I hope this helps.
[EVO 4G Android Development] limache:
SD card - adb commands?

Hi I have this SD card problem. My phone is rooted with the Evio rom and its been working fine for a while but for some reason today (while I was driving using the GPS) the phone ran out of batteries and then when i turned it back on, I couldn't use any of the apps that were moved to the SD card (including market!)

If I go to the SD card in settings, it shows the size of the card but i cannot have it detected via USB.

So I just wanted to ask about the commands in fastboot...I already have the adb program but can someone elaborate on the commands?

Am I supposed to type in "fastboot oem enableqxdm 0

fastboot reboot" by itself or are you supposed to have something else in front of it or after it? Do I just open terminal and just paste it in there? If so, I haven't had any success.

All it says is "-bash: fastboot: command not found"

Do I need to type in that "adb shell" command before it or is that different? I am confused and I want to use my apps :(.
[EVO 4G Android Development] MadDogMaddux:
In the middle of use today, my Evo suddenly announced that I had removed the SD card and warned me that I should not do so without powering down.

I tried a number of different things to get it to re-recognize the SD card and have been thus far unsuccessful, the most annoying of which was selecting the manufacturer reset option in Recovery, which wiped all my data and some of my apps, but didn't fix the SD card issue. :S

Plugging in the USB activates charging, the computer recognizes the USB drive but indicates that there is no disk in it. My 3 "Connect to PC" options are: Charge Only, HTC Sync, and USB Tethering. USB Tethering works, and HTC Sync won't find Sync on the computer....even though ADB devices does find the device.

I found this thread and followed the instructions and fastboot indicated that all was happy - except that when it rebooted, I still have no SD access.

I've checked the SD card on my computer, and it's fine - I just can't get the phone to recognize it at all, not via recovery, nor with Astro, or anything I've tried.

Any thoughts on what's up? Since it just randomly went out in the middle of use, I'm worried it might be a hardware failure on the side of the phone....

Using:

Myn's Warm TwoPointTwo RLS5

Supersonic EVT2-3 ENG S-OFF

HBoot 0.76.2000

Radio 2.15.00.11.19
[EVO 4G Android Development] GadgetMonger:
Happened to me as well. I had to back up my card to my pc and format it to get it to work again.
[EVO 4G Android Development] MadDogMaddux:
Oh! There's a thought I hadn't tried. I'll give that a go right now.
[EVO 4G Android Development] GadgetMonger:
Good luck. By the way... what kernel are you using? Just curious as to what may have caused it to begin with....
[EVO 4G Android Development] MadDogMaddux:
That did the trick, thanks!

Yeah, I was going to ask you the same question, actually. I had JUST flashed Ziggy's latest Evo Beta CFS HAVS kernel...maybe an hour prior to that happening.

You?
[EVO 4G Android Development] GadgetMonger:
I've been running SBC HTC #15 for about a month now. Just out of the blue this morning I got the sd card error. Wiped everything and tried restoring nandroids and nothing worked until the format. I just wonder if it's the card that's failing or if there's something else going on. :confused:
[EVO 4G Android Development] limache:
I was able to get the fastboot commands to run but after they ran and said Okay... the sd card still doesn't work! what gives? Should I just flash the rom again :( or are there any other suggestions?
[EVO 4G Android Development] GadgetMonger:
It's looking like that problem is going around. Must be something in the water. :eek: The only thing that worked for me was to backup my sd to my pc then format it.
[EVO 4G Android Development] limache:
Really the formatting worked for you? I've tried that with my macbook, with another phone, with the HTC itself and it STILL doesn't work. And what sucks is that I moved my market app and my file explorer to my sd card so now i can't access those! soo screwed.

Has anyone tried flashing it over again?

I also tried downloading the market apk directly to my phone and tried to install it and it wouldn't let me! Has anyone else had this problem? sigh i have no clue what to do now.
[EVO 4G Android Development] GadgetMonger:
You just can't access your card? Or are you getting an error message?
[EVO 4G Android Development] limache:
No surprisingly the microsd card works when I put it on my computer and if i attach a usb cable from my phone to the computer. I can access all the files.

The problem is that when I click on the apps on my screen that used to be there i.e. market and now it is just the android icon and when i click on it, it says "application is not installed on your phone" (and it's not, since it's on my SD card). I don't know why the phone can't read the apps on my sd card.

I can take pictures and videos and save it on the sd card so it's really weird. when i go to settings-> sd and phone storage it still detects it and shows the available and total space. this makes NO sense!!

I was even able to put music on it and play it but it's the apps that are the problem.
[EVO 4G Android Development] GadgetMonger:
What ap2sd app are you using? There is a variety... maybe try a different app? Seems like formatting the card and starting from scratch would have worked. You re-partitioned the card right? Started completely from scratch?
[EVO 4G Android Development] limache:
Hmm I'm using Calkulin's EViO rom so whatever app2sd was on that. I can't find out what the app name is though. i think it was just called app2Sd.

I tried formatting it a few times; I tried using disk utility in mac and just erased it. Is there a difference between erasing and re-partitioning?

The card was definitely wiped clean. I backed up my files on my laptop and then I pasted it back onto the card to try it again and it didn't work. same problem.
[EVO 4G Android Development] GadgetMonger:
If it's the app I'm thinking of you don't need to partition the card. But doesn't it list all apps that can be moved to sd and give you the option to move them? If you just copied and pasted maybe that's screwing with the app. I'd try formatting the card again and reflashing the rom. Then re-download your apps and enter your ap2sd and follow the prompts. I know that sucks, but I think your trying to copy and paste from the pc is what's messing things up.
[EVO 4G Android Development] limache:
No the app2sd is on the sd card too so i cant even use it. most of my apps are on the sd card, like market and es file explorer -_-,

All the apps that are on my micro sd card are NOT showing up on my phone. When I go to the screen that shows you all your apps, all the apps on my card are completely gone while the ones that are installed on my phone are left.
[EVO 4G Android Development] GadgetMonger:
Yes. I think the reason you can't access anything on your card is because you copied and pasted them to your sd card as opposed to letting the application send them. By formatting the card and reflashing the rom you should be able to access the market and then re-download all your applications. Then I think you should be able to access your ap2sd application and send the apps you want back to your card.
[EVO 4G Android Development] limache:
Thanks ill try it out. So I just want to make sure; 1) I reformat the whole card 2) I only put the ROM into the sd card (or do I put back all the data that I backed up on my computer?) 3) flash the rom and perform a wipe and nandroid back up (btw, if I wipe the phone, then is it also possible to have the nandroid backup or is the nandroid backup only possible if you don't perform the wipe)? Thanks.
[EVO 4G Android Development] Nnyan:
Ok so I'm having this issue now but when I go into fastboot I do not see an option for "ADB commands". just:

BOOTLOADER

REBOOT

REBOOT BOOTLOADER

POWER DOWN
[EVO 4G Android Development] Saturn2888:
I did the commands for the microSD card working twice, once with and once without the card plugged in. For some reason it's not reading any card I put in. I can read the card in Windows using a card reader, but the phone cannot see the card at all, thus preventing me from using it.

The card was working last night. I unplugged the phone from the computer and on my way to work this morning, I was surprised to find out the phone wasn't reading the microSD card. I tried another card, no fix. I don't know what's going on. Is this a hardware issue? The last card I put in it clearly recognized it but didn't read it.
[EVO 4G Android Development] Saturn2888:
Here's what I did. Took the microSD card in Windows, safely removed it, put it back in the phone; it works now.
[EVO 4G Android Development] limache:
flashed a rom to fix it

after trying all these methods out and not working, what ended up working for me was flashing a new rom. hope this helps other people
[EVO 4G Android Development] daweeze02:
Weird I rooted with unrevoked and have this USB port issue, so I tried your fix and had no issues with the commands but it did not seem to fix it. When I plug in a usb cable it says usb connected but then it goes away and still doesn't charge or let me mount storage :(
[EVO 4G Android Development] daweeze02:
I fixed my usb charging issue by flashing to the newest radio

http://xdaforums.com/showthread.php?t=715485
[EVO 4G Android Development] montecristo1:
Same here...
[EVO 4G Android Development] Rydah:
any way to get the usb fix in a flashable zip format? terminal is not finding these paths.

nevermind, reformat worked for me.
[EVO 4G Android Development] DraginMagik:
after running these steps a second time on the EVO Terminal Conosle (in hopes that the second time is the charm and my USB PC connectivity will magically return):

su

cat /sdcard/flash_image > /data/flash_image

cat /sdcard/mtd-eng.img > /data/mtd-eng.img

chmod 755 /data/flash_image

/data/flash_image misc /data/mtd-eng.img​

when press enter after the last line i get:

mtd: read error at 0x00000000 (Out of memory)

mtd: read error at 0x00020000 (Out of memory)​

I'm about ready to give up on being able to fix my phone.
[EVO 4G Android Development] DonSolo:
Can i fix my sd card using the terminal on the phone?
[EVO 4G Android Development] jdee02:
Ok so im new to this. I went to fastboot in bootloader and I hooked it up to the computer. What do I do before I put in the commands cause i keep get error messages.
[EVO 4G Android Development] bleedscarlet:
thanks!

09234017231273
[EVO 4G Android Development] dsf3g:
Can you be a little more detailed? When restart my Evo holding the power and vol down buttomn I see an option for Fastboot, but I don't see any way to enter commands.
[EVO 4G Android Development] k2buckley:
You need to have your Evo connected to the computer via USB. You also need to have the fastboot binary on your computer (install the android sdk tools if you haven't already). Then from your bootloader, select the 'fastboot' option. That will put your Evo in fastboot usb mode. Now, open up a command prompt on your computer, and enter the commands from the terminal. To check if your phone is detected before entering the commands, type 'fastboot devices' then hit enter. If your phone is detected, the command prompt should output your phone's serial number. If so, then you're good to go ahead and enter the commands. Good luck.
[EVO 4G Android Development] dsf3g:
Thank you so very much for your help. Using these instructions and your help I manged to get both my SD card functionality back and USB. What's more, lack of USB had broken my bluetooth, apparently, because now I have bluetooth back also!!!!

P.S. As with others, I had the issue where terminal emulator gave me a "not permitted" after the reboot command. Just shut the phone down manually and re-started and all was well.
[EVO 4G Android Development] b0tes:
This helped immensely too as well. Thank you.

Does anyone know exactly why the SD card would unmount without unplugging it while it is mounted?

This has probably happened to me at least three times.

Is it simply because I have a bad micro SD card?
[EVO 4G Android Development] Trident:
This seems to have worked for me at first, but I'm still having the same issues... once a new ROM is flashed, my SD card isn't recognized again. I've wiped multiple times and I no longer get the error message that the SD card isn't mounted or that it's not inserted. But I can't get any of the apps that are installed on the card to show up. Not sure what to do.

After flashing a few more times and wiping a BUNCH of times, I think I've figured out what is causing it, but not WHY? I'm good on most every ROM until I flash the new KingsROM6.x. It works for a short while, then I get a message that the card has become unmounted or removed.

I do a few more wipes, then this process again and then we're good.

Have to find a ROM that looks as good as that one that doesn't do this.
[EVO 4G Android Development] k2buckley:
Glad to help. I'm not sure what would cause it to keep happening. I myself have never had this issue before (fortunately). What type of card do you use...I suppose it could be faulty cards.

Thank you so very much for your help. Using these instructions and your help I manged to get both my SD card functionality back and USB. What's more, lack of USB had broken my bluetooth, apparently, because now I have bluetooth back also!!!!

P.S. As with others, I had the issue where terminal emulator gave me a "not permitted" after the reboot command. Just shut the phone down manually and re-started and all was wel

Glad to help!
[EVO 4G Android Development] EindhovenOne:
+1 for the USB fix being successful! Thank you, all, for your time and effort.
[EVO 4G Android Development] John5788:
i've tried the method for fixing usb, but it doesnt work for me. the only problem I have is when i execute reboot, it tells me

"not permited!".

Not sure what else I can do. I also tried flashing the Desire's update.zip as someone suggested, but the recovery image wont accept its signature.
[EVO 4G Android Development] John5788:
I have a feeling the USB fix does not work for people that are S-ON, only S-OFF.

Is there a possible fix for people that have bricked USBs with S-ON?
[EVO 4G Android Development] hEaTLoE:
Even though I have an Incredible, wanted to reply as I ran into this same issue yesterday.

My phone was S-OFF and after this problem, went S-ON in Hboot, although I still had root and superuser access. I was able to follow the instructions on the first page and it worked perfectly (THANK YOU!!). After following the steps I'm S-OFF again.

When you run the terminal app, does it pop up saying it has been granted superuser permissions when you run the first line? Also, check in your superuser app to verify Terminal Emulator is there with root access allowed.
[EVO 4G Android Development] Nesiop:
Alright all, I am having no issue with USB, but big issue with the SD card. I tried the fix of fastboot oem enableqxdm 0. It looks like it does something, but never helps. I get the Very very quick message of ... OKAY [ 0.094s ] Finished. Total time: 0.094s then it goes to a blank line. I do the fastboot reboot and nothing is fixed.

I know it is not the SD card, I am rooted, I am running SZ Rom, and I had the SD issue happen off and on a couple months ago. I would reboot....phone would start, and when booted up, after a short time of being officially started I'd see a bunch of apps on my desktop with the white and green android symbol (All the Apps installed to SD) Then I'd use something like es task killer, it'd lag up a bit and tell me ADWex (home launcher) crashed. One that happened and the screen refreshed, the apps would be there and everything was fine. At one point it looked like it was one of the newer Savaged-Zen kernels, but I tried multiple now with no success and also tried Tiamat's.

I have tried multiple SD cards, I have tried reformatting with windows AND through recovery. Partition is fine, I can see all my files on my SD card when in my computer, or when in recovery.

Also tried multiple roms, AOSP and Sense.

Any suggesstions?
[EVO 4G Android Development] Nesiop:
Anyone? this is getting to be real annoying.... Do I need to replace my phone.
[EVO 4G Android Development] Nesiop:
Issue fixed, Mine was an interesting one. Somehow all my files out of the .android.secure or whatever the folder is, were blank. One of my old SD card backups had most of the files in there, the rest missing I just used titanium backp to replace missing apps.

Sent from Asus Transformer.
[EVO 4G Android Development] JOSEunit10:
The option to mount the SD appears well on the phone, but does not show anything on the PC, I tried on 2 different PCs, xp, w7 ..

I have a huawei with 2.1, this fix can help me?.
[EVO 4G Android Development] mexigga:
"fastboot enableqxdm 0" trouble

I am having same trouble connecting to ADB with adbwireless and adb shows it is connecting. Whenever I type the "fastboot enableqxdm 0" command, the result is <waiting on device >

I am running Win 7, all adb drivers installed, S-off...

:confused:Any ideas on how to get past this point? :confused:

thanks.
[EVO 4G Android Development] mexigga:
Second issue, when in Terminal Emulator, I type:

su

cat /sdcard/flash_image > /data/flash_image

cat /sdcard/mtd-eng.img > /data/mtd-eng.img

chmod 755 /data/flash_image

/data/flash_image misc /data/mtd-eng.img

reboot

But the terminal runs and shows I do not have enough storage....

Weird....just got USB fix to run, evo rebooted, but does not work for me....

.
[EVO 4G Android Development] Vandy2009:
Spent all day trying to fix the USB connection.... Then I realized I needed to unzip the files before putting them on my sd card. WOW. I'm an idiot... but just let me say...

THANK YOU.
[EVO 4G Android Development] phat0074:
Does anyone know how to do this without su. I have s off but can't flash su zip because I can't mount sd nor does usb work.
[EVO 4G Android Development] KaoMinerva:
My EVO has always been stock! For some reason it won't mount as.a.disk drive. It charges and there is no port damage but it won't mount as SD. Again I am stock not rooted, how can I fix it

Sent From KaoMinerva
[EVO 4G Android Development] phat0074:
Help me I even took it to sprint and was told I would have to get a new phone but I've seen people thanking for the fix I just can't figure out how to do it
[EVO 4G Android Development] phat0074:
And please step by step instructions on when where and how to write the commands. Thanx
[EVO 4G Android Development] smilesuhas:
Firstly my adb shell is not detecting the device..."error: device not found"

my device manager show "ADB INTERFACE -> HTC BOOTLOADER" and there are no warning icons aroind any other devices, so driver seems to be fine.
[EVO 4G Android Development] KaoMinerva:
Well I'm ****ed..... Not rooted & s-on

Sent From KaoMinerva
[EVO 4G Android Development] clambert11:
So I've kinda run into a snag and I'm looking for advice.

Everything appeared to be going fine until the last command:

/data/flash_image misc /data/mtd-eng.img

Upon entering the command I get mtd: read error at 0x00000000 (Out of memory)

I get it a few times and then get a re-read error, a write error and eventually it says error writing misc: No space left of device.

I'm close, I can feel it. Any ideas? I'm running an HTC Incredible.
[EVO 4G Android Development] Avi15:
I'm having trouble getting my SD card to work. I'm in Fastboot, but when I type in

fastboot oem enableqxdm 0

I get "fastboot is not recognized as an internal or external command, operable program or batch files."

Any help? Thank you so much! :)
[EVO 4G Android Development] Bradshort:
Once downloaded make a note where fastboot has been installed within the Androiod folder structure

Then make sure the directory you are in (in cmd) contains the fastboot.exe before executing that command.
[EVO 4G Android Development] BonzTM:
Awesome guide. Got me and my Incredible out of a pickle today.

Only thing I would add for people who aren't familiar with adb/fastboot. Fastboot does not come with the SDK and is required for this. ADB won't work.
[EVO 4G Android Development] Novarider:
My phone wont recognize ANY sdcard I put into it so I decided to try this and see if it helps.

Ok this is what I get. When I run "adb devices" it shows no devices listed but under device manager I have android bootloader device so I think I have the drivers installed. The fastboot oem enableqxdm 0 looks like it worked and fastboot reboot does reboot the phone so I think it worked.

It didn't fix my phone tho!!!!!! This phone is only a couple month's old and it was new when I got it! (The power button died on my original Evo and the store didn't have any refurb phones so they replaced it with a new one.)

If the sdcard port died on this phone I am probably done with HTC phones:mad:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Andrew Goodall>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

C:\Documents and Settings\Andrew Goodall>fastboot oem enableqxdm 0
... OKAY [ 0.156s]
finished. total time: 0.156s

C:\Documents and Settings\Andrew Goodall>fastboot reboot
rebooting...
finished. total time: 0.156s

C:\Documents and Settings\Andrew Goodall>
[EVO 4G Android Development] timothydoanpham:
Anybody? I'm having this same problem too now. >_<
[EVO 4G Android Development] Novarider:
After running the script I booted into recovery and partitioned my sdcard and it fixed whatever was wrong! I then removed the sdcard and formatted it on my computer(for the 5th time) and re installed it in my phone and everything is back to normal

EDIT: Scratch that. I just tried to download a new rom and now my sdcard won't registered again! OMG this is so annoying!!!