Disk size error recoverinng a both repartitioned and formated disk

Using TestDisk to repair the filesystem
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
Maximice
Posts: 6
Joined: 01 Jun 2023, 22:38

Disk size error recoverinng a both repartitioned and formated disk

#1 Post by Maximice »

I need help finishing repairing filesystem.

I had a secondary data disk (8TB external USB) GPT with 2 partitions. First one it was small and I do not know if it was for recovery or EFI or system. Second one it was a large NTFS partition taking out the rest of the disk with all the data I want to recover.

By mistake:

1.- I deleted both partitions
2.- I create a new one taking out the whole disk space.
3.- I formated it as FAT32, which resulted in a 2TB partition at the beginning (the maximum size of a FAT32 partition) and 5.28TB (the rest) of unallocated space at the end

The disk is healthy and I I haven't modify any data on that disk after that.

I want to recover the NTFS partition

Using Testdrive I first chose searching for "EFI GPT" partitions:

Code: Select all

TestDisk 7.2-WIP, Data Recovery Utility, February 2023
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - CHS 972801 255 63

Current partition structure:  
Partition                       Start End       Size in sectors
1 P MS Data                     2048 4294943632 4294941585     [Basic data partition] [NO NAME]

  
Then I stopped "quick Search"as could take 15 days being such a big disk and USB.

While analysing cylinder shows this:

Code: Select all

Analyse cylinder 972801/972800: 99%      
                                                                                                                                                                                                                                                                                                                                
 MS Data                     2048 4294943632 4294941585 [NO NAME]  
 MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive
 MS Data               15628052479 31255840766 15627788288                                                                                                                            
 
 
But as it finishes it shows this error:

Code: Select all

Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - CHS 972801 255 63

The hard disk (8001 GB / 7452 GiB) seems too small! (< 16 TB / 14 TiB)
 Check the hard disk size: HD jumper settings, BIOS detection...
 
 The following partition can't be recovered:
 Partition                               Start        End    Size in sectors
 >  MS Data               15628052479 31255840766 15627788288                                                                                                                                  

Finally it founded:

Code: Select all

Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - CHS 972801 255 63 
  Partition               Start        End    Size in sectors 
>D MS Data                     2048 4294943632 4294941585 [NO NAME]
D MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]   

If I choose the second ond and try to list the files I got another error:

Code: Select all

Can't open filesystem. Filesystem seems damaged. 
So cannot finish the recovery.

Reading the log file (below) it mentions about the NTFS partition ends after the disk limits. My guess is that Testdisk missread the disk size as 2Tb (the FAT32 partition instead 8TB. Should I repartition the disk again choosing other filesystem but FAT32 able to take up the whole 8TB disk? (You know fat32 only can reach 2TB), and then run Testdisk again? Or repartitioning and reformatting twice could turn out to be irreparable?

Code: Select all


Fri Jun  2 00:43:29 2023
Command line: TestDisk

TestDisk 7.2-WIP, Data Recovery Utility, February 2023
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Windows 8 (9200)
Compiler: GCC 11.2, Cygwin 3001.4
ext2fs lib: 1.45.3, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.1
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=500107862016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive3)=200049647616
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive4)=480103981056
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive5)=1000204886016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive6)=8001563221504
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=478797242368
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=199914160128
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=500104200192
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=499446177792
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=500104200704
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\J:)=2199010091520
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\K:)=1000201224192
Hard disk list
Disk \\.\PhysicalDrive0 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - CT500MX500SSD1, S/N:1849E1DC5FBE, FW:M3CR023
Disk \\.\PhysicalDrive1 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - HGST HTS725050A7E630, S/N:130503TF0500Y90A2AGL, FW:GH2OA420
Disk \\.\PhysicalDrive2 - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - WDC WD5000AADS-00S9B0, S/N:WD-WCAV9W057291, FW:01.00A01
Disk \\.\PhysicalDrive3 - 200 GB / 186 GiB - CHS 24321 255 63, sector size=512 - ST3200820AS, S/N:5QE0XNVS, FW:3.AAD
Disk \\.\PhysicalDrive4 - 480 GB / 447 GiB - CHS 58369 255 63, sector size=512 - KINGSTON SM2280S3G2480G, S/N:50026B725C084FFD, FW:SAFM01.R
Disk \\.\PhysicalDrive5 - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - JMicron Tech, S/N:000000778899, FW:1201
Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - CHS 972801 255 63, sector size=512 - Seagate Backup+ Hub BK, S/N:NA9RCN5K, FW:D781

