Recover 32GB USB Key

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
pcaston2
Posts: 1
Joined: 16 Oct 2012, 20:17

Recover 32GB USB Key

#1 Post by pcaston2 »

I was using my USB Key when all of a sudden my apps that I had on it were starting to die. Windows said I needed to format my drive before using it.

I tried different machines, rebooting, etc, no luck.

Stumbled onto testdisk and tried it, managed to find my files and export them all to my computer.

Unfortunately I got the error that

The harddisk (32 GB / 29 GiB) seems too small! (< 1085 GB / 1010 GiB)

I realize other people have experienced this before but the main threads I've looked down didn't solve the problem for me.

Here is my log file:

Tue Oct 16 15:15:23 2012
Command line: TestDisk

TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP SP3
Compiler: GCC 4.3, Cygwin 1007.7
Compilation date: 2011-11-15T08:36:54
ext2fs lib: 1.41.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20100226
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=160041885696
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=32054968320
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=160041885696
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=32054968320
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=160039240704
filewin32_getfilesize(\\.\D:) GetFileSize err Incorrect function.

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

Warning: can't get size for \\.\D:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=32062125056
file_pread(4,1,buffer,312592769(19457/254/63)) lseek err Invalid argument
file_pread(5,1,buffer,62621369(3897/254/63)) lseek err Invalid argument
Hard disk list
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - TOSHIBA MK1655GSX, FW:FG011C
Disk /dev/sdb - 32 GB / 29 GiB - CHS 3897 255 63, sector size=512 - Sony Storage Media, FW:0100

Partition table type (auto): Intel
Disk /dev/sdb - 32 GB / 29 GiB - Sony Storage Media
Partition table type: Intel

Analyse Disk /dev/sdb - 32 GB / 29 GiB - CHS 3897 255 63
Geometry from i386 MBR: head=255 sector=63
FAT32 at 0/0/33
Info: size boot_sector 62621338, partition 62621338
FAT1 : 32-7679
FAT2 : 7680-15327
start_rootdir : 15328 root cluster : 2
Data : 15328-62621279
sectors : 62621338
cluster_size : 64
no_of_cluster : 978218 (2 - 978219)
fat_length 7648 calculated 7643
FAT differs, FAT sectors=0-16/7648
Current partition structure:
1 * FAT32 LBA 0 0 33 3897 254 63 62621338 [MULTIBOOT]
Ask the user for vista mode
Computes LBA from CHS for Disk /dev/sdb - 32 GB / 29 GiB - CHS 3898 255 63
Allow partial last cylinder : Yes
search_vista_part: 1

search_part()
Disk /dev/sdb - 32 GB / 29 GiB - CHS 3898 255 63
FAT32 at 0/0/33
FAT1 : 32-7679
FAT2 : 7680-15327
start_rootdir : 15328 root cluster : 2
Data : 15328-62621279
sectors : 62621338
cluster_size : 64
no_of_cluster : 978218 (2 - 978219)
fat_length 7648 calculated 7643
FAT differs, FAT sectors=0-16/7648

FAT32 at 0/0/33
FAT32 LBA 0 0 33 3897 254 63 62621338 [MULTIBOOT]
FAT32, 32 GB / 29 GiB
file_pread(5,8,buffer,62621370(3898/0/1)) lseek err Invalid argument
file_pread(5,1,buffer,62621370(3898/0/1)) lseek err Invalid argument
file_pread(5,8,buffer,62621378(3898/0/9)) lseek err Invalid argument
file_pread(5,3,buffer,62621386(3898/0/17)) lseek err Invalid argument
file_pread(5,3,buffer,62621433(3898/1/1)) lseek err Invalid argument
file_pread(5,8,buffer,62621449(3898/1/17)) lseek err Invalid argument
file_pread(5,11,buffer,62621496(3898/2/1)) lseek err Invalid argument
file_pread(5,2,buffer,62623418(3898/32/33)) lseek err Invalid argument

Results
* FAT32 LBA 0 0 33 3897 254 63 62621338 [MULTIBOOT]
FAT32, 32 GB / 29 GiB

interface_write()
1 * FAT32 LBA 0 0 33 3897 254 63 62621338 [MULTIBOOT]

search_part()
Disk /dev/sdb - 32 GB / 29 GiB - CHS 3898 255 63
FAT32 at 0/0/33
FAT1 : 32-7679
FAT2 : 7680-15327
start_rootdir : 15328 root cluster : 2
Data : 15328-62621279
sectors : 62621338
cluster_size : 64
no_of_cluster : 978218 (2 - 978219)
fat_length 7648 calculated 7643
FAT differs, FAT sectors=0-16/7648

FAT32 at 0/0/33
FAT32 LBA 0 0 33 3897 254 63 62621338 [MULTIBOOT]
FAT32, 32 GB / 29 GiB
BAD_RS LBA=694099968 8225439
file_pread(5,3,buffer,694099968(43205/184/52)) lseek err Invalid argument
file_pread(5,1,buffer,694099968(43205/184/52)) lseek err Invalid argument
check_FAT: can't read FAT boot sector
check_part_i386 failed for partition type 01
FAT12 43205 184 52 131974 17 13 1426063426
This partition ends after the disk limits. (start=694099968, size=1426063426, end=2120163393, disk end=62621370)
file_pread(5,2,buffer,62607416(3897/33/33)) lseek err Invalid argument
file_pread(5,1,buffer,62607416(3897/33/33)) lseek err Invalid argument
file_pread(5,7,buffer,62607361(3897/32/41)) lseek err Invalid argument
file_pread(5,1,buffer,62607361(3897/32/41)) lseek err Invalid argument
file_pread(5,8,buffer,62607368(3897/32/48)) lseek err Invalid argument
file_pread(5,3,buffer,62607376(3897/32/56)) lseek err Invalid argument
file_pread(5,3,buffer,62607423(3897/33/40)) lseek err Invalid argument
file_pread(5,8,buffer,62607439(3897/33/56)) lseek err Invalid argument
file_pread(5,11,buffer,62607486(3897/34/40)) lseek err Invalid argument
file_pread(5,2,buffer,62609408(3897/65/9)) lseek err Invalid argument
Disk /dev/sdb - 32 GB / 29 GiB - CHS 3898 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (32 GB / 29 GiB) seems too small! (< 1085 GB / 1010 GiB)
The following partition can't be recovered:
FAT12 43205 184 52 131974 17 13 1426063426

Results
* FAT32 LBA 0 0 33 3897 254 63 62621338 [MULTIBOOT]
FAT32, 32 GB / 29 GiB

interface_write()
1 * FAT32 LBA 0 0 33 3897 254 63 62621338 [MULTIBOOT]

Any advice would be appreciated, like I said I saved the files but I'd like to get the drive back to working if possible, basically I have to rebuild it otherwise.

Locked