Lost partition following a power failure, impossible to write partition changes

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
cooljojo
Posts: 2
Joined: 18 Mar 2020, 15:26

Lost partition following a power failure, impossible to write partition changes

#1 Post by cooljojo »

Hello everyone :) !

First, I wanted to deeply thank the team and the creator of TestDisk ;). I've never been lucky with hard drives and I had to use Testdisk on most of my HDD in the past and it always saved me. So I feel VERY grateful for what you did.

Today is the first time that I can't resolve a HDD issue by myself and I'm a bit frightened because it's about a 5TB HDD which is full of important data and I'd need your help, please :oops: .

My 5TB HDD had only 1 partition of 4,55TB but for a mysterious reason, during my attempt to recover it, various softwares (including Testdisk) detected a 500GB HDD model with 2 partitions which never existed. The power failure must have corrupted my HDD because even the original model of my HDD (WD50-EZRX) was changed for another one... But after a couple of attempts to fix a delayed sector (found by HDD Regenerator), the original HDD model with the right size was detected again. Testdisk's "Analyze" function is now detecting the right partition table but when I try to write the changes, I get a "Partition write error".

Could you help me to make the right decision in order to repair my partition, please ?

I'd be eternally grateful for your precious help :)

Details :
- I ran HDD Regenerator and all the sectors are healthy, excepted one at the beginning which was marked as "delay". The message about this sector is : "Master Boot Record of this HDD is damaged". Sector 3048 [DELAY].
- As all the others sectors are healthy, all my data are accessible & healthy. (tested with the Testdisk "List Files" function).
- I don't have another HDD to backup the data.
- I already tested various Testdisk version (7.0, 7.1).
- Testdisk Log :

Code: Select all

Wed Mar 18 18:20:07 2020
Command line: TestDisk

TestDisk 7.2-WIP, Data Recovery Utility, December 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Windows 8 (9200)
Compiler: GCC 7.4, Cygwin32 3000.3
ext2fs lib: 1.45.3, 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)=120034123776
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=5000981078016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=120034123776
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=5000981078016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=69470257152
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=49420435456
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=2199023255040
Hard disk list
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63, sector size=512 - OCZ-VERTEX2, S/N:OCZ-GHZ249HV867WP1TK, FW:1.11
Disk /dev/sdb - 5000 GB / 4657 GiB - CHS 608001 255 63, sector size=512 - WDC WD50 EZRX-00MVLB1, S/N:D11D741ADFFF

Partition table type (auto): Intel
Disk /dev/sdb - 5000 GB / 4657 GiB - WDC WD50 EZRX-00MVLB1
Partition table type: Intel

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 16/113/34
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
Error: size boot_sector 1220909568 > partition 4294967295
check_part_i386 failed for partition type 07
 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295


dir_partition inode=5
 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295
Directory /
       5 dr-xr-xr-x     0      0         0 16-Mar-2020 19:17 .
       5 dr-xr-xr-x     0      0         0 16-Mar-2020 19:17 ..
    5859 dr-xr-xr-x     0      0         0 15-Jun-2018 14:57 $RECYCLE.BIN
   80890 dr-xr-xr-x     0      0         0  6-Dec-2019 19:04 -=ADOBE=-
   43034 dr-xr-xr-x     0      0         0 29-Jan-2020 12:36 -=ANIMES=-
  142902 dr-xr-xr-x     0      0         0 26-Feb-2020 16:36 -=BUSINESS=-
   51324 dr-xr-xr-x     0      0         0  8-Sep-2019 00:28 -=COURSES=-
   34357 dr-xr-xr-x     0      0         0  4-Feb-2020 19:26 -=DOCUMENTAIRES=-
   35587 dr-xr-xr-x     0      0         0 19-Feb-2020 17:44 -=FILMS=-
   45925 dr-xr-xr-x     0      0         0  6-Feb-2020 13:20 -=GAMES VIDS=-
   81484 dr-xr-xr-x     0      0         0  3-Feb-2020 20:16 -=GAMES=-
    6363 dr-xr-xr-x     0      0         0  9-Jul-2019 20:33 -=PHOTOS=-
   33218 dr-xr-xr-x     0      0         0 24-Oct-2018 18:24 -=PHOTOSHOP=-
   84506 dr-xr-xr-x     0      0         0  9-Sep-2018 13:35 -=PROJECTS=-
      39 dr-xr-xr-x     0      0         0 19-Feb-2020 12:36 -=WORKOUT=-
   37499 dr-xr-xr-x     0      0         0  7-Mar-2020 18:09 Certified Facebook Marketing 2019 (Complete Masterclass)
   42094 dr-xr-xr-x     0      0         0  5-Jan-2018 22:24 Config.Msi
   36559 dr-xr-xr-x     0      0         0  3-Mar-2020 14:50 Content Marketing Masterclass Create Content That Sells
   28182 dr-xr-xr-x     0      0         0 29-Jan-2020 17:00 Dan Bacon
  160622 dr-xr-xr-x     0      0         0 30-Oct-2018 20:05 H
   38461 dr-xr-xr-x     0      0         0  9-Dec-2019 06:18 Instagram Marketing 2020 A Step-By-Step to 10,000 Followers
  403031 dr-xr-xr-x     0      0         0 19-Feb-2020 01:28 NEWS 3D
   30458 dr-xr-xr-x     0      0         0 16-Mar-2020 19:47 NVIDIA GeForce Desktop
    3446 dr-xr-xr-x     0      0         0  4-Oct-2019 16:54 REC
   42260 dr-xr-xr-x     0      0         0  1-Mar-2020 14:24 SUPERCHARGE your Facebook Marketing & Ads (2019)
      35 dr-xr-xr-x     0      0         0  4-Feb-2020 16:33 System Volume Information
   71185 dr-xr-xr-x     0      0         0  7-Mar-2020 22:57 WebCAM
    1035 dr-xr-xr-x     0      0         0 25-Jan-2020 12:41 X220
     204 dr-xr-xr-x     0      0         0 25-Jan-2020 00:18 Z
   34902 dr-xr-xr-x     0      0         0  7-Mar-2020 19:51 _NEW
    6546 dr-xr-xr-x     0      0         0 23-Jun-2019 17:37 _RECUP
   