Partition table type (auto): EFI GPT
Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - Seagate Backup+ Hub BK
Partition table type: EFI GPT

Analyse Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - CHS 972801 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=15628053166 (expected 15628053166)
hdr_lba_start=34
hdr_lba_end=15628053133
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
 1 P MS Data                     2048 4294943632 4294941585 [Basic data partition] [NO NAME]

search_part()
Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - CHS 972801 255 63
FAT32 at 0/32/33
FAT1 : 2048-264191
FAT2 : 264192-526335
start_rootdir : 526336 root cluster : 2
Data : 526336-4294941567
sectors : 4294941585
cluster_size : 128
no_of_cluster : 33550119 (2 - 33550120)
fat_length 262144 calculated 262111
set_FAT_info: name from BS used

FAT32 at 0/32/33
FAT: cluster=2(0x2), pos=528384
     MS Data                     2048 4294943632 4294941585 [NO NAME]
     FAT32, blocksize=65536, 2199 GB / 2047 GiB
NTFS at 972801/70/5
filesystem size           15627788288
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
NTFS at 972801/70/5
filesystem size           15627788288
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS: Can't read MFT
     MS Data               15628052479 31255840766 15627788288
     NTFS, blocksize=4096, 8001 GB / 7451 GiB
This partition ends after the disk limits. (start=15628052479, size=15627788288, end=31255840766, disk end=15628053167)
file_win32_pread(600,3,buffer,15628052495(972801/70/21)) read err: read after end of file
file_win32_pread(600,3,buffer,15628052542(972801/71/5)) read err: read after end of file
file_win32_pread(600,8,buffer,15628052558(972801/71/21)) read err: read after end of file
file_win32_pread(600,11,buffer,15628052605(972801/72/5)) read err: read after end of file
file_win32_pread(600,1,buffer,15628052498(972801/70/24)) read err: read after end of file
file_win32_pread(600,1,buffer,15628052545(972801/71/8)) read err: read after end of file
file_win32_pread(600,1,buffer,15628052566(972801/71/29)) read err: read after end of file
file_win32_pread(600,1,buffer,15628052616(972801/72/16)) read err: read after end of file
file_win32_pread(600,1,buffer,15628052538(972801/71/1)) read err: read after end of file
file_win32_pread(600,1,buffer,15628052539(972801/71/2)) read err: read after end of file
file_win32_pread(600,14,buffer,15628052540(972801/71/3)) read err: read after end of file
file_win32_pread(600,3,buffer,15628052554(972801/71/17)) read err: read after end of file
file_win32_pread(600,3,buffer,15628052601(972801/72/1)) read err: read after end of file
file_win32_pread(600,8,buffer,15628052617(972801/72/17)) read err: read after end of file
file_win32_pread(600,11,buffer,15628052664(972801/73/1)) read err: read after end of file
file_win32_pread(600,2,buffer,15628052557(972801/71/20)) read err: read after end of file
file_win32_pread(600,3,buffer,15628052559(972801/71/22)) read err: read after end of file
file_win32_pread(600,3,buffer,15628052606(972801/72/6)) read err: read after end of file
file_win32_pread(600,5,buffer,15628052625(972801/72/25)) read err: read after end of file
file_win32_pread(600,5,buffer,15628052675(972801/73/12)) read err: read after end of file
file_win32_pread(600,13,buffer,15628052604(972801/72/4)) read err: read after end of file
file_win32_pread(600,8,buffer,15628052680(972801/73/17)) read err: read after end of file
file_win32_pread(600,11,buffer,15628052727(972801/74/1)) read err: read after end of file
Search for partition aborted
Disk \\.\PhysicalDrive6 - 8001 GB / 7452 GiB - CHS 972801 255 63
Check the hard disk size: HD jumper settings, BIOS detection...
The hard disk (8001 GB / 7452 GiB) seems too small! (< 16 TB / 14 TiB)
The following partition can't be recovered:
     MS Data               15628052479 31255840766 15627788288
     NTFS, blocksize=4096, 8001 GB / 7451 GiB

