HOW TO - 64GB exFAT SDXC card ruined by Cyanogenmod - how to get data back

Search This thread

satanxda

Member
Jul 20, 2012
27
63
I am writing this n00b friendly howto for anybody who will encounter similar problem that I had, since I couldn't find much info how to solve it on this forum.

Recently I have flashed CM9 and later CM10 preview on my Galaxy S3 I9300 with 64 GB Sandisk SDXC card. The card was formatted in Samsung stock ROM, so naturally, it was formatted as exFAT. CM9 and CM10 reported it as "damaged SD card", but this was expected, since open source AOSP ROMs do not support exFAT. However, when restored to original stock ROM via CWM recovery, the stock ROM was showing "damaged SD card" error, too! Not sure why this has happened - the only info I found was someone mentioning that "CM9 is known to do this on exFAT cards" on this forum.

Connecting the card (via adapter and card reader) to computer didn't help - it showed as a RAW partition, Windows was asking to format it and even reported incorrect size. Trying about 7 different open source and commercial recovery tools did not help. However, if booted to recovery mode, CWM could see the card just perfectly!

So this is how to get the data back:

1. Boot to CWM recovery mode (power off the phone, then hold Volume Up-Home-Power buttons for 5 sec)

2. When in CWM recovery mode, connect phone via USB to computer. The phone should be recognized and drivers installed (if not already).

Note: I had problems with Windows recognizing the phone in recovery mode on some PCs (only 1 out of 3 worked, actually). To solve this, installed drivers from Samsung Galaxy S3 Toolkit (first step after toolkit installation) and problem gone: http://xdaforums.com/showthread.php?t=1703488

3. Run adb command (from Android SDK platform tools) to ensure that the phone is visible to operating system - it should show serial number of the device and "recovery" next to it:
adb.exe devices

4. Browse the phone to find the location of sdcard (mine was /sdcard):
adb.exe shell

Note: when first time connected to phone via "adb.exe shell", running "ls" in /sdcard directory came out empty. Had to "exit" from shell and do "adb.exe shell" again.

5. Pull the files from your device using "adb.exe pull" command:
adb.exe pull /sdcard c:\temp
replace /sdcard with your sdcard directory on the phone (if different) and c:\temp with other folder on your PC, if you wish.


That's it! After files are copied, reboot to stock ROM and reformat the card. You can now copy all data back to it from your PC!

Now I'm trying to find a way to format the card to FAT32. Seems not so straightforward with 64GB cards! :)


Sincerely,
satanxda
 

mahendra1020

Senior Member
Jan 26, 2012
159
49
I had the same problem. From stock went to CM10, exFat got corrupted and then went back to Stock still external storage card showed as damaged.

I took the SD card out and put in adapter and then connected to PC. Then from command prompt ran chkdsk <Drive_Letter:> /f and it fixed the errors without me copying the files to PC.

Hope this helps.
 

magicm3n

Member
Aug 21, 2011
40
45
Kiev
With this problem you can restore data in more easily way.
Insert your SDcard in CardReader, connect to PC, run Command line (cmd) and type:
chkdsk X: /f ,
where X is your card volume name. After operations is complete, you can use you card again and NO data had been lost.

Sorry for my bad english.
 

satanxda

Member
Jul 20, 2012
27
63
And to format 64GB sd card from exFAT to FAT32, use guiformat tool or EaseUS partition master. I have formatted my card to FAT32 using EaseUS partition master.

Sent from my GT-I9300 using xda app-developers app


Tried it before posting this howto, but EaseUS didn't see the card at all. Windows disk manager in the meantime reported incorrect size (27 GB for a 64 GB card) and when formatted with guiformat I got a 27 GB partition. Could be a problem with card reader - will try another one as soon as I get my hands on one ;]

mahendra1020, magicm3n: in my case using chkdsk was not possible, since Windows showed the SD card as a disk with not formatted RAW partition (suggested to format it). To run chkdsk, partition type must be recognized.

And by the way, thanks everyone for comments and suggestions!


Sincerely,
satanxda
 
  • Like
Reactions: peur and vgiangi

mahendra1020

Senior Member
Jan 26, 2012
159
49
Tried it before posting this howto, but EaseUS didn't see the card at all. Windows disk manager in the meantime reported incorrect size (27 GB for a 64 GB card) and when formatted with guiformat I got a 27 GB partition. Could be a problem with card reader - will try another one as soon as I get my hands on one ;]