ntfs_boot_sector
 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295
NTFS at 16/113/34
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
Error: size boot_sector 1220909568 > partition 4294967295
filesystem size           1220909568 10152336770853843556
sectors_per_cluster       1 67
mft_lcn                   786432 282337902
mftmirr_lcn               2 3903602413
clusters_per_mft_record   1 -67
clusters_per_index_record 1 82
Boot sector
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
Error: size boot_sector 1220909568 > partition 4294967295
Status: Bad

Backup boot sector
Status: Bad

Sectors are not identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
$MFTMirr location mismatch or first 4 records are fragmented. Run chkdsk.
Failed to load $MFTMirr: Input/output error.
Failed to startup volume: Input/output error.
$MFTMirr location mismatch or first 4 records are fragmented. Run chkdsk.
Failed to load $MFTMirr: Input/output error.
$MFTMirr location mismatch or first 4 records are fragmented. Run chkdsk.
Failed to load $MFTMirr: Input/output error.
Failed to startup volume: Input/output error.
$MFTMirr location mismatch or first 4 records are fragmented. Run chkdsk.
Failed to load $MFTMirr: Input/output error.
rebuild_NTFS_BS
mft at 16
read_mft_info failed
ntfs_find_mft: sectors_per_cluster invalid
ntfs_find_mft: mft_lcn             786432
ntfs_find_mft: mftmirr_lcn         0
ntfs_find_mft: mft_record_size     4096

mft at 6291456
ntfs_find_mft: mft_lcn             786432
ntfs_find_mft: mftmirr_lcn         0
ntfs_find_mft: sectors_per_cluster 8
ntfs_find_mft: mft_lcn             786432
ntfs_find_mft: mftmirr_lcn         0
ntfs_find_mft: mft_record_size     4096 bytes
ntfs_find_mft: index_block_size    4096
             New / Current boot sector
filesystem size           4294967295 1220909568
sectors_per_cluster       8 1
mft_lcn                   786432 786432
mftmirr_lcn               0 2
clusters_per_mft_record   1 1
clusters_per_index_record 1 1
Extrapolated boot sector and current boot sector are different.
filesystem size           4294967295 1220909568
sectors_per_cluster       8 1
mft_lcn                   786432 786432
mftmirr_lcn               0 2
clusters_per_mft_record   1 1
clusters_per_index_record 1 1
Not an exFAT boot sector.

 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295
Can't open filesystem. Filesystem seems damaged.
filesystem size           4294967295 1220909568
sectors_per_cluster       8 1
mft_lcn                   786432 786432
mftmirr_lcn               0 2
clusters_per_mft_record   1 1
clusters_per_index_record 1 1
Not an exFAT boot sector.

 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295
Can't open filesystem. Filesystem seems damaged.
filesystem size           4294967295 1220909568
sectors_per_cluster       8 1
mft_lcn                   786432 786432
mftmirr_lcn               0 2
clusters_per_mft_record   1 1
clusters_per_index_record 1 1

ntfs_boot_sector
 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295
