Corrupt SD card from Android phone

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
Mighty
Posts: 2
Joined: 17 May 2013, 06:38

Corrupt SD card from Android phone

#1 Post by Mighty »

It's not finding any partitions. Ran the deep scan twice. I've begun spelunking around in the other options, but nothing has jumped out at me, yet.

What's the best way to proceed from this point?

Thanks,

Drake Christensen

The log file:

Code: Select all


Fri May 17 00:15:32 2013
Command line: TestDisk

TestDisk 6.14-WIP, Data Recovery Utility, April 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, MinGW 3.11
Compilation date: May  8 2013 08:18:08
ext2fs lib: none, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20120504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=256060514304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=1000204886016
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Incorrect function.


filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Incorrect function.


Warning: can't get size for \\.\PhysicalDrive2
filewin32_getfilesize(\\.\PhysicalDrive3) GetFileSize err Incorrect function.


filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Incorrect function.


Warning: can't get size for \\.\PhysicalDrive3
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive4)=32018268160
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Incorrect function.


filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Incorrect function.


Warning: can't get size for \\.\PhysicalDrive5
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=255953207296
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=1000202043392
filewin32_getfilesize(\\.\E:) GetFileSize err Incorrect function.


filewin32_setfilepointer(\\.\E:) SetFilePointer err Incorrect function.


Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=0
Warning: can't get size for \\.\F:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=0
Warning: can't get size for \\.\G:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=32014073856
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=0
Warning: can't get size for \\.\I:
Hard disk list
Disk \\.\PhysicalDrive0 - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512
Disk \\.\PhysicalDrive1 - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512
Disk \\.\PhysicalDrive4 - 32 GB / 29 GiB - CHS 3892 255 63, sector size=512
Drive C: - 255 GB / 238 GiB - CHS 31117 255 63, sector size=512
Drive D: - 1000 GB / 931 GiB - CHS 121600 255 63, sector size=512
Drive H: - 32 GB / 29 GiB - CHS 3892 255 63, sector size=512

Partition table type default to Intel
Drive H: - 32 GB / 29 GiB
Partition table type: Intel

Analyse Drive H: - 32 GB / 29 GiB - CHS 3892 255 63
Current partition structure:

Partition sector doesn't have the endmark 0xAA55

search_part()
Drive H: - 32 GB / 29 GiB - CHS 3892 255 63

Results

interface_write()
 
No partition found or selected for recovery

search_part()
Drive H: - 32 GB / 29 GiB - CHS 3892 255 63

Results

interface_write()
 
No partition found or selected for recovery

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Corrupt SD card from Android phone

#2 Post by Fiona »

Did you use the 64bit-version?
TestDisk-6.14WIP-32bit is recommended.

Windows doesn't support partitioning of flashcards and usb thumbs as much.
In some cases a boot sector diagnose or partition table type None helped.
Would be something to try.

Would it be possible to repeat your diagnsoe and using the recommended verion?
If it's possible select your card as disk and not as a drive.
Run Analyse, Quick and Deeper Search.

Info will follow.

Fiona

Mighty
Posts: 2
Joined: 17 May 2013, 06:38

Re: Corrupt SD card from Android phone

#3 Post by Mighty »

I'm running Win7-64 Pro, so that's why I chose to download the 64-bit version of TestDisk. If the functionality is different then maybe the Download page should make that more clear.

I ran the 32-bit version and it found two partitions immediately. Actually, I guess it's two copies of the same partition info.

Currently, it's backing up the table. Actually, looks like it's backing up the entire disk? Anyway, I think I'm at a point where I can start RTFM. Thanks for pointing me at the 32-bit version.

Drake

Code: Select all


Fri May 17 01:00:04 2013
Command line: TestDisk

TestDisk 6.14-WIP, Data Recovery Utility, April 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, Cygwin 1007.17
Compilation date: 2013-05-08T08:18:00
ext2fs lib: 1.42.2, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=256060514304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sde)=32018268160
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=256060514304
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=1000204886016
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive2
filewin32_getfilesize(\\.\PhysicalDrive3) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive3
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive4)=32018268160
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\PhysicalDrive5
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=255953207296
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=1000202043392
filewin32_getfilesize(\\.\E:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\E:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=0
Warning: can't get size for \\.\F:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=0
Warning: can't get size for \\.\G:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=32014073856
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=0
Warning: can't get size for \\.\I:
Hard disk list
Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - M4-CT256M4SSD2, S/N:3030303030303030323131343930383141393146, FW:010G
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - WDC WD1002FAEX-00Z3A0, S/N:2020202057202d44435754414152313334313335, FW:05.01D05
Disk /dev/sde - 32 GB / 29 GiB - CHS 3892 255 63, sector size=512 - Myson CS8819A2-113  2, FW:1.01

Partition table type (auto): Intel
Disk /dev/sde - 32 GB / 29 GiB - Myson CS8819A2-113  2
Partition table type: Intel

Analyse Disk /dev/sde - 32 GB / 29 GiB - CHS 3892 255 63
Geometry from i386 MBR: head=170 sector=53


test_FAT()
 1 P FAT32 LBA                0 130  3  3892 169 53   62527488
sector_size  0
cluster_size 0
reserved     0
fats         0
dir_entries  0
sectors      0
media        00
fat_length   0
secs_track   0
heads        0
hidden       0
total_sect   0
check_part_i386 failed for partition type 0C
Current partition structure:
Invalid FAT boot sector
 1 P FAT32 LBA                0 130  3  3892 169 53   62527488
 1 P FAT32 LBA                0 130  3  3892 169 53   62527488
No partition is bootable

search_part()
Disk /dev/sde - 32 GB / 29 GiB - CHS 3892 255 63
file_pread(6,2,buffer,62535680(3892/169/54)) ReadFile The drive cannot find the sector requested.

file_pread(6,1,buffer,62535680(3892/169/54)) ReadFile The drive cannot find the sector requested.

file_pread(6,15,buffer,62535681(3892/169/55)) lseek err Invalid argument
file_pread(6,3,buffer,62535696(3892/170/7)) lseek err Invalid argument
file_pread(6,3,buffer,62535743(3892/170/54)) lseek err Invalid argument
file_pread(6,8,buffer,62535759(3892/171/7)) lseek err Invalid argument
file_pread(6,11,buffer,62535806(3892/171/54)) lseek err Invalid argument
file_pread(6,2,buffer,62537728(3892/202/23)) lseek err Invalid argument

Results

interface_write()
 
No partition found or selected for recovery
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

Analyse Disk /dev/sde - 32 GB / 29 GiB - CHS 3892 255 63
Geometry from i386 MBR: head=170 sector=53


test_FAT()
 1 P FAT32 LBA                0 130  3  3892 169 53   62527488
sector_size  0
cluster_size 0
reserved     0
fats         0
dir_entries  0
sectors      0
media        00
fat_length   0
secs_track   0
heads        0
hidden       0
total_sect   0
check_part_i386 failed for partition type 0C
Current partition structure:
Invalid FAT boot sector
 1 P FAT32 LBA                0 130  3  3892 169 53   62527488
 1 P FAT32 LBA                0 130  3  3892 169 53   62527488
No partition is bootable

Locked