How to format/repair damaged SD Card through ADB - Desire Q&A, Help & Troubleshooting

Long story short, put new sd card in today and tried to partition with AMON 2.0, it crashed when creating fat32 partition and now it doesnt show either in windows, gparted livedisk, phone or recovery. AMON cant repair it or format it. Im a total noob with ADB but is there any way it can be repaired through adb? if i use adb shell and LS there is a directory called sdcard and one called sd-ext? Is it repairable???

How are you connecting it to the computer? Via usb while still in the phone? Don't forget to mount the sd card in recovery so Gparted can see it.

No, trying in AMON as phone wont boot when sd is in. if i try to mount sd-ext or sdcard through AMON it sayd no such directory?

Related

help partitioning stock sd card

I've reformated the stock 8 gig that comes with the slide to fat32 on my pc and stuck it in my g1 to partition it through the recovery on there. But wen I get into sd parted on the consol it won't recognize the card. Something like mmcblk not recognizable
Assuming you're using AmonRA's recovery, have you tried using the standard auto-format options (ie, not using the console)?
Make sure you formatted the card correctly to begin with. Does your computer recognize it (as fat32)?
Just a few ideas.
Lol correct I am usin amon rah. That's the thing I couldn't get it to write partitions and it wouldn't let me like I was sayin so I did try the auto format. It said it was sucsessful and wen I went back into sdparted on the consol pressed print and it said it had been parted. So I then tried to manually partition my card to my likeing instead of the prestets from the automated version. And it was still unrecognizable. So I was like f it its reading that its parted when I push print so it mus be. So I roote my slide got into clockwork was gunna try wg went to wipe my ext partition to play it safe before I installed wg and it said there was no mountable ext.

[Q] Desire Bricked ?

I re-installed Leedroid as i was trying to get apps2sd working on an ext3 fromated sd card and upon reinstalling, it hung at the Telstra Splash screen for about 20 mins. I took the battery out and rebooted into bootloader where it displays that no image can be found on the sd card.
The computer detects the sd card however when i enter recovery mode to install zip from sd card, it displays "can't mount /dev/block/mmcblk0.... can't mount /sdcard".
What do i do to completely erase everything and install Leedroid again ?
Backup your SD card, format FAT32 and ext3 then flash the rom again.
I copy+pasted everything to windows earlier when everything was working, but don't have anything on the sd card to back up now. I tried formating to fat32 but the bootloader still says the same thing about the sd card, therefore i can't flash the rom.
Anyone ? i'm out of ideas. I tried a different sd card but the phone still 'cant mount'.
seems you got problem with your partition on the sd card, use you recovery to rebuild you partition or gparted to do so...
googlise gparted live cd or more friendly virualbox or vmplayer to run a complete linux distri.
Did you partition your sd-card on this way:
http://leedroid.com/bravo-wiki/partitioning-your-sd-card-ready-for-a2sd
If not, do it, flash the rom again and all should work.
You could try the sd card enable command?
Code:
fastboot oem enable qxdm 0
Otherwise there is a good guide on USB brick here:
http://forum.xda-developers.com/showthread.php?t=700734
Hope it helps!

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.

[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.

SD Card issue

Hey all!
I have a SD Card dilemma... I use philz_touch_6.57.8-m8 and in recovery... it can't mount my external sdcard if its formatted to xFAT... If I format it (in windows) to NTFS it works! But the issue is... neither sense or GPE read NTFS.. it says card is blank and needs to be formatted.. so what can I do?
Its obviously better to have it in xFAT so I can do all backups and recoveries in recovery... but everytime I need to send new roms or do backup, I need to unplug the microsd and plug it in my laptop (with an adapter)...
Also... I did root, unlocked bootloader and s-off... converted from sense to gpe, and sometime along the way my sdcard is mounted as /storage/sdcard1.. it was originally /storage/sdcard0
Anyone got some ideas?
edit: in recovery.. I can't mount /sd-ext or /storage/sdcard1
nvm.. I made a "default" format in Philz and now its working in both rom and recovery

Categories

Resources