Bad relative sector

Comment utiliser TestDisk pour récupérer une partition perdue
Locked
Message
Author
JFG91
Posts: 4
Joined: 31 Jul 2015, 20:43

Bad relative sector

#1 Post by JFG91 »

Mon disque externe ne fonctionne plus.
Analyze donne :
Bad relative sector
No partition is bootable

Quick search donne :

>* HPFS - NTFS ...

Deeper search ne donne rien de plus.

Voici le log file :

ri Jul 31 21:39:28 2015
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)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=1000170586112
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=1000170586112
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Fonction incorrecte.

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

filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive3
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive4
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive5
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=1056679395328
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=943612493824
filewin32_getfilesize(\\.\E:) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\E:) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=1000170585088
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=0
Warning: can't get size for \\.\H:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=0
Warning: can't get size for \\.\I:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\J:)=0
Warning: can't get size for \\.\J:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\K:)=0
Warning: can't get size for \\.\K:
Hard disk list
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ST2000DM001-9YN164, S/N:202020202020202020202020315a314535365a4c, FW:CC4H
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121597 255 63, sector size=512 - WD My Passport 0740, S/N:WX51A41Z0401, FW:1003

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - WD My Passport 0740
Partition table type: Intel

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121597 255 63
Geometry from i386 MBR: head=255 sector=63
BAD_RS LBA=2 16450559
NTFS at 0/0/3
Current partition structure:
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174

Bad relative sector.
No partition is bootable

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121597 255 63
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
file_pread(5,2,buffer,1953458176(121597/37/41)) ReadFile Le lecteur ne trouve pas le secteur demandé.

file_pread(5,1,buffer,1953458176(121597/37/41)) ReadFile Le lecteur ne trouve pas le secteur demandé.

file_pread(5,1,buffer,1953458177(121597/37/42)) lseek err Invalid argument
file_pread(5,14,buffer,1953458178(121597/37/43)) lseek err Invalid argument
file_pread(5,3,buffer,1953458192(121597/37/57)) lseek err Invalid argument
file_pread(5,3,buffer,1953458239(121597/38/41)) lseek err Invalid argument
file_pread(5,8,buffer,1953458255(121597/38/57)) lseek err Invalid argument
file_pread(5,11,buffer,1953458302(121597/39/41)) lseek err Invalid argument
file_pread(5,2,buffer,1953460224(121597/70/10)) lseek err Invalid argument

Results
* HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB

interface_write()
1 * HPFS - NTFS 0 0 3 121597 37 40 1953458174

Merci pour votre aide !!!

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

Re: Bad relative sector

#2 Post by cgrenier »

Qu'est-ce que cela donne en faisant Testdisk, Advanced, Boot, List ?

JFG91
Posts: 4
Joined: 31 Jul 2015, 20:43

Re: Bad relative sector

#3 Post by JFG91 »

Boot donne:

Boot sector OK
Backup boot sector OK
Sectors are identical
A valid NTFS boot sector must be present etc ...

List donne :

Can't open filesystem. Filesystem seems to be damaged


Merci pour votre aide, mais tout cela semble mauvais signe, je me trompe ???

###################################################################################################

Tue Aug 4 17:32:42 2015
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)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdf)=1000170586112
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=2000398934016
filewin32_getfilesize(\\.\PhysicalDrive1) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive1) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive1
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Fonction incorrecte.

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

filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive3
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive4
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive5)=1000170586112
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=1056679395328
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=943612493824
filewin32_getfilesize(\\.\E:) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\E:) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=1000170585088
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=0
Warning: can't get size for \\.\H:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=0
Warning: can't get size for \\.\I:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\J:)=0
Warning: can't get size for \\.\J:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\K:)=0
Warning: can't get size for \\.\K:
Hard disk list
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ST2000DM001-9YN164, S/N:202020202020202020202020315a314535365a4c, FW:CC4H
Disk /dev/sdf - 1000 GB / 931 GiB - CHS 121597 255 63, sector size=512 - WD My Passport 0740, S/N:WX51A41Z0401, FW:1003

