How to recover from Bad relative sector and Space Conflict?

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
BobW
Posts: 2
Joined: 22 Dec 2013, 21:04

How to recover from Bad relative sector and Space Conflict?

#1 Post by BobW »

I had two identically formatted NTFS 300 GB drives, L: (dev/sdc) and M: (dev/sdb). USB 3.0, Windows 7 / 32-bit. Drive M: is still fine, but after attempting to use Lenovo Rescue and Recovery to back up drive C: to drive L:, I almost immediately got an R&R "internal error" and terminated the program. At that point, L: was no longer usable.

TestDisk Scan and deeper scan show no partitions found. :cry:

I would like to recover the partition table and file system of drive L:, but I don't know how to proceed given the errors logged below. The log shows both the bad (L:) and the good (M:) drives, for reference. Windows disk manager shows the L: drive as correct size and "healthy" but "RAW". FYI, both 300GB eSATA drives are connected to a Thermaltake BlackXDuet (dual drive) external USB device via a common USB 3.0 cable.

Log follows. I think I interrupted the scan in this run, because it took a long time the first time, and I forgot to turn on logging before I ran it. I can re-run both scan and deeper scan again with logging on if still required, but the first time they showed no partitions found.

Code: Select all

Thu Dec 19 09:17:40 2013
Command line: TestDisk

TestDisk 6.14, Data Recovery Utility, July 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-07-30T14:08:52
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)=300069052416
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=300069052416
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdd)=14909440
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=250059350016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=300069052416
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=300069052416
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive3)=14909440
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=238313013248
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(\\.\E:)=14880256
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\L:)=300069052416
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\M:)=300066799616
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\Q:)=10485760000
Hard disk list
Disk /dev/sda - 250 GB / 232 GiB - CHS 32301 240 63, sector size=512 - ST925041 1AS, S/N:5VG2RMMD, FW:0003
Disk /dev/sdb - 300 GB / 279 GiB - CHS 36481 255 63, sector size=512 - ST330062 2AS
Disk /dev/sdc - 300 GB / 279 GiB - CHS 36481 255 63, sector size=512 - ST330062 2AS
Disk /dev/sdd - 14 MB / 14 MiB - CHS 1 255 63, sector size=512 - RICOH R5U880FlashMedia, FW:0000

Partition table type (auto): None
Disk /dev/sdc - 300 GB / 279 GiB - ST330062 2AS
Partition table type: Intel

Analyse Disk /dev/sdc - 300 GB / 279 GiB - CHS 36481 255 63
Geometry from i386 MBR: head=115 sector=52
BAD_RS LBA=1936269394 5382406
check_part_i386 1 type 4F: no test
BAD_RS LBA=1917848077 5967333
check_part_i386 2 type 73: no test
BAD_RS LBA=1818575915 5855017
check_part_i386 3 type 2B: no test
BAD_RS LBA=2844524554 5982593
check_part_i386 4 type 61: no test
Current partition structure:
 1 * Sys=4F               120527  49 53 234813 237 34 1836016416

Bad relative sector.
 2 * Sys=73               119380 132 62 153270  41 37  544437093

Bad relative sector.
 3 * Sys=2B               113201  29 24 147074 114 59  544175136

Bad relative sector.
 4 * SpeedStor            177063 118 26 177066 225 63      54974

Bad relative sector.
Only one partition must be bootable
Space conflict between the following two partitions
 3 * Sys=2B               113201  29 24 147074 114 59  544175136
 2 * Sys=73               119380 132 62 153270  41 37  544437093
Space conflict between the following two partitions
 2 * Sys=73               119380 132 62 153270  41 37  544437093
 1 * Sys=4F               120527  49 53 234813 237 34 1836016416
Space conflict between the following two partitions
 1 * Sys=4F               120527  49 53 234813 237 34 1836016416
 4 * SpeedStor            177063 118 26 177066 225 63      54974

search_part()
Disk /dev/sdc - 300 GB / 279 GiB - CHS 36481 255 63
file_pread(6,1,buffer,586074111(36481/108/43)) lseek err Invalid argument
file_pread(6,1,buffer,586074112(36481/108/44)) lseek err Invalid argument
file_pread(6,14,buffer,586074113(36481/108/45)) lseek err Invalid argument
file_pread(6,3,buffer,586074127(36481/108/59)) lseek err Invalid argument
file_pread(6,3,buffer,586074174(36481/109/43)) lseek err Invalid argument
file_pread(6,8,buffer,586074190(36481/109/59)) lseek err Invalid argument
file_pread(6,11,buffer,586074237(36481/110/43)) lseek err Invalid argument
file_pread(6,2,buffer,586076159(36481/141/12)) lseek err Invalid argument
Search for partition aborted