Results
     MS Data                     2048 4294943632 4294941585 [NO NAME]
     FAT32, blocksize=65536, 2199 GB / 2047 GiB
     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
Failed to startup volume: Invalid argument.
file_win32_pread(600,1,buffer,15628052479(972801/70/5)) read err: read after end of file

     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
Can't open filesystem. Filesystem seems damaged.
SIGHUP detected! PhotoRec has been killed.

Thanks

Maximice
Posts: 6
Joined: 01 Jun 2023, 22:38

Re: Disk size error recoverinng a both repartitioned and formated disk

#2 Post by Maximice »

By the way when conecting the usb externa drive to SATA instead I was able to find the partition and list the files in test disk. But before trying to write the partition I cloned the disk (dd command) tand I am playing with a clone one.

It found the NTFS partition I want to recover but before write it I got these warnings:

Code: Select all


Boot sector
Status: Bad

Backup boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Status: OK

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.


I proceed anyway writing it and I got this result:

Code: Select all


Boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Status: OK

Backup boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
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.
Then Linux cannot mount the disk.

In Windows I can see the Unit letter but I cannot access. But I can see in a partition AOMEI partition manager software the original partition schem I was trying to recover. Trying to do chkdsk windows command I got this result:

Code: Select all

C:\Users\choco>chkdsk e:
The type of the file system is NTFS.
Access is denied.

Volume label is Seagate Backup Plus Drive.

WARNING!  /F parameter not specified.
Running CHKDSK in read-only mode.
Read-only chkdsk found bad on-disk uppercase table - using system table.

Stage 1: Examining basic file system structure ...
  327424 file records processed.
File verification completed.
 Phase duration (File record verification): 4.28 seconds.
  25 large file records processed.
 Phase duration (Orphan file record recovery): 0.27 milliseconds.
  0 bad file records processed.
 Phase duration (Bad file record checking): 0.25 milliseconds.

Stage 2: Examining file name linkage ...
Error detected in index $SII for file 9.
Error detected in index $SII for file 9.
  2620 reparse records processed.
Error detected in index $I30 for file 60.
Error detected in index $I30 for file 60.
Error detected in index $I30 for file 6A.
Error detected in index $I30 for file 6A.
Error detected in index $I30 for file 8B.
Error detected in index $I30 for file 8B.
Error detected in index $I30 for file B0.
Error detected in index $I30 for file B0.
Error detected in index $I30 for file 22E.
Error detected in index $I30 for file 22E.
Error detected in index $I30 for file 125EA.
Error detected in index $I30 for file 125EA.
  387246 index entries processed.
Index verification completed.
 Phase duration (Index verification): 41.11 seconds.

Errors found.  CHKDSK cannot continue in read-only mode.
I think I am close to solve it but I need your advice to fix the partition.

¿Should I removed the red only protection chkdsk finds (with diskpart maybe)?
¿Should I try the MBR option in testdisk even my disk is GPT/EFI?

Could the problem be that this cloned disk was 1 sector smaller than the original one?
Could the problem be that I use the DD command with the "bs=1M" parameter (for faster clonning) altough my original block size disk has 512 bytes?

This was the full testdisk.log:

Code: Select all