Partition table type (auto): Intel
Disk /dev/sdf - 1000 GB / 931 GiB - WD My Passport 0740
Partition table type: Intel

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
BAD_RS LBA=2 16450559
NTFS at 0/0/3
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Not an exFAT boot sector.

1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
Can't open filesystem. Filesystem seems damaged.

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Not an exFAT boot sector.

1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
Can't open filesystem. Filesystem seems damaged.

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

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

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

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

Analyse Disk /dev/sdf - 1000 GB / 931 GiB - CHS 121597 255 63
Geometry from i386 MBR: head=255 sector=63
BAD_RS LBA=2 16450559
NTFS at 0/0/3
Current partition structure:
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174

Bad relative sector.
No partition is bootable

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

Re: Bad relative sector

#4 Post by cgrenier »

Que donne un Advanced, Boot, RebuildBS, List ?

JFG91
Posts: 4
Joined: 31 Jul 2015, 20:43

Re: Bad relative sector

#5 Post by JFG91 »

Résultat de Advanced, Boot, RebuildBS, List :


Sun Aug 9 23:04:27 2015
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)=2000398934016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdf)=1000170586112
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=2000398934016
filewin32_getfilesize(\\.\PhysicalDrive1) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive1) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive1
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Fonction incorrecte.

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

filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive3
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\PhysicalDrive4
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive5)=1000170586112
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=1056679395328
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=943612493824
filewin32_getfilesize(\\.\E:) GetFileSize err Fonction incorrecte.

filewin32_setfilepointer(\\.\E:) SetFilePointer err Fonction incorrecte.

Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=1000170585088
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=0
Warning: can't get size for \\.\H:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=0
Warning: can't get size for \\.\I:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\J:)=0
Warning: can't get size for \\.\J:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\K:)=0
Warning: can't get size for \\.\K:
Hard disk list
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ST2000DM001-9YN164, S/N:202020202020202020202020315a314535365a4c, FW:CC4H
Disk /dev/sdf - 1000 GB / 931 GiB - CHS 121597 255 63, sector size=512 - WD My Passport 0740, S/N:WX51A41Z0401, FW:1003

Partition table type (auto): Intel
Disk /dev/sdf - 1000 GB / 931 GiB - WD My Passport 0740
Partition table type: Intel

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
BAD_RS LBA=2 16450559
NTFS at 0/0/3
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
rebuild_NTFS_BS
file_pread(5,1,buffer,1953458176(121597/37/41)) ReadFile Le lecteur ne trouve pas le secteur demandé.

Failed to rebuild NTFS boot sector.

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Not an exFAT boot sector.

1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
Can't open filesystem. Filesystem seems damaged.

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
Failed to startup volume: Input/output error.
$MFT has invalid magic.
ntfs_mft_load(): Failed.
Failed to load $MFT: Input/output error.
repair_MFT
NTFS at 0/0/3
MFT and MFT mirror are bad. Failed to repair them.
MFT and MFT mirror are bad. Failed to repair them.

ntfs_boot_sector
1 P HPFS - NTFS 0 0 3 121597 37 40 1953458174
NTFS, blocksize=4096, 1000 GB / 931 GiB
NTFS at 0/0/3
NTFS at 0/0/3
filesystem size 1953458174
sectors_per_cluster 8
mft_lcn 3
mftmirr_lcn 122091135
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

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

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

Re: Bad relative sector

#6 Post by cgrenier »

A priori, c'est fichu avec TestDisk. Il va falloir utiliser PhotoRec (selectionner le disque puis la partition puis Whole et non Free).
http://www.cgsecurity.org/wiki/PhotoRec_Etape_par_Etape

JFG91
Posts: 4
Joined: 31 Jul 2015, 20:43

Re: Bad relative sector

#7 Post by JFG91 »

Merci pour votre aide et bravo pour votre outil de récupération même si ça n'a pas marché pour moi.

Locked