Results

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

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Partition table type (auto): Intel
Disk /dev/sdb - 300 GB / 279 GiB - ST330062 2AS
Partition table type: Intel

Analyse Disk /dev/sdb - 300 GB / 279 GiB - CHS 36481 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
Current partition structure:
 1 P HPFS - NTFS              0  32 33 36481  43 42  586067968 [BobX200s_M]
No partition is bootable

search_part()
Disk /dev/sdb - 300 GB / 279 GiB - CHS 36481 255 63
NTFS at 0/32/33
filesystem size           586067968
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              0  32 33 36481  43 42  586067968 [BobX200s_M]
     NTFS, blocksize=4096, 300 GB / 279 GiB
file_pread(5,2,buffer,586074112(36481/108/44)) lseek err Invalid argument
file_pread(5,1,buffer,586074112(36481/108/44)) lseek err Invalid argument
file_pread(5,8,buffer,586072448(36481/82/18)) lseek err Invalid argument
file_pread(5,1,buffer,586072448(36481/82/18)) lseek err Invalid argument
file_pread(5,8,buffer,586072576(36481/84/20)) lseek err Invalid argument
file_pread(5,8,buffer,586072704(36481/86/22)) lseek err Invalid argument
file_pread(5,8,buffer,586072832(36481/88/24)) lseek err Invalid argument
file_pread(5,8,buffer,586072960(36481/90/26)) lseek err Invalid argument
file_pread(5,8,buffer,586073088(36481/92/28)) lseek err Invalid argument
file_pread(5,8,buffer,586073216(36481/94/30)) lseek err Invalid argument
file_pread(5,8,buffer,586073344(36481/96/32)) lseek err Invalid argument
file_pread(5,8,buffer,586073472(36481/98/34)) lseek err Invalid argument
file_pread(5,8,buffer,586073600(36481/100/36)) lseek err Invalid argument
file_pread(5,8,buffer,586073728(36481/102/38)) lseek err Invalid argument
file_pread(5,8,buffer,586073856(36481/104/40)) lseek err Invalid argument
file_pread(5,8,buffer,586073984(36481/106/42)) lseek err Invalid argument
file_pread(5,1,buffer,586074111(36481/108/43)) lseek err Invalid argument
file_pread(5,1,buffer,586074112(36481/108/44)) lseek err Invalid argument
file_pread(5,14,buffer,586074113(36481/108/45)) lseek err Invalid argument
file_pread(5,3,buffer,586074127(36481/108/59)) lseek err Invalid argument
file_pread(5,3,buffer,586074174(36481/109/43)) lseek err Invalid argument
file_pread(5,8,buffer,586074190(36481/109/59)) lseek err Invalid argument
file_pread(5,11,buffer,586074237(36481/110/43)) lseek err Invalid argument
file_pread(5,2,buffer,586076159(36481/141/12)) lseek err Invalid argument

Results
   * HPFS - NTFS              0  32 33 36481  43 42  586067968 [BobX200s_M]
     NTFS, blocksize=4096, 300 GB / 279 GiB

interface_write()
 1 * HPFS - NTFS              0  32 33 36481  43 42  586067968 [BobX200s_M]
simulate write!

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

TestDisk exited normally.
Any hope or is file-by-file recovery via PhotoRec my only option at this point?

BobW
Posts: 2
Joined: 22 Dec 2013, 21:04

Re: How to recover from Bad relative sector and Space Confli

#2 Post by BobW »

Problem resolved, all files recovered! :P

My big mistake was in Partition Table Type selection. I was always moving the cursor from None to Intel. Today I found another post with similar error messages, and a suggestion to just leave the selection at None and just press Enter. Then TestDisk immediately found the NTFS partition and reported Boot Sector: Bad, Backup Boot Sector: OK, just as shown in the example in the step-by-step tutorial, under NTFS Boot sector recovery (http://www.cgsecurity.org/wiki/TestDisk ... r_recovery).

I pressed Enter again with Backup BS highlighted to restore the boot sector from the backup, quit TestDisk, restarted Windows 7, and everything is OK! CHKDSK reports no errors.

Thank you TestDisk! Full disk recovery has to be the best Christmas present that I'll get this year! :D

Locked