mahendra1020, magicm3n: in my case using chkdsk was not possible, since Windows showed the SD card as a disk with not formatted RAW partition (suggested to format it). To run chkdsk, partition type must be recognized.

And by the way, thanks everyone for comments and suggestions!


Sincerely,
satanxda

Yeah even in my case windows showed sd card as not formatted but chkdsk still works.

Try /f instead of /r as arguments for chkdsk.

Are u formatting as fat or fat32? For me both the tool worked.

Sent from my GT-I9300 using xda app-developers app
 
Last edited:
  • Like
Reactions: peur

satanxda

Member
Jul 20, 2012
27
63
Yeah even in my case windows showed sd card as not formatted but chkdsk still works.

Try /f instead of /r as arguments for chkdsk.

Are u formatting as fat or fat32? For me both the tool worked.

Sent from my GT-I9300 using xda app-developers app

Probably you are right. Checkdisk button was disabled for me when right-clicking->Properties on the drive, but anyway Windows was reporting wrong size of the card, so I didn't want to risk forcing repairing and didn't invest too much time to that. But as I said, maybe it's the problem of my quite old SD card reader :)

By the way, successfully formatted from exFAT to FAT32 by using this Android tweak to mount the SD card as USB Mass Storage device on PC (so basically turning the phone itself into a card reader) and formatting in Windows with guiformat:
http://xdaforums.com/showthread.php?t=1711009
http://www.ridgecrop.demon.co.uk/guiformat.htm



Sincerely,
satanxda
 

Blomkungen

Senior Member
Mar 3, 2011
101
6
And did you get CM10 to read all of the 64 gigabytes?
For me CM cannot read the SD card over 32 gb.
 

doclucas

Senior Member
Jan 10, 2009
328
102
Formatted my 64gb SDCard using EASEUS Partition Master to FAT32.
CM9 recognizes all the 59GB+, reads and writes on the card just fine. Didn't install CM10 yet, so don't know if that will work...
 
  • Like
Reactions: setgear

ScottC

Senior Member
May 6, 2005
454
37
FWIW; the Chkdsk /f command did fix mine, and just as well, cause nothing I did (on multiple machines) could get the darn thing to mount in CWM.
 

xillc

New member
Nov 19, 2010
1
0
yep, chkdsk does fix my 16g exFat card, and it works back just fine now. and before, i tried the CWM way twice, nothing i could pull up, os hints "remote object '/sdcard' not a file or directory"
 

kmfs

New member
Sep 12, 2012
4
0
I've had the same issue, and am really struggling to get anywhere at all with it...

I tried the method in the first post, but running ls on /extSdCard just gives an empty directory...

When I mount it in a reader in windows, it reports zero size and a 'please insert disc into Removable Disc (E: )' when I try and open it...

Even when I just threw my hands up and said 'ok phone, format it' it just says 'unmounting SD card' and then just backs into the normal screen.

At my wits end with this, I suspect the card might be fried, but want to get in if possible as it has my only stock backup!

Running the most recent CM9
 
Last edited:

kmfs

New member
Sep 12, 2012
4
0
What about /storage/extSdCard/ ?

hmm, well storage isn't part of the structure when is run ls after using 'adb.exe shell'

tried it anyway, get 'can't cd to /storage/extSdCard'

interestingly, when I try and get into just the 'sdcard', which I guess is just the internal storage?

I run 'cd sdcard' and the folder that I get into is /data/media

this is confusing, anybody any ideas?
 

V@no

Senior Member
Sep 24, 2007
1,473
197
I had the same problem. From stock went to CM10, exFat got corrupted and then went back to Stock still external storage card showed as damaged.

I took the SD card out and put in adapter and then connected to PC. Then from command prompt ran chkdsk <Drive_Letter:> /f and it fixed the errors without me copying the files to PC.

Hope this helps.

Please add this simple info to the OP!


P.S.
Windows 7 said the volume is in use and if I wanted to dismount it before it would allow to continue checking/fixing it. But at the end it worked perfectly!


Thank you very much! I had so much stuff on this card that I haven't backed up yet..phew
 

EvilBoz

