Trying to recover lost pictures from PNY SD card

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
w18918
Posts: 2
Joined: 28 Feb 2013, 16:20

Trying to recover lost pictures from PNY SD card

#1 Post by w18918 »

I've got a PNY PRO-ELITE 16GB SD card that has worked well with my Nikon D5100 camera for about 3 months. Just recently however, my camera is unable to detect the SD card. I've got a couple weeks worth of photos that I didn't get backed up, which I would like to recover. On my Windows 7 PC with built in SD card reader, I can access the card, but I get this error:

You need to format the disk in drive D: before you can use it.
Do you want to format?


I have not reformatted the SD card yet, but I have tried TestDisk and PhotoRec without much success.

TestDisk displays message:

Partition sector doesn't have the endmark 0xAA55

Then I do a Quick Search to Analyse cylinder and Deeper Search, but I just get the message:

No partition found or selected for recovery

I also tried PhotoRec, but it found 0 files.

Any other suggestions to try? I've tried some other different data recovery software applications, but having no luck. Should I reformat the SD card? Would doing this help or make the file recovery process more difficult? Thanks,

Thai

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

Re: Trying to recover lost pictures from PNY SD card

#2 Post by Fiona »

Please repeat your diagnose.
Don't confirm at "Analyse" but "Advanced" and "Boot".
Run "Rebuild BS"
Check the menu List and let me know, did you see your files or an error message.
If no partition is displayed, repeat the diagnose using partition table type "None".
If your partition appears in the menu Advanced as unknown, use type to change the file system.
Normally SD Cards are FAT32 preformatted,
Using partition type intel, you can enter the code 0c for FAT32.
Using partition table type "None", you can select FAT32 directly within the menu "Type".

Also copy and paste the content of your testdisk.log.

Fiona

w18918
Posts: 2
Joined: 28 Feb 2013, 16:20

Re: Trying to recover lost pictures from PNY SD card

#3 Post by w18918 »

Fiona,

Thanks for taking the time to help debug this problem. Below is the content of the TestDisk log. Please let me know what else I can try. Thanks,

Thai




Fri Mar 1 09:54:11 2013
Command line: TestDisk

TestDisk 6.14-WIP, Data Recovery Utility, December 2012
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 7 (7601) SP1
Compiler: GCC 4.7, Cygwin 1007.17
Compilation date: 2013-02-11T11:20:27
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)=250059350016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=16089350144
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=250059350016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=16089350144
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=233699278848
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=16089350144
filewin32_getfilesize(\\.\E:) GetFileSize err Incorrect function.

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

Warning: can't get size for \\.\E:
Hard disk list
Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63, sector size=512 - WDC WD25 00BEKT-60PVM, S/N:W -DXW153AP12326, FW:01.0
Disk /dev/sdb - 16 GB / 14 GiB - CHS 1956 255 63, sector size=512 - RICOH R5C843, S/N:0001, FW:01

Partition table type default to Intel
Disk /dev/sdb - 16 GB / 14 GiB - RICOH R5C843
Partition table type: Intel

Interface Advanced

Analyse Disk /dev/sdb - 16 GB / 14 GiB - CHS 1956 255 63
Current partition structure:

Partition sector doesn't have the endmark 0xAA55

search_part()
Disk /dev/sdb - 16 GB / 14 GiB - CHS 1956 255 63
file_pread(5,2,buffer,31425188(1956/32/33)) lseek err Invalid argument
file_pread(5,1,buffer,31425188(1956/32/33)) lseek err Invalid argument
file_pread(5,2,buffer,31425251(1956/33/33)) lseek err Invalid argument
file_pread(5,1,buffer,31425251(1956/33/33)) lseek err Invalid argument
file_pread(5,14,buffer,31424514(1956/21/52)) lseek err Invalid argument
file_pread(5,3,buffer,31424528(1956/22/3)) lseek err Invalid argument
file_pread(5,3,buffer,31424575(1956/22/50)) lseek err Invalid argument
file_pread(5,8,buffer,31424591(1956/23/3)) lseek err Invalid argument
file_pread(5,11,buffer,31424638(1956/23/50)) lseek err Invalid argument
file_pread(5,2,buffer,31426560(1956/54/19)) lseek err Invalid argument

Results

interface_write()

No partition found or selected for recovery
simulate write!

write_mbr_i386: starting...
Store new MBR code
write_all_log_i386: starting...
No extended partition

Interface Advanced

Analyse Disk /dev/sdb - 16 GB / 14 GiB - CHS 1956 255 63
Current partition structure:

Partition sector doesn't have the endmark 0xAA55

search_part()
Disk /dev/sdb - 16 GB / 14 GiB - CHS 1956 255 63
file_pread(5,2,buffer,31425188(1956/32/33)) lseek err Invalid argument
file_pread(5,1,buffer,31425188(1956/32/33)) lseek err Invalid argument
file_pread(5,2,buffer,31425251(1956/33/33)) lseek err Invalid argument
file_pread(5,1,buffer,31425251(1956/33/33)) lseek err Invalid argument
file_pread(5,14,buffer,31424514(1956/21/52)) lseek err Invalid argument
file_pread(5,3,buffer,31424528(1956/22/3)) lseek err Invalid argument
file_pread(5,3,buffer,31424575(1956/22/50)) lseek err Invalid argument
file_pread(5,8,buffer,31424591(1956/23/3)) lseek err Invalid argument
file_pread(5,11,buffer,31424638(1956/23/50)) lseek err Invalid argument
file_pread(5,2,buffer,31426560(1956/54/19)) lseek err Invalid argument

Results

interface_write()

No partition found or selected for recovery
simulate write!

write_mbr_i386: starting...
Store new MBR code
write_all_log_i386: starting...
No extended partition
Partition table type default to Intel
Disk /dev/sdb - 16 GB / 14 GiB - RICOH R5C843
Partition table type: None

Interface Advanced
P Unknown 0 0 1 1956 21 49 31424512
Change partition type:
P FAT32 0 0 1 1956 21 49 31424512

fat32_boot_sector
P FAT32 0 0 1 1956 21 49 31424512
Boot sector
Bad

Backup boot sector
Bad

First sectors (Boot code and partition information) are not identical.
Second sectors (cluster information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.

P FAT32 0 0 1 1956 21 49 31424512
rebuild_FAT_BS p_fat12 0, p_fat16 0, p_fat32 1
fat_find_type(max_offset=245568, p_fat12=0, p_fat16=0, p_fat32=1, debug=1, dump_ind=0)
No FAT found, reserved=0, fat_length=0
find_sectors_per_cluster skip_sectors=1438 (skip_offset=736256)
Can't find cluster size

fat32_boot_sector
P FAT32 0 0 1 1956 21 49 31424512
Boot sector
Bad

Backup boot sector
Bad

First sectors (Boot code and partition information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.
Change partition type:
P FAT32 0 0 1 1956 21 49 31424512

TestDisk exited normally.

Locked