Sat Jun  3 12:03:22 2023
Command line: TestDisk

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Linux, kernel 5.15.0-25-generic (#25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022) x86_64
Compiler: GCC 11.2
ext2fs lib: 1.46.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.3
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       7814037168 sectors
/dev/sda: user_max   7814037168 sectors
/dev/sda: native_max 7814037168 sectors
/dev/sdb: LBA, HPA, LBA48, DCO support
/dev/sdb: size       15628053168 sectors
/dev/sdb: user_max   15628053168 sectors
/dev/sdb: native_max 15628053168 sectors
/dev/sdd: LBA, HPA, LBA48, DCO support
/dev/sdd: size       937703088 sectors
/dev/sdd: user_max   937703088 sectors
/dev/sdd: native_max 937703088 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop9 - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 4000 GB / 3726 GiB - CHS 486401 255 63, sector size=512 - WDC WD40EFRX-68WT0N0, S/N:WD-WCC4E3AKJTZ8, FW:82.00A82
Disk /dev/sdb - 8001 GB / 7452 GiB - CHS 972801 255 63, sector size=512 - ST8000DM004-2CX188, S/N:ZCT3XSMG, FW:0001
Disk /dev/sdc - 8001 GB / 7452 GiB - CHS 7630885 64 32, sector size=512 - Seagate Desktop, FW:040B
Disk /dev/sdd - 480 GB / 447 GiB - CHS 58369 255 63, sector size=512 - KINGSTON SM2280S3G2480G, S/N:50026B725C084FFD, FW:SAFM01.R
Disk /dev/sdg - 123 GB / 115 GiB - CHS 15042 255 63, sector size=512 - Kingston DataTraveler 3.0
Disk /dev/loop0 - 2599 MB / 2479 MiB - 5077904 sectors (RO), sector size=512
Disk /dev/loop1 - 4096 B - 8 sectors (RO), sector size=512
Disk /dev/loop2 - 64 MB / 61 MiB - 126760 sectors (RO), sector size=512
Disk /dev/loop3 - 163 MB / 155 MiB - 318728 sectors (RO), sector size=512
Disk /dev/loop4 - 260 MB / 248 MiB - 509456 sectors (RO), sector size=512
Disk /dev/loop5 - 85 MB / 81 MiB - 166424 sectors (RO), sector size=512
Disk /dev/loop6 - 45 MB / 43 MiB - 89352 sectors (RO), sector size=512
Disk /dev/loop7 - 290 KB / 284 KiB - 568 sectors (RO), sector size=512
Disk /dev/loop8 - 27 MB / 26 MiB - 53792 sectors (RO), sector size=512

Partition table type (auto): EFI GPT
Disk /dev/sdc - 8001 GB / 7452 GiB - Seagate Desktop
Partition table type: EFI GPT

Analyse Disk /dev/sdc - 8001 GB / 7452 GiB - CHS 7630885 64 32
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=15628053166 (expected 15628053166)
hdr_lba_start=34
hdr_lba_end=15628053133
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
Warning: number of heads/cylinder mismatches 255 (FAT) != 64 (HD)
Warning: number of sectors per track mismatches 63 (FAT) != 32 (HD)
 1 P MS Data                     2048 4294943632 4294941585 [Basic data partition] [NO NAME]

search_part()
Disk /dev/sdc - 8001 GB / 7452 GiB - CHS 7630885 64 32
FAT32 at 1/0/1
FAT1 : 2048-264191
FAT2 : 264192-526335
start_rootdir : 526336 root cluster : 2
Data : 526336-4294941567
sectors : 4294941585
cluster_size : 128
no_of_cluster : 33550119 (2 - 33550120)
fat_length 262144 calculated 262111
heads/cylinder 255 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
set_FAT_info: name from BS used

FAT32 at 1/0/1
FAT: cluster=2(0x2), pos=528384
     MS Data                     2048 4294943632 4294941585 [NO NAME]
     FAT32, blocksize=65536, 2199 GB / 2047 GiB

LVM magic value at 2100959/4/20
NTFS at 7630884/63/32
heads/cylinder 255 (NTFS) != 64 (HD)
sect/track 63 (NTFS) != 32 (HD)
filesystem size           15627788288
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
NTFS at 7630884/63/32
heads/cylinder 255 (NTFS) != 64 (HD)
sect/track 63 (NTFS) != 32 (HD)
filesystem size           15627788288
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
NTFS: Can't read MFT
     MS Data               15628052479 31255840766 15627788288
     NTFS, blocksize=4096, 8001 GB / 7451 GiB
This partition ends after the disk limits. (start=15628052479, size=15627788288, end=31255840766, disk end=15628053167)
Search for partition aborted
Disk /dev/sdc - 8001 GB / 7452 GiB - CHS 7630885 64 32
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (8001 GB / 7452 GiB) seems too small! (< 16 TB / 14 TiB)
The following partition can't be recovered:
     MS Data               15628052479 31255840766 15627788288
     NTFS, blocksize=4096, 8001 GB / 7451 GiB

Results
     MS Data                     2048 4294943632 4294941585 [NO NAME]
     FAT32, blocksize=65536, 2199 GB / 2047 GiB
     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB

Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
echo "0 4294941585 linear /dev/sdc 2048" | dmsetup create test0
echo "0 15627788288 linear /dev/sdc 264192" | dmsetup create test1
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x0)
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x0)
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
NTFS filesystem needs to be repaired.