Member
Aug 9, 2010
32
6
I have the same issue. Flashed CM10 M2 on my tmobile S3, got the error that SD card is damaged, restored stock image from backup, and I'm still getting the bad SD card error. I'm using CWM 6.0.1.2 and mounting the external SD failed. I don't see the contents when I connect through ADB. Mounting sdcard from CWM mounts /sdcard but that is the internal storage which is not what I want. I also tried connecting the card to my laptop running XP using a micro-SD card reader and running chkdsk but that reported the disk as a RAW partition. Any ideas on what else I can do to copy files off of the card?
 

Irony71

Member
Feb 20, 2012
41
20
The method mentioned in OP worked for me, using a macbook air with mountain lion and android sdk for adb installed.

After mounting the external sdcard in cwm and copying the files via adb I partitioned the sdcard (sandisk 64gb sdhx) with the inbuild harddiskmanager in mountain lion. You have to choose FAT (MS-DOS), it will choose fat32 automatically. After partitioning and formating the sdcard the card is recognized under cm10 and samsung firmwares.

OSX has no 32gb limit on fat32.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 46
    I am writing this n00b friendly howto for anybody who will encounter similar problem that I had, since I couldn't find much info how to solve it on this forum.

    Recently I have flashed CM9 and later CM10 preview on my Galaxy S3 I9300 with 64 GB Sandisk SDXC card. The card was formatted in Samsung stock ROM, so naturally, it was formatted as exFAT. CM9 and CM10 reported it as "damaged SD card", but this was expected, since open source AOSP ROMs do not support exFAT. However, when restored to original stock ROM via CWM recovery, the stock ROM was showing "damaged SD card" error, too! Not sure why this has happened - the only info I found was someone mentioning that "CM9 is known to do this on exFAT cards" on this forum.

    Connecting the card (via adapter and card reader) to computer didn't help - it showed as a RAW partition, Windows was asking to format it and even reported incorrect size. Trying about 7 different open source and commercial recovery tools did not help. However, if booted to recovery mode, CWM could see the card just perfectly!

    So this is how to get the data back:

    1. Boot to CWM recovery mode (power off the phone, then hold Volume Up-Home-Power buttons for 5 sec)

    2. When in CWM recovery mode, connect phone via USB to computer. The phone should be recognized and drivers installed (if not already).

    Note: I had problems with Windows recognizing the phone in recovery mode on some PCs (only 1 out of 3 worked, actually). To solve this, installed drivers from Samsung Galaxy S3 Toolkit (first step after toolkit installation) and problem gone: http://xdaforums.com/showthread.php?t=1703488

    3. Run adb command (from Android SDK platform tools) to ensure that the phone is visible to operating system - it should show serial number of the device and "recovery" next to it:
    adb.exe devices

    4. Browse the phone to find the location of sdcard (mine was /sdcard):
    adb.exe shell

    Note: when first time connected to phone via "adb.exe shell", running "ls" in /sdcard directory came out empty. Had to "exit" from shell and do "adb.exe shell" again.

    5. Pull the files from your device using "adb.exe pull" command:
    adb.exe pull /sdcard c:\temp
    replace /sdcard with your sdcard directory on the phone (if different) and c:\temp with other folder on your PC, if you wish.


    That's it! After files are copied, reboot to stock ROM and reformat the card. You can now copy all data back to it from your PC!

    Now I'm trying to find a way to format the card to FAT32. Seems not so straightforward with 64GB cards! :)


    Sincerely,
    satanxda
    26
    With this problem you can restore data in more easily way.
    Insert your SDcard in CardReader, connect to PC, run Command line (cmd) and type:
    chkdsk X: /f ,
    where X is your card volume name. After operations is complete, you can use you card again and NO data had been lost.

    Sorry for my bad english.
    14
    I had the same problem. From stock went to CM10, exFat got corrupted and then went back to Stock still external storage card showed as damaged.

    I took the SD card out and put in adapter and then connected to PC. Then from command prompt ran chkdsk <Drive_Letter:> /f and it fixed the errors without me copying the files to PC.

    Hope this helps.
    6
    And to format 64GB sd card from exFAT to FAT32, use guiformat tool or EaseUS partition master. I have formatted my card to FAT32 using EaseUS partition master.

    Sent from my GT-I9300 using xda app-developers app
    3
    Man! pity I didn't read this before I formatted my "damaged" card ... good to know there's solution for future ;)

    Wysyłane z mojego GT-I9300 za pomocą Tapatalk 2