partition can't be recovered / partition ends after disk limits

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
ranteso69
Posts: 1
Joined: 08 Nov 2017, 17:15

partition can't be recovered / partition ends after disk limits

#1 Post by ranteso69 »

I'm trying to fix an USB flash drive (ADATA C906/16GB), that I have unplugged it while it was still operating, and now appears as RAW in Windows Disk Management.

I ran TestDisk on it with no luck. After a quick and depper searches, It finds the partition I'm looking for, but I get the following errors:

Disk /dev/sdg - 15 GB / 14 GiB - CHS 1886 255 63
The harddisk (15 GB / 14 GiB) seems too small! (< 26 GB / 24 GiB)
The following partition can't be recovered:
FAT32 LBA 1336 35 44 3222 221 7 30310272 [NO NAME]

and

This partition ends after the disk limits. (start=21465088, size=30310272, end=51775359, disk end=30310528)

Here are the results of the logfile:

====================================================================================================================================

Wed Nov 8 17:17:58 2017
Command line: TestDisk

TestDisk 7.1-WIP, Data Recovery Utility, October 2017
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP SP3
Compiler: GCC 5.4, Cygwin32 2005.2
ext2fs lib: 1.43.1, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.0
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=160041885696
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdg)=15518990336
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=320072933376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=160041885696
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\PhysicalDrive2
filewin32_getfilesize(\\.\PhysicalDrive3) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\PhysicalDrive3
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\PhysicalDrive4
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\PhysicalDrive5
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive6)=15518990336
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=160031015424
filewin32_getfilesize(\\.\D:) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\D:) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\D:
filewin32_getfilesize(\\.\F:) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\F:) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\F:
filewin32_getfilesize(\\.\G:) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\G:) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\G:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=320062063104
filewin32_getfilesize(\\.\I:) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\I:) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\I:
filewin32_getfilesize(\\.\J:) GetFileSize err Función incorrecta.

filewin32_setfilepointer(\\.\J:) SetFilePointer err Función incorrecta.

Warning: can't get size for \\.\J:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\K:)=15518990336
Hard disk list
Disk /dev/sda - 320 GB / 298 GiB - CHS 38913 255 63, sector size=512 - WDC WD3200AAKX-001CA0, FW:15.01H15
Disk /dev/sdb - 160 GB / 149 GiB - CHS 19457 255 63, sector size=512 - WDC WD1600JD-22HBC0, FW:08.02D08
Disk /dev/sdg - 15 GB / 14 GiB - CHS 1886 255 63, sector size=512 - ADATA USB Flash Drive, FW:1.00

Partition table type defaults to Intel
Partition table type defaults to Intel
Disk /dev/sdg - 15 GB / 14 GiB - ADATA USB Flash Drive
Partition table type: Intel

Analyse Disk /dev/sdg - 15 GB / 14 GiB - CHS 1886 255 63
Current partition structure:

Partition sector doesn't have the endmark 0xAA55

search_part()
Disk /dev/sdg - 15 GB / 14 GiB - CHS 1886 255 63
FAT32 at 1336/35/44
FAT1 : 36-14821
FAT2 : 14822-29607
start_rootdir : 29608 root cluster : 2
Data : 29608-30310263
sectors : 30310272
cluster_size : 16
no_of_cluster : 1892541 (2 - 1892542)
fat_length 14786 calculated 14786
FAT differs, FAT sectors=0-16/14786
set_FAT_info: name from BS used

FAT32 at 1336/35/44
FAT: cluster=2(0x2), pos=21494696
FAT32 LBA 1336 35 44 3222 221 7 30310272 [NO NAME]
FAT32, blocksize=8192, 15 GB / 14 GiB
This partition ends after the disk limits. (start=21465088, size=30310272, end=51775359, disk end=30310528)
file_pread(6,11,buffer,30310525(1886/189/29)) ReadFile La unidad no puede hallar el sector requerido.

file_pread(6,1,buffer,30310528(1886/189/32)) ReadFile La unidad no puede hallar el sector requerido.

file_pread(6,2,buffer,30312447(1886/219/61)) lseek err Invalid argument
file_pread(6,8,buffer,30310529(1886/189/33)) lseek err Invalid argument
file_pread(6,1,buffer,30312449(1886/219/63)) lseek err Invalid argument
file_pread(6,14,buffer,30312450(1886/220/1)) lseek err Invalid argument
file_pread(6,3,buffer,30312464(1886/220/15)) lseek err Invalid argument
file_pread(6,3,buffer,30312511(1886/220/62)) lseek err Invalid argument
file_pread(6,8,buffer,30312527(1886/221/15)) lseek err Invalid argument
file_pread(6,11,buffer,30312574(1886/221/62)) lseek err Invalid argument
file_pread(6,2,buffer,30314496(1886/252/31)) lseek err Invalid argument
Disk /dev/sdg - 15 GB / 14 GiB - CHS 1886 255 63
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (15 GB / 14 GiB) seems too small! (< 26 GB / 24 GiB)
The following partition can't be recovered:
FAT32 LBA 1336 35 44 3222 221 7 30310272 [NO NAME]
FAT32, blocksize=8192, 15 GB / 14 GiB

Results

interface_write()

No partition found or selected for recovery

search_part()
Disk /dev/sdg - 15 GB / 14 GiB - CHS 1886 255 63
FAT32 at 1336/35/44
FAT1 : 36-14821
FAT2 : 14822-29607
start_rootdir : 29608 root cluster : 2
Data : 29608-30310263
sectors : 30310272
cluster_size : 16
no_of_cluster : 1892541 (2 - 1892542)
fat_length 14786 calculated 14786
FAT differs, FAT sectors=0-16/14786
set_FAT_info: name from BS used

FAT32 at 1336/35/44
FAT: cluster=2(0x2), pos=21494696
FAT32 LBA 1336 35 44 3222 221 7 30310272 [NO NAME]
FAT32, blocksize=8192, 15 GB / 14 GiB
(start=21465088, size=30310272, end=51775359, disk end=30310528)
file_pread(6,11,buffer,30310525(1886/189/29)) ReadFile La unidad no puede hallar el sector requerido.

file_pread(6,1,buffer,30310528(1886/189/32)) ReadFile La unidad no puede hallar el sector requerido.

file_pread(6,2,buffer,30312447(1886/219/61)) lseek err Invalid argument
file_pread(6,8,buffer,30310529(1886/189/33)) lseek err Invalid argument
file_pread(6,1,buffer,30312449(1886/219/63)) lseek err Invalid argument
Disk /dev/sdg - 15 GB / 14 GiB - CHS 1886 255 63
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (15 GB / 14 GiB) seems too small! (< 26 GB / 24 GiB)
The following partition can't be recovered:
FAT32 LBA 1336 35 44 3222 221 7 30310272 [NO NAME]
FAT32, blocksize=8192, 15 GB / 14 GiB

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

TestDisk exited normally.

=======================================================================================================================

Any help will be appreciated.

Javier.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: partition can't be recovered / partition ends after disk limits

#2 Post by cgrenier »

I don't think this FAT32 boot sector was defined by one of your partition, it's too far from the beginning of the disk.
Try PhotoRec to recover your data.

Locked