NTFS at 16/113/34
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
Error: size boot_sector 1220909568 > partition 4294967295
filesystem size           1220909568 10152336770853843556
sectors_per_cluster       1 67
mft_lcn                   786432 282337902
mftmirr_lcn               2 3903602413
clusters_per_mft_record   1 -67
clusters_per_index_record 1 82
Boot sector
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
Error: size boot_sector 1220909568 > partition 4294967295
Status: Bad

Backup boot sector
Status: Bad

Sectors are not 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/sdb - 5000 GB / 4657 GiB - CHS 608001 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 16/113/34
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
Error: size boot_sector 1220909568 > partition 4294967295
check_part_i386 failed for partition type 07
Current partition structure:
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
Error: size boot_sector 1220909568 > partition 4294967295
Invalid NTFS or exFAT boot
 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295
 1 * HPFS - NTFS             16 113 34 267365 202 36 4294967295

search_part()
Disk /dev/sdb - 5000 GB / 4657 GiB - CHS 608001 255 63
NTFS at 16/113/34
Warning: number of bytes per sector mismatches 4096 (NTFS) != 512 (HD)
filesystem size           1220909568
sectors_per_cluster       1
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   1
clusters_per_index_record 1
     HPFS - NTFS             16 113 34 608001  74  9 9767276544 [5TB]
     NTFS, blocksize=4096, 5000 GB / 4657 GiB
file_pread(5,2,buffer,1177608192(608001/106/42)) lseek err Invalid argument
file_pread(5,1,buffer,1177608192(608001/106/42)) lseek err Invalid argument
file_pread(5,2,buffer,1177608246(608001/107/33)) lseek err Invalid argument
file_pread(5,1,buffer,1177608246(608001/107/33)) lseek err Invalid argument
file_pread(5,2,buffer,1177608255(608001/107/42)) lseek err Invalid argument
file_pread(5,1,buffer,1177608255(608001/107/42)) lseek err Invalid argument
file_pread(5,2,buffer,1177608309(608001/108/33)) lseek err Invalid argument
file_pread(5,1,buffer,1177608309(608001/108/33)) lseek err Invalid argument
file_pread(5,8,buffer,1177606656(608001/82/18)) lseek err Invalid argument
file_pread(5,1,buffer,1177606656(608001/82/18)) lseek err Invalid argument
file_pread(5,8,buffer,1177606784(608001/84/20)) lseek err Invalid argument
file_pread(5,8,buffer,1177606912(608001/86/22)) lseek err Invalid argument
file_pread(5,8,buffer,1177607040(608001/88/24)) lseek err Invalid argument
file_pread(5,8,buffer,1177607168(608001/90/26)) lseek err Invalid argument
file_pread(5,8,buffer,1177607296(608001/92/28)) lseek err Invalid argument
file_pread(5,8,buffer,1177607424(608001/94/30)) lseek err Invalid argument
file_pread(5,8,buffer,1177607552(608001/96/32)) lseek err Invalid argument
file_pread(5,8,buffer,1177607680(608001/98/34)) lseek err Invalid argument
file_pread(5,8,buffer,1177607808(608001/100/36)) lseek err Invalid argument
file_pread(5,8,buffer,1177607936(608001/102/38)) lseek err Invalid argument
file_pread(5,8,buffer,1177608064(608001/104/40)) lseek err Invalid argument
file_pread(5,8,buffer,1177608192(608001/106/42)) lseek err Invalid argument
file_pread(5,8,buffer,1177608200(608001/106/50)) lseek err Invalid argument
file_pread(5,3,buffer,1177608208(608001/106/58)) lseek err Invalid argument
file_pread(5,3,buffer,1177608255(608001/107/42)) lseek err Invalid argument
file_pread(5,8,buffer,1177608271(608001/107/58)) lseek err Invalid argument
file_pread(5,11,buffer,1177608318(608001/108/42)) lseek err Invalid argument
file_pread(5,2,buffer,1177610240(608001/139/11)) lseek err Invalid argument

Results
   * HPFS - NTFS             16 113 34 608001  74  9 9767276544 [5TB]
     NTFS, blocksize=4096, 5000 GB / 4657 GiB

interface_write()
 1 * HPFS - NTFS             16 113 34 608001  74  9 9767276544 [5TB]

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

Re: Lost partition following a power failure, impossible to write partition changes

#2 Post by cgrenier »

Use EFI GPT instead of PC Intel as your harddisk is over 4 TB.

cooljojo
Posts: 2
Joined: 18 Mar 2020, 15:26

Re: Lost partition following a power failure, impossible to write partition changes

#3 Post by cooljojo »

Thank you for your answer, cgrenier :) . I tried to specify EFI GPT instead, but I still get the "Partition Write Error" message when I try to write the partition infos.

Would you have any other idea where the "Partition Write Error" might come from, please ?

Locked