dir_partition inode=5
     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 .
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 ..
   12834 dr-xr-xr-x     0      0         0  3-Feb-2023 12:53 $RECYCLE.BIN
  243397 dr-xr-xr-x     0      0         0 16-Jan-2023 16:20 Andan 3
  243348 dr-xr-xr-x     0      0         0 16-Jan-2023 16:19 Cantan 3
  246885 dr-xr-xr-x     0      0         0 18-May-2023 18:28 Descargas
  213726 dr-xr-xr-x     0      0         0 26-Jan-2023 17:20 Documentos
  213746 dr-xr-xr-x     0      0         0  3-Feb-2023 13:36 Drivers
  105191 dr-xr-xr-x     0      0         0 10-May-2023 12:09 ITIL
   96674 dr-xr-xr-x     0      0         0 16-Jan-2023 18:08 Incoming
  105137 dr-xr-xr-x     0      0         0 21-Jan-2023 13:25 Juegos
      44 dr-xr-xr-x     0      0         0 23-Feb-2023 13:05 Musica
   97237 dr-xr-xr-x     0      0         0 18-May-2023 18:34 Pel
     101 dr-xr-xr-x     0      0         0  2-Apr-2023 21:21 Pictures
      41 dr-xr-xr-x     0      0         0 14-Dec-2020 02:40 Seagate
   97166 dr-xr-xr-x     0      0         0 26-Jan-2023 12:35 Ser
      96 dr-xr-xr-x     0      0         0 21-Feb-2021 10:27 System Volume Information
  324363 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder
  324364 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 2
  324365 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 3
  327310 dr-xr-xr-x     0      0         0  8-May-2023 21:27 Vac
   99095 dr-xr-xr-x     0      0         0 17-Jan-2023 22:59 audios
   97106 dr-xr-xr-x     0      0         0 26-Jul-2022 17:17 libros
   97102 dr-xr-xr-x     0      0         0 16-Jan-2023 16:18 powerpoint
      35 -r--r--r--     0      0    396818 19-Jul-2018 17:54 .VolumeIcon.icns
      36 -r--r--r--     0      0    318246 19-Jul-2018 17:53 .VolumeIcon.ico
      37 -r--r--r--     0      0      4096 15-Feb-2018 17:15 ._
      38 -r--r--r--     0      0        33 21-Feb-2018 17:20 Autorun.inf
      39 -r--r--r--     0      0  18038880 21-Jun-2019 03:37 Start_Here_Win.exe
      40 -r--r--r--     0      0   1608463  6-Jul-2020 18:24 Warranty.pdf
   97101 -r--r--r--     0      0     93762 26-Mar-2022 23:19 borr para.txt
  207939 -r--r--r--     0      0    894976 22-Sep-2005 23:39 msdia80.dll
gpt_change_part_type
Change partition type:
     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
Change partition type:
     NTFS                      264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
NTFS filesystem needs to be repaired.


dir_partition inode=5
     MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 .
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 ..
   12834 dr-xr-xr-x     0      0         0  3-Feb-2023 12:53 $RECYCLE.BIN
  243397 dr-xr-xr-x     0      0         0 16-Jan-2023 16:20 Andan 3
  243348 dr-xr-xr-x     0      0         0 16-Jan-2023 16:19 Cantan 3
  246885 dr-xr-xr-x     0      0         0 18-May-2023 18:28 Descargas
  213726 dr-xr-xr-x     0      0         0 26-Jan-2023 17:20 Documentos
  213746 dr-xr-xr-x     0      0         0  3-Feb-2023 13:36 Drivers
  105191 dr-xr-xr-x     0      0         0 10-May-2023 12:09 ITIL
   96674 dr-xr-xr-x     0      0         0 16-Jan-2023 18:08 Incoming
  105137 dr-xr-xr-x     0      0      ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x0)
   0 21-Jan-2023 13:25 Juegos
      44 dr-xr-xr-x     0      0         0 23-Feb-2023 13:05 Musica
   97237 dr-xr-xr-x     0      0         0 18-May-2023 18:34 Pel
     101 dr-xr-xr-x     0      0         0  2-Apr-2023 21:21 Pictures
      41 dr-xr-xr-x     0      0         0 14-Dec-2020 02:40 Seagate
   97166 dr-xr-xr-x     0      0         0 26-Jan-2023 12:35 Ser
      96 dr-xr-xr-x     0      0         0 21-Feb-2021 10:27 System Volume Information
  324363 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder
  324364 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 2
  324365 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 3
  327310 dr-xr-xr-x     0      0         0  8-May-2023 21:27 Vac
   99095 dr-xr-xr-x     0      0         0 17-Jan-2023 22:59 audios
   97106 dr-xr-xr-x     0      0         0 26-Jul-2022 17:17 libros
   97102 dr-xr-xr-x     0      0         0 16-Jan-2023 16:18 powerpoint
      35 -r--r--r--     0      0    396818 19-Jul-2018 17:54 .VolumeIcon.icns
      36 -r--r--r--     0      0    318246 19-Jul-2018 17:53 .VolumeIcon.ico
      37 -r--r--r--     0      0      4096 15-Feb-2018 17:15 ._
      38 -r--r--r--     0      0        33 21-Feb-2018 17:20 Autorun.inf
      39 -r--r--r--     0      0  18038880 21-Jun-2019 03:37 Start_Here_Win.exe
      40 -r--r--r--     0      0   1608463  6-Jul-2020 18:24 Warranty.pdf
   97101 -r--r--r--     0      0     93762 26-Mar-2022 23:19 borr para.txt
  207939 -r--r--r--     0      0    894976 22-Sep-2005 23:39 msdia80.dll
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
NTFS filesystem needs to be repaired.


dir_partition inode=5
   P MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
Directory /
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 .
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 ..
   12834 dr-xr-xr-x     0      0         0  3-Feb-2023 12:53 $RECYCLE.BIN
  243397 dr-xr-xr-x     0      0         0 16-Jan-2023 16:20 Andan 3
  243348 dr-xr-xr-x     0      0         0 16-Jan-2023 16:19 Cantan 3
  246885 dr-xr-xr-x     0      0         0 18-May-2023 18:28 Descargas
  213726 dr-xr-xr-x     0      0         0 26-Jan-2023 17:20 Documentos
  213746 dr-xr-xr-x     0      0         0  3-Feb-2023 13:36 Drivers
  105191 dr-xr-xr-x     0      0         0 10-May-2023 12:09 ITIL
   96674 dr-xr-xr-x     0      0         0 16-Jan-2023 18:08 Incoming
  105137 dr-xr-xr-x     0      0         0 21-Jan-2023 13:25 Juegos
      44 dr-xr-xr-x     0      0         0 23-Feb-2023 13:05 Musica
   97237 dr-xr-xr-x     0      0         0 18-May-2023 18:34 Pel
     101 dr-xr-xr-x     0      0         0  2-Apr-2023 21:21 Pictures
      41 dr-xr-xr-x     0      0         0 14-Dec-2020 02:40 Seagate
   97166 dr-xr-xr-x     0      0         0 26-Jan-2023 12:35 Ser
      96 dr-xr-xr-x     0      0         0 21-Feb-2021 10:27 System Volume Information
  324363 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder
  324364 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 2
  324365 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 3
  327310 dr-xr-xr-x     0      0         0  8-May-2023 21:27 Vac
   99095 dr-xr-xr-x     0      0         0 17-Jan-2023 22:59 audios
   97106 dr-xr-xr-x     0      0         0 26-Jul-2022 17:17 libros
   97102 dr-xr-xr-x     0      0         0 16-Jan-2023 16:18 powerpoint
      35 -r--r--r--     0      0    396818 19-Jul-2018 17:54 .VolumeIcon.icns
      36 -r--r--r--     0      0    318246 19-Jul-2018 17:53 .VolumeIcon.ico
      37 -r--r--r--     0      0      4096 15-Feb-2018 17:15 ._
      38 -r--r--r--     0      0        33 21-Feb-2018 17:20 Autorun.inf
      39 -r--r--r--     0      0  18038880 21-Jun-2019 03:37 Start_Here_Win.exe
      40 -r--r--r--     0      0   1608463  6-Jul-2020 18:24 Warranty.pdf
   97101 -r--r--r--     0      0     93762 26-Mar-2022 23:19 borr para.txt
  207939 -r--r--r--     0      0    894976 22-Sep-2005 23:39 msdia80.dll

interface_write()
 1 P MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]

interface_write()
 1 P MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
write!
No extended partition

ntfs_boot_sector
 1 P MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
NTFS at 129/0/1
heads/cylinder 255 (NTFS) != 64 (HD)
sect/track 63 (NTFS) != 32 (HD)
filesystem size           1 15627788288
sectors_per_cluster       0 8
mft_lcn                   0 786432
mftmirr_lcn               0 2
clusters_per_mft_record   0 -10
clusters_per_index_record 0 1
Boot sector
Status: Bad

Backup boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Status: OK

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.
copy backup boot sector over boot sector

ntfs_boot_sector
 1 P MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
NTFS at 129/0/1
heads/cylinder 255 (NTFS) != 64 (HD)
sect/track 63 (NTFS) != 32 (HD)
NTFS at 129/0/1
heads/cylinder 255 (NTFS) != 64 (HD)
sect/track 63 (NTFS) != 32 (HD)
filesystem size           15627788288
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
Boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Status: OK

Backup boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
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_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x0)
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
NTFS filesystem needs to be repaired.

Directory /
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 .
       5 dr-xr-xr-x     0      0         0 27-May-2023 11:14 ..
   12834 dr-xr-xr-x     0      0         0  3-Feb-2023 12:53 $RECYCLE.BIN
  243397 dr-xr-xr-x     0      0         0 16-Jan-2023 16:20 Andan 3
  243348 dr-xr-xr-x     0      0         0 16-Jan-2023 16:19 Cantan 3
  246885 dr-xr-xr-x     0      0         0 18-May-2023 18:28 Descargas
  213726 dr-xr-xr-x     0      0         0 26-Jan-2023 17:20 Documentos
  213746 dr-xr-xr-x     0      0         0  3-Feb-2023 13:36 Drivers
  105191 dr-xr-xr-x     0      0         0 10-May-2023 12:09 ITIL
   96674 dr-xr-xr-x     0      0         0 16-Jan-2023 18:08 Incoming
  105137 dr-xr-xr-x     0      0         0 21-Jan-2023 13:25 Juegos
      44 dr-xr-xr-x     0      0         0 23-Feb-2023 13:05 Musica
   97237 dr-xr-xr-x     0      0         0 18-May-2023 18:34 Pel
     101 dr-xr-xr-x     0      0         0  2-Apr-2023 21:21 Pictures
      41 dr-xr-xr-x     0      0         0 14-Dec-2020 02:40 Seagate
   97166 dr-xr-xr-x     0      0         0 26-Jan-2023 12:35 Ser
      96 dr-xr-xr-x     0      0         0 21-Feb-2021 10:27 System Volume Information
  324363 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder
  324364 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 2
  324365 dr-xr-xr-x     0      0         0 23-Feb-2023 12:46 Untitled Folder 3
  327310 dr-xr-xr-x     0      0         0  8-May-2023 21:27 Vac
   99095 dr-xr-xr-x     0      0         0 17-Jan-2023 22:59 audios
   97106 dr-xr-xr-x     0      0         0 26-Jul-2022 17:17 libros
   97102 dr-xr-xr-x     0      0         0 16-Jan-2023 16:18 powerpoint
      35 -r--r--r--     0      0    396818 19-Jul-2018 17:54 .VolumeIcon.icns
      36 -r--r--r--     0      0    318246 19-Jul-2018 17:53 .VolumeIcon.ico
      37 -r--r--r--     0      0      4096 15-Feb-2018 17:15 ._
      38 -r--r--r--     0      0        33 21-Feb-2018 17:20 Autorun.inf
      39 -r--r--r--     0      0  18038880 21-Jun-2019 03:37 Start_Here_Win.exe
      40 -r--r--r--     0      0   1608463  6-Jul-2020 18:24 Warranty.pdf
   97101 -r--r--r--     0      0     93762 26-Mar-2022 23:19 borr para.txt
  207939 -r--r--r--     0      0    894976 22-Sep-2005 23:39 msdia80.dll

ntfs_boot_sector
 1 P MS Data                   264192 15628052479 15627788288 [Seagate Backup Plus Drive]
     NTFS found using backup sector, blocksize=4096, 8001 GB / 7451 GiB
NTFS at 129/0/1
heads/cylinder 255 (NTFS) != 64 (HD)
sect/track 63 (NTFS) != 32 (HD)
NTFS at 129/0/1
heads/cylinder 255 (NTFS) != 64 (HD)
sect/track 63 (NTFS) != 32 (HD)
filesystem size           15627788288
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
Boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
Status: OK

Backup boot sector
Warning: number of heads/cylinder mismatches 255 (NTFS) != 64 (HD)
Warning: number of sectors per track mismatches 63 (NTFS) != 32 (HD)
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.
You will have to reboot for the change to take effect.

TestDisk exited normally.


Maximice
Posts: 6
Joined: 01 Jun 2023, 22:38

Re: Disk size error recoverinng a both repartitioned and formated disk

#3 Post by Maximice »

Finally I solved it!

Altough I got those errors in Testdisk writing the parrtition found and I couldn't mount the disk on linuso, so I connected on Windows andeven it showed the drive letter I was not able to access it so I run "chkdsk /f <drive letter:>" and it repair the partition and the disk was back! The drive unit pop up in windows and all the original files in it!

Some tips for doing this faster is always try to connect the drives through SATA and clone the original drive to a file image instead to another phisical disk (working with image files avoids hardware issues with the clone.

recuperation
Posts: 2719
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Disk size error recoverinng a both repartitioned and formated disk

#4 Post by recuperation »

Maximice wrote: 05 Jun 2023, 17:43 Finally I solved it!

Altough I got those errors in Testdisk writing the parrtition found and I couldn't mount the disk on linuso, so I connected on Windows andeven it showed the drive letter I was not able to access it so I run "chkdsk /f <drive letter:>" and it repair the partition and the disk was back! The drive unit pop up in windows and all the original files in it!

Some tips for doing this faster is always try to connect the drives through SATA and clone the original drive to a file image instead to another phisical disk (working with image files avoids hardware issues with the clone.
As for your tips you might not have been faced with a situation where your source disk contains some converter electronics simulating a sector size of 4096 byte at the USB interface whereas the disk only operates on 512 byte at the interface.
As you left out the USB bridge you gained speed obviously. "hardware issues with the clone" I don't know what that should mean.

Maximice
Posts: 6
Joined: 01 Jun 2023, 22:38

Re: Disk size error recoverinng a both repartitioned and formated disk

#5 Post by Maximice »

Do you mean that testdisk showed that warning after writing the partition because the found partition had 4096 bytes/sector and the disk connected over SATA is 512? And it I run testdisk over the usb connection as it originally was I wouldn't get that error? It is why I advised cloning the original disk into a image file instead to another disk for avoiding this hardware interfaces conversions during the restoring process

Locked