Accidentally formatted disk - Filesystem seems damaged

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
sbilly
Posts: 2
Joined: 03 Apr 2020, 07:58

Accidentally formatted disk - Filesystem seems damaged

#1 Post by sbilly »

Hello, I have a 1 TB HDD which contained one single partition with about 400GB of data and on which I accidentally formatted the Raspbian image on top. After that the disk contains two partitions which occupy about 3 GB and the rest of the space is unused.
I tried running testdisk with some different combinations I read through this forum such as "Rebuild BS", with no success. When I select the partition table to be "Intel" as it suggests, it doesn't find the lost partition at all. If I select partition table to be "None", I can see more partitions including one that looks like the lost one, but I cannot list the files as I get the message "Can't open filesystem. Filesystem seems damaged.". I also get the error message "Write isn't available because the partition table type "None" has been selected."

I attach the log of my search so you can take a look.
Thanks in advance.

Code: Select all


Mon Mar 23 22:11:40 2020
Command line: TestDisk

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 5.3.0-42-generic (#34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020) x86_64
Compiler: GCC 7.2
ext2fs lib: 1.44.1, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.0
NTFS signature is missing.
NTFS signature is missing.
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       500118192 sectors
/dev/sda: user_max   500118192 sectors
/dev/sda: native_max 500118192 sectors
/dev/sda: dco        500118192 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - Samsung SSD 850 PRO 256GB, S/N:S1SUNSAG371674B, FW:EXM04B6Q
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32, sector size=512 - Seagate Expansion, FW:0502
Disk /dev/mapper/nvme0n1p3_crypt - 498 GB / 464 GiB - 974217216 sectors, sector size=512
Disk /dev/mapper/ubuntu--vg-root - 497 GB / 463 GiB - 972201984 sectors, sector size=512
Disk /dev/mapper/ubuntu--vg-swap_1 - 1027 MB / 980 MiB - 2007040 sectors, sector size=512
Disk /dev/dm-0 - 498 GB / 464 GiB - 974217216 sectors, sector size=512
Disk /dev/dm-1 - 497 GB / 463 GiB - 972201984 sectors, sector size=512
Disk /dev/dm-2 - 1027 MB / 980 MiB - 2007040 sectors, sector size=512

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - Seagate Expansion
Partition table type: None

Interface Advanced
   P Unknown                  0   0  1 15261915   1 15 1953525167
Change partition type:
   P NTFS                     0   0  1 15261915   1 15 1953525167

   P NTFS                     0   0  1 15261915   1 15 1953525167
Can't open filesystem. Filesystem seems damaged.

ntfs_boot_sector
   P NTFS                     0   0  1 15261915   1 15 1953525167
filesystem size           8432989196315051652 1
sectors_per_cluster       216 0
mft_lcn                   13475245085727058931 0
mftmirr_lcn               10016415184462183424 0
clusters_per_mft_record   76 0
clusters_per_index_record -22 0
Boot sector
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.
Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - Seagate Expansion
Partition table type: EFI GPT

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.
Current partition structure:
Bad GPT partition, invalid signature.
Trying alternate GPT
Bad GPT partition, invalid signature.

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
Search for partition aborted

Results

interface_write()
 
No partition found or selected for recovery
simulate write!
Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - Seagate Expansion
Partition table type: None
New options :
 Dump : No
 Align partition: Yes
 Expert mode : No

Interface Advanced
   P Unknown                  0   0  1 15261915   1 15 1953525167
Change partition type:
   P NTFS                     0   0  1 15261915   1 15 1953525167

ntfs_boot_sector
   P NTFS                     0   0  1 15261915   1 15 1953525167
filesystem size           8432989196315051652 1
sectors_per_cluster       216 0
mft_lcn                   13475245085727058931 0
mftmirr_lcn               10016415184462183424 0
clusters_per_mft_record   76 0
clusters_per_index_record -22 0
Boot sector
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.
rebuild_NTFS_BS
mft at 19995486
read_mft_info failed
ntfs_find_mft: sectors_per_cluster invalid
ntfs_find_mft: mft_lcn             2058
ntfs_find_mft: mftmirr_lcn         5162
ntfs_find_mft: mft_record_size     1024

mft at 19998590
read_mft_info failed
ntfs_find_mft: sectors_per_cluster invalid
ntfs_find_mft: mft_lcn             2058
ntfs_find_mft: mftmirr_lcn         5162
ntfs_find_mft: mft_record_size     1024

Search mft stopped:   62193664/1953525167
Potential partition:
   P NTFS                 156198   2 21 15418114   0  3 1953525167
Failed to rebuild NTFS boot sector.

ntfs_boot_sector
   P NTFS                     0   0  1 15261915   1 15 1953525167
filesystem size           8432989196315051652 1
sectors_per_cluster       216 0
mft_lcn                   13475245085727058931 0
mftmirr_lcn               10016415184462183424 0
clusters_per_mft_record   76 0
clusters_per_index_record -22 0
Boot sector
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.
NTFS signature is missing.
NTFS signature is missing.
NTFS signature is missing.
NTFS signature is missing.

   P NTFS                     0   0  1 15261915   1 15 1953525167
Can't open filesystem. Filesystem seems damaged.

   P NTFS                     0   0  1 15261915   1 15 1953525167
Can't open filesystem. Filesystem seems damaged.
Change partition type:
   P Unknown                  0   0  1 15261915   1 15 1953525167

Interface Advanced
   P Unknown                  0   0  1 15261915   1 15 1953525167
Change partition type:
   P FAT32                    0   0  1 15261915   1 15 1953525167

fat32_boot_sector
   P FAT32                    0   0  1 15261915   1 15 1953525167
Boot sector
Bad

Backup boot sector
Bad

First sectors (Boot code and partition information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.
Change partition type:
   P NTFS                     0   0  1 15261915   1 15 1953525167

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
Current partition structure:
   P Unknown                  0   0  1 15261915   1 15 1953525167

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
FAT32 at 64/0/1
FAT1 : 32-4064
FAT2 : 4065-8097
start_rootdir : 8098 root cluster : 2
Data : 8098-524287
sectors : 524288
cluster_size : 1
no_of_cluster : 516190 (2 - 516191)
fat_length 4033 calculated 4033
heads/cylinder 64 (FAT) != 4 (HD)

FAT32 at 64/0/1
     FAT32                   64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB

recover_EXT2: s_block_group_nr=0/26, s_mnt_count=4/4294967295, s_blocks_per_group=32768, s_inodes_per_group=7952
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 858112
recover_EXT2: part_size 6864896
     ext4                  4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB
FAT12 at 156113/0/17
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 156113/0/17
     FAT12                156113   0 17 156135   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 156198/2/21
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 156150   1 24 156198   2 21       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 156198/2/21
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 156198   2 21 156246   3 18       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 200348/2/17
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 200348/2/17
     FAT12                200348   2 17 200371   0 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 200371/0/17
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 200371/0/17
     FAT12                200371   0 17 200393   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
     Linux SWAP 2         833710   0  1 833710   0 16         16
     SWAP2 version 0, pagesize=8192, 8192 B

     WBFS                 1530444   0 27 1581941   1 13    6591634
     WBFS, 3374 MB / 3218 MiB
FAT12 at 2240601/2/5
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-4
FAT2 : 5-8
start_rootdir : 9
Data : 41-4924
sectors : 4928
cluster_size : 4
no_of_cluster : 1221 (2 - 1222)
fat_length 4 calculated 4
heads/cylinder 64 (FAT) != 4 (HD)

FAT12 at 2240601/2/5
     FAT12                2240601   2  5 2240640   0  4       4928 [NO NAME]
     FAT12, blocksize=2048, 2523 KB / 2464 KiB
FAT12 at 5640763/2/17
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 5640763/2/17
     FAT12                5640763   2 17 5640786   0 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 5640786/0/17
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 5640786/0/17
     FAT12                5640786   0 17 5640808   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 6608595/3/25
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-4
FAT2 : 5-8
start_rootdir : 9
Data : 41-4924
sectors : 4928
cluster_size : 4
no_of_cluster : 1221 (2 - 1222)
fat_length 4 calculated 4
heads/cylinder 64 (FAT) != 4 (HD)

FAT12 at 6608595/3/25
     FAT12                6608595   3 25 6608634   1 24       4928 [NO NAME]
     FAT12, blocksize=2048, 2523 KB / 2464 KiB
FAT12 at 6668693/0/17
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-4
FAT2 : 5-8
start_rootdir : 9
Data : 41-4668
sectors : 4672
cluster_size : 4
no_of_cluster : 1157 (2 - 1158)
fat_length 4 calculated 4
heads/cylinder 64 (FAT) != 4 (HD)

FAT12 at 6668693/0/17
     FAT12                6668693   0 17 6668729   2 16       4672 [NO NAME]
     FAT12, blocksize=2048, 2392 KB / 2336 KiB
FAT12 at 6887725/1/10
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-8
FAT2 : 9-16
start_rootdir : 17
Data : 49-20736
sectors : 20739
cluster_size : 8
no_of_cluster : 2586 (2 - 2587)
fat_length 8 calculated 8
FAT differs, FAT sectors=0-8/8
sect/track 17 (FAT) != 32 (HD)

FAT12 at 6887725/1/10
     FAT12                6887725   1 10 6887887   1 12      20739 [NO NAME]
     FAT12, blocksize=4096, 10 MB / 10 MiB
FAT32 at 6888088/0/11
Bad root_cluster
FAT12 at 6888088/0/12
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
FAT differs, FAT sectors=0-9/9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 6888088/0/12
     FAT12                6888088   0 12 6888110   2 11       2880 [NO NAME]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 7023069/2/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 7023021   1 28 7023069   2 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 7023069/2/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 7023069   2 25 7023117   3 22       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 7094670/0/1
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 7094670/0/1
     FAT12                7094670   0  1 7094692   1 32       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 7094747/3/29
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 7094699   2 32 7094747   3 29       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 7094747/3/29
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 7094747   3 29 7094796   0 26       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 7143655/2/13
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 7143655/2/13
     FAT12                7143655   2 13 7143678   0 12       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 7143678/0/13
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 7143678/0/13
     FAT12                7143678   0 13 7143700   2 12       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 11554769/0/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11554720   3 28 11554769   0 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 11554769/0/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11554769   0 25 11554817   1 22       6174
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 11555754/0/5
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11555754/0/5
     FAT12                11555754   0  5 11555776   2  4       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 11556171/3/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11556123   2 28 11556171   3 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 11556171/3/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11556171   3 25 11556220   0 22       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 11556490/3/21
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11556490/3/21
     FAT12                11556490   3 21 11556513   1 20       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 11556513/1/21
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11556513/1/21
     FAT12                11556513   1 21 11556535   3 20       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 11556775/2/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11556727   1 28 11556775   2 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 11556775/2/25
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11556775   2 25 11556823   3 22       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 11557079/2/29
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11557079/2/29
     FAT12                11557079   2 29 11557102   0 28       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 11557102/0/29
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11557102/0/29
     FAT12                11557102   0 29 11557124   2 28       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 11607601/0/9
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11607552   3 12 11607601   0  9       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 11607601/0/9
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11607601   0  9 11607649   1  6       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 11607899/0/25
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11607899/0/25
     FAT12                11607899   0 25 11607921   2 24       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 11607921/2/25
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11607921/2/25
     FAT12                11607921   2 25 11607944   0 24       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 11647407/3/25
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-8
FAT2 : 9-16
start_rootdir : 17
Data : 49-20736
sectors : 20739
cluster_size : 8
no_of_cluster : 2586 (2 - 2587)
fat_length 8 calculated 8
FAT differs, FAT sectors=0-8/8
sect/track 17 (FAT) != 32 (HD)

FAT12 at 11647407/3/25
     FAT12                11647407   3 25 11647569   3 27      20739 [NO NAME]
     FAT12, blocksize=4096, 10 MB / 10 MiB
FAT12 at 11705192/1/25
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11705192/1/25
     FAT12                11705192   1 25 11705214   3 24       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 11705270/1/21
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11705222   0 24 11705270   1 21       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 11705270/1/21
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11705270   1 21 11705318   2 18       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
FAT12 at 11754178/0/5
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11754178/0/5
     FAT12                11754178   0  5 11754200   2  4       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT12 at 11754200/2/5
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 11754200/2/5
     FAT12                11754200   2  5 11754223   0  4       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 11755164/1/13
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11755116   0 16 11755164   1 13       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
NTFS at 11755164/1/13
heads/cylinder 16 (NTFS) != 4 (HD)
sect/track 2 (NTFS) != 32 (HD)
filesystem size           6174
sectors_per_cluster       1
mft_lcn                   2058
mftmirr_lcn               5162
clusters_per_mft_record   2
clusters_per_index_record 8
     NTFS                 11755164   1 13 11755212   2 10       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
     Linux SWAP           12613578   2 32 12621759   1 31    1047136
     SWAP version 1667594309, pagesize=8192, 536 MB / 511 MiB
FAT12 at 12826987/0/9
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-4
FAT2 : 5-8
start_rootdir : 9
Data : 41-4924
sectors : 4928
cluster_size : 4
no_of_cluster : 1221 (2 - 1222)
fat_length 4 calculated 4
heads/cylinder 64 (FAT) != 4 (HD)

FAT12 at 12826987/0/9
     FAT12                12826987   0  9 12827025   2  8       4928 [NO NAME]
     FAT12, blocksize=2048, 2523 KB / 2464 KiB
FAT12 at 13658742/1/9
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-4
FAT2 : 5-8
start_rootdir : 9
Data : 41-4668
sectors : 4672
cluster_size : 4
no_of_cluster : 1157 (2 - 1158)
fat_length 4 calculated 4
heads/cylinder 64 (FAT) != 4 (HD)

FAT12 at 13658742/1/9
     FAT12                13658742   1  9 13658778   3  8       4672 [NO NAME]
     FAT12, blocksize=2048, 2392 KB / 2336 KiB
FAT12 at 14688286/3/10
check_FAT: Unusual media descriptor (0xf8!=0xf0)
FAT1 : 1-8
FAT2 : 9-16
start_rootdir : 17
Data : 49-20736
sectors : 20739
cluster_size : 8
no_of_cluster : 2586 (2 - 2587)
fat_length 8 calculated 8
FAT differs, FAT sectors=0-8/8
sect/track 17 (FAT) != 32 (HD)

FAT12 at 14688286/3/10
     FAT12                14688286   3 10 14688448   3 12      20739 [NO NAME]
     FAT12, blocksize=4096, 10 MB / 10 MiB
FAT32 at 14743556/0/11
Bad root_cluster
FAT12 at 14743556/0/12
FAT1 : 1-9
FAT2 : 10-18
start_rootdir : 19
Data : 33-2879
sectors : 2880
cluster_size : 1
no_of_cluster : 2847 (2 - 2848)
fat_length 9 calculated 9
FAT differs, FAT sectors=0-9/9
heads/cylinder 2 (FAT) != 4 (HD)
sect/track 18 (FAT) != 32 (HD)

FAT12 at 14743556/0/12
     FAT12                14743556   0 12 14743578   2 11       2880 [NO NAME]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
NTFS at 15261887/3/32
heads/cylinder 255 (NTFS) != 4 (HD)
sect/track 63 (NTFS) != 32 (HD)
filesystem size           1953519616
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               2
clusters_per_mft_record   -10
clusters_per_index_record 1
     NTFS                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
NTFS at 15261887/3/32
heads/cylinder 255 (NTFS) != 4 (HD)
sect/track 63 (NTFS) != 32 (HD)
filesystem size           1953519616
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
     NTFS                 15261887   3 32 30523759   3 31 1953519616
     NTFS, blocksize=4096, 1000 GB / 931 GiB
This partition ends after the disk limits. (start=1953521663, size=1953519616, end=3907041278, disk end=1953525167)
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (1000 GB / 931 GiB) seems too small! (< 2000 GB / 1863 GiB)
The following partition can't be recovered:
     NTFS                 15261887   3 32 30523759   3 31 1953519616
     NTFS, blocksize=4096, 1000 GB / 931 GiB

Results
   P NTFS                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
   P FAT32                   64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB
   P ext4                  4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB
   P FAT12                156113   0 17 156135   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 156150   1 24 156198   2 21       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 156198   2 21 156246   3 18       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                200348   2 17 200371   0 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                200371   0 17 200393   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P Linux SWAP 2         833710   0  1 833710   0 16         16
     SWAP2 version 0, pagesize=8192, 8192 B
   P WBFS                 1530444   0 27 1581941   1 13    6591635
     WBFS, 3374 MB / 3218 MiB
   P FAT12                2240601   2  5 2240640   0  4       4928 [NO NAME]
     FAT12, blocksize=2048, 2523 KB / 2464 KiB
   P FAT12                5640763   2 17 5640786   0 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                5640786   0 17 5640808   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                6608595   3 25 6608634   1 24       4928 [NO NAME]
     FAT12, blocksize=2048, 2523 KB / 2464 KiB
   P FAT12                6668693   0 17 6668729   2 16       4672 [NO NAME]
     FAT12, blocksize=2048, 2392 KB / 2336 KiB
   P FAT12                6887725   1 10 6887887   1 12      20739 [NO NAME]
     FAT12, blocksize=4096, 10 MB / 10 MiB
   P FAT12                6888088   0 12 6888110   2 11       2880 [NO NAME]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 7023021   1 28 7023069   2 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 7023069   2 25 7023117   3 22       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                7094670   0  1 7094692   1 32       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 7094699   2 32 7094747   3 29       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 7094747   3 29 7094796   0 26       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                7143655   2 13 7143678   0 12       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                7143678   0 13 7143700   2 12       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 11554720   3 28 11554769   0 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 11554769   0 25 11554817   1 22       6174
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                11555754   0  5 11555776   2  4       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 11556123   2 28 11556171   3 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 11556171   3 25 11556220   0 22       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                11556490   3 21 11556513   1 20       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                11556513   1 21 11556535   3 20       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 11556727   1 28 11556775   2 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 11556775   2 25 11556823   3 22       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                11557079   2 29 11557102   0 28       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                11557102   0 29 11557124   2 28       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 11607552   3 12 11607601   0  9       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 11607601   0  9 11607649   1  6       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                11607899   0 25 11607921   2 24       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                11607921   2 25 11607944   0 24       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                11647407   3 25 11647569   3 27      20739 [NO NAME]
     FAT12, blocksize=4096, 10 MB / 10 MiB
   P FAT12                11705192   1 25 11705214   3 24       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 11705222   0 24 11705270   1 21       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 11705270   1 21 11705318   2 18       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P FAT12                11754178   0  5 11754200   2  4       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P FAT12                11754200   2  5 11754223   0  4       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
   P NTFS                 11755116   0 16 11755164   1 13       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
   P NTFS                 11755164   1 13 11755212   2 10       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
   P Linux SWAP           12613578   2 32 12621759   1 31    1047136
     SWAP version 1667594309, pagesize=8192, 536 MB / 511 MiB
   P FAT12                12826987   0  9 12827025   2  8       4928 [NO NAME]
     FAT12, blocksize=2048, 2523 KB / 2464 KiB
   P FAT12                13658742   1  9 13658778   3  8       4672 [NO NAME]
     FAT12, blocksize=2048, 2392 KB / 2336 KiB
   P FAT12                14688286   3 10 14688448   3 12      20739 [NO NAME]
     FAT12, blocksize=4096, 10 MB / 10 MiB
   P FAT12                14743556   0 12 14743578   2 11       2880 [NO NAME]
     FAT12, blocksize=512, 1474 KB / 1440 KiB

Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 1953519616 linear /dev/sdb 2048" | dmsetup create test0
echo "0 524288 linear /dev/sdb 8192" | dmsetup create test1
echo "0 6864896 linear /dev/sdb 532480" | dmsetup create test2
echo "0 2880 linear /dev/sdb 19982480" | dmsetup create test3
echo "0 6174 linear /dev/sdb 19987255" | dmsetup create test4
echo "0 6174 linear /dev/sdb 19993428" | dmsetup create test5
echo "0 2880 linear /dev/sdb 25644624" | dmsetup create test6
echo "0 2880 linear /dev/sdb 25647504" | dmsetup create test7
echo "0 16 linear /dev/sdb 106714880" | dmsetup create test8
echo "0 6591635 linear /dev/sdb 195896858" | dmsetup create test9
echo "0 4928 linear /dev/sdb 286796996" | dmsetup create test10
echo "0 2880 linear /dev/sdb 722017744" | dmsetup create test11
echo "0 2880 linear /dev/sdb 722020624" | dmsetup create test12
echo "0 4928 linear /dev/sdb 845900280" | dmsetup create test13
echo "0 4672 linear /dev/sdb 853592720" | dmsetup create test14
echo "0 20739 linear /dev/sdb 881628841" | dmsetup create test15
echo "0 2880 linear /dev/sdb 881675275" | dmsetup create test16
echo "0 6174 linear /dev/sdb 898946747" | dmsetup create test17
echo "0 6174 linear /dev/sdb 898952920" | dmsetup create test18
echo "0 2880 linear /dev/sdb 908117760" | dmsetup create test19
echo "0 6174 linear /dev/sdb 908121567" | dmsetup create test20
echo "0 6174 linear /dev/sdb 908127740" | dmsetup create test21
echo "0 2880 linear /dev/sdb 914387916" | dmsetup create test22
echo "0 2880 linear /dev/sdb 914390796" | dmsetup create test23
echo "0 6174 linear /dev/sdb 1479004283" | dmsetup create test24
echo "0 6174 linear /dev/sdb 1479010456" | dmsetup create test25
echo "0 2880 linear /dev/sdb 1479136516" | dmsetup create test26
echo "0 6174 linear /dev/sdb 1479183835" | dmsetup create test27
echo "0 6174 linear /dev/sdb 1479190008" | dmsetup create test28
echo "0 2880 linear /dev/sdb 1479230836" | dmsetup create test29
echo "0 2880 linear /dev/sdb 1479233716" | dmsetup create test30
echo "0 6174 linear /dev/sdb 1479261115" | dmsetup create test31
echo "0 6174 linear /dev/sdb 1479267288" | dmsetup create test32
echo "0 2880 linear /dev/sdb 1479306204" | dmsetup create test33
echo "0 2880 linear /dev/sdb 1479309084" | dmsetup create test34
echo "0 6174 linear /dev/sdb 1485766763" | dmsetup create test35
echo "0 6174 linear /dev/sdb 1485772936" | dmsetup create test36
echo "0 2880 linear /dev/sdb 1485811096" | dmsetup create test37
echo "0 2880 linear /dev/sdb 1485813976" | dmsetup create test38
echo "0 20739 linear /dev/sdb 1490868216" | dmsetup create test39
echo "0 2880 linear /dev/sdb 1498264632" | dmsetup create test40
echo "0 6174 linear /dev/sdb 1498268439" | dmsetup create test41
echo "0 6174 linear /dev/sdb 1498274612" | dmsetup create test42
echo "0 2880 linear /dev/sdb 1504534788" | dmsetup create test43
echo "0 2880 linear /dev/sdb 1504537668" | dmsetup create test44
echo "0 6174 linear /dev/sdb 1504654863" | dmsetup create test45
echo "0 6174 linear /dev/sdb 1504661036" | dmsetup create test46
echo "0 1047136 linear /dev/sdb 1614538079" | dmsetup create test47
echo "0 4928 linear /dev/sdb 1641854344" | dmsetup create test48
echo "0 4672 linear /dev/sdb 1748319016" | dmsetup create test49
echo "0 20739 linear /dev/sdb 1880100713" | dmsetup create test50
echo "0 2880 linear /dev/sdb 1887175179" | dmsetup create test51


dir_partition inode=0
   P FAT32                   64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB
FAT: cluster=2(0x2), pos=16290
FAT: cluster=140(0x8c), pos=16428
FAT: cluster=383(0x17f), pos=16671
FAT: cluster=724(0x2d4), pos=17012
FAT: cluster=825(0x339), pos=17113
FAT: cluster=71744(0x11840), pos=88032
Directory /
       3 drwxr-xr-x     0      0         0 13-Feb-2020 15:55 overlays
      45 -rwxr-xr-x     0      0     24246  3-Feb-2020 12:50 bcm2708-rpi-b-plus.dtb
       4 -rwxr-xr-x     0      0     18693 24-Jun-2019 16:21 COPYING.linux
      41 -rwxr-xr-x     0      0      1594 17-Jan-2020 10:01 LICENCE.broadcom
     188 -rwxr-xr-x     0      0     24424  3-Feb-2020 12:50 bcm2708-rpi-zero-w.dtb
      93 -rwxr-xr-x     0      0     23983  3-Feb-2020 12:50 bcm2708-rpi-b.dtb
     141 -rwxr-xr-x     0      0     23764  3-Feb-2020 12:50 bcm2708-rpi-cm.dtb
  106927 -rwxr-xr-x     0      0       145 13-Feb-2020 16:16 issue.txt
     236 -rwxr-xr-x     0      0     23688  3-Feb-2020 12:50 bcm2708-rpi-zero.dtb
     283 -rwxr-xr-x     0      0     25310  3-Feb-2020 12:50 bcm2709-rpi-2-b.dtb
     333 -rwxr-xr-x     0      0     25439  3-Feb-2020 12:50 bcm2710-rpi-2-b.dtb
     384 -rwxr-xr-x     0      0     27099  3-Feb-2020 12:50 bcm2710-rpi-3-b-plus.dtb
     437 -rwxr-xr-x     0      0     26480  3-Feb-2020 12:50 bcm2710-rpi-3-b.dtb
     489 -rwxr-xr-x     0      0     25294  3-Feb-2020 12:50 bcm2710-rpi-cm3.dtb
     539 -rwxr-xr-x     0      0     40988  3-Feb-2020 12:50 bcm2711-rpi-4-b.dtb
     620 -rwxr-xr-x     0      0     52304 17-Jan-2020 10:01 bootcode.bin
  106926 -rwxr-xr-x     0      0       208 13-Feb-2020 16:16 cmdline.txt
     725 -rwxr-xr-x     0      0      1784 13-Feb-2020 15:57 config.txt
     729 -rwxr-xr-x     0      0      6745  5-Feb-2020 15:25 fixup.dat
     743 -rwxr-xr-x     0      0      6200 12-Feb-2020 13:33 fixup4.dat
     756 -rwxr-xr-x     0      0      3112 12-Feb-2020 13:33 fixup4cd.dat
     763 -rwxr-xr-x     0      0      9192 12-Feb-2020 13:30 fixup4db.dat
     781 -rwxr-xr-x     0      0      9192 12-Feb-2020 13:33 fixup4x.dat
     799 -rwxr-xr-x  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)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x93144604  size: 1024   usa_ofs: 265  usa_count: 20809: Invalid argument
Record 0 has no FILE magic (0x93144604)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x93144604  size: 1024   usa_ofs: 265  usa_count: 20809: Invalid argument
Record 0 has no FILE magic (0x93144604)
Failed to load $MFT: Input/output error
   0      0      2656  5-Feb-2020 15:25 fixup_cd.dat
     805 -rwxr-xr-x     0      0      9817  5-Feb-2020 15:25 fixup_db.dat
     826 -rwxr-xr-x     0      0      9819  5-Feb-2020 15:25 fixup_x.dat
     846 -rwxr-xr-x     0      0   5142912  3-Feb-2020 12:50 kernel.img
   10891 -rwxr-xr-x     0      0   5424376  3-Feb-2020 12:50 kernel7.img
   21486 -rwxr-xr-x     0      0   5757200  3-Feb-2020 12:50 kernel7l.img
   32731 -rwxr-xr-x     0      0  13521408  3-Feb-2020 12:50 kernel8.img
   59140 -rwxr-xr-x     0      0   2883204 12-Feb-2020 13:33 start.elf
   64772 -rwxr-xr-x     0      0   2784800 12-Feb-2020 13:33 start4.elf
   70212 -rwxr-xr-x     0      0    784316 12-Feb-2020 13:33 start4cd.elf
   71745 -rwxr-xr-x     0      0   4593508 12-Feb-2020 13:33 start4db.elf
   80717 -rwxr-xr-x     0      0   3546468 12-Feb-2020 13:33 start4x.elf
   87644 -rwxr-xr-x     0      0    690884 12-Feb-2020 13:33 start_cd.elf
   88994 -rwxr-xr-x     0      0   4859912 12-Feb-2020 13:33 start_db.elf
   98487 -rwxr-xr-x     0      0   3797384 12-Feb-2020 13:33 start_x.elf
  458754 drwxr-xr-x     0      0         0 23-Mar-2020 18:14 System Volume Information


dir_partition inode=0
   P FAT12                156113   0 17 156135   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
Directory /
       2 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 EFI
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                 156150   1 24 156198   2 21       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P NTFS                 156198   2 21 156246   3 18       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
Directory /
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 .
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 ..
      27 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 System Volume Information


dir_partition inode=0
   P FAT12                200348   2 17 200371   0 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
Directory /
       2 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 EFI

dir_partition inode=2
   P FAT12                200348   2 17 200371   0 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
FAT: cluster=2(0x2), pos=25644657
Directory /EFI
       2 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 .
       0 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 ..
       3 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 BOOT
Directory /
       2 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 EFI


dir_partition inode=0
   P FAT12                200371   0 17 200393   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
Directory /
       2 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 EFI


dir_partition inode=0
   P FAT12                200371   0 17 200393   2 16       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
Directory /
       2 drwxr-xr-x     0      0         0 18-Mar-2019 08:51 EFI

   P Linux SWAP 2         833710   0  1 833710   0 16         16
     SWAP2 version 0, pagesize=8192, 8192 B
Support for this filesystem hasn't been implemented.

   P WBFS                 1530444   0 27 1581941   1 13    6591635
     WBFS, 3374 MB / 3218 MiB
Support for this filesystem hasn't been implemented.


dir_partition inode=0
   P FAT12                2240601   2  5 2240640   0  4       4928 [NO NAME]
     FAT12, blocksize=2048, 2523 KB / 2464 KiB
Directory /
       2 drwxr-xr-x     0      0         0 31-Jul-2019 06:33 EFI
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                 7023021   1 28 7023069   2 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partitionntfs_mst_post_read_fixup_warn: magic: 0x00000000  size: 1024   usa_ofs: 0  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x8cabf123  size: 1024   usa_ofs: 20823  usa_count: 63028: Invalid argument
Record 0 has no FILE magic (0x8cabf123)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x8cabf123  size: 1024   usa_ofs: 20823  usa_count: 63028: Invalid argument
Record 0 has no FILE magic (0x8cabf123)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x54222222  size: 1024   usa_ofs: 30821  usa_count: 8308: Invalid argument
Record 0 has no FILE magic (0x54222222)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x54222222  size: 1024   usa_ofs: 30821  usa_count: 8308: Invalid argument
Record 0 has no FILE magic (0x54222222)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
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)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x54222222  size: 1024   usa_ofs: 30821  usa_count: 8308: Invalid argument
Record 0 has no FILE magic (0x54222222)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x54222222  size: 1024   usa_ofs: 30821  usa_count: 8308: Invalid argument
Record 0 has no FILE magic (0x54222222)
Failed to load $MFT: Input/output error
 inode=5
   P NTFS                 7023069   2 25 7023117   3 22       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
Directory /
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 .
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 ..
      27 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 System Volume Information


dir_partition inode=0
   P FAT12                7094670   0  1 7094692   1 32       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
Directory /
       2 drwxr-xr-x     0      0         0 13-Jul-2009 10:20 EFI
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                 7094699   2 32 7094747   3 29       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P NTFS                 7094747   3 29 7094796   0 26       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
Directory /
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 .
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 ..
      27 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 System Volume Information


dir_partition inode=0
   P FAT12                7143655   2 13 7143678   0 12       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
Directory /
       2 drwxr-xr-x     0      0         0 13-Jul-2009 10:20 EFI
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                 11554720   3 28 11554769   0 25       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                 11554769   0 25 11554817   1 22       6174
     NTFS, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.


dir_partition inode=0
   P FAT12                11555754   0  5 11555776   2  4       2880 [EFISECTOR]
     FAT12, blocksize=512, 1474 KB / 1440 KiB
Directory /
       2 drwxr-xr-x     0      0         0  9-Jul-2015 16:25 EFI

   P Linux SWAP           12613578   2 32 12621759   1 31    1047136
     SWAP version 1667594309, pagesize=8192, 536 MB / 511 MiB
Support for this filesystem hasn't been implemented.
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P NTFS                 11705270   1 21 11705318   2 18       6174 [Boot]
     NTFS, blocksize=512, 3161 KB / 3087 KiB
Directory /
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 .
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 ..
      27 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 System Volume Information
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                 11705222   0 24 11705270   1 21       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                 11705222   0 24 11705270   1 21       6174
     NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB
Can't open filesystem. Filesystem seems damaged.
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
Can't open filesystem. Filesystem seems damaged.
Change partition type:
   P Unknown                 16   0  1 15261887   3 32 1953519616
     NTFS found ntfs_mst_post_read_fixup_warn: magic: 0x54222222  size: 1024   usa_ofs: 30821  usa_count: 8308: Invalid argument
Record 0 has no FILE magic (0x54222222)
Failed to load $MFT: Input/output error
ntfs_mst_post_read_fixup_warn: magic: 0x54222222  size: 1024   usa_ofs: 30821  usa_count: 8308: Invalid argument
Record 0 has no FILE magic (0x54222222)
Failed to load $MFT: Input/output error
using backup sector, blocksize=4096, 1000 GB / 931 GiB

   P Unknown                 16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
Support for this filesystem hasn't been implemented.
Change partition type:
   P ext4                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB

   P ext4                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
Can't open filesystem. Filesystem seems damaged.
Change partition type:
   P FAT32                   16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB


dir_partition inode=0
   P FAT32                   16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
FAT32: Can't list files, bad root cluster.
Directory /
Change partition type:
   P NTFS                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented

   P NTFS                    16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB
Can't open filesystem. Filesystem seems damaged.
Change partition type:
   P ReiserFS 3.6            16   0  1 15261887   3 32 1953519616
     NTFS found using backup sector, blocksize=4096, 1000 GB / 931 GiB

interface_write()
   P ReiserFS 3.6            16   0  1 15261887   3 32 1953519616
   P FAT32                   64   0  1  4159   3 32     524288 [boot]
   P ext4                  4160   0  1 57791   3 32    6864896 [rootfs]
   P FAT12                156113   0 17 156135   2 16       2880 [EFISECTOR]
   P NTFS                 156150   1 24 156198   2 21       6174
   P NTFS                 156198   2 21 156246   3 18       6174 [Boot]
   P FAT12                200348   2 17 200371   0 16       2880 [EFISECTOR]
   P FAT12                200371   0 17 200393   2 16       2880 [EFISECTOR]
   P Linux SWAP 2         833710   0  1 833710   0 16         16
   P WBFS                 1530444   0 27 1581941   1 13    6591635
   P FAT12                2240601   2  5 2240640   0  4       4928 [NO NAME]
   P FAT12                5640763   2 17 5640786   0 16       2880 [EFISECTOR]
   P FAT12                5640786   0 17 5640808   2 16       2880 [EFISECTOR]
   P FAT12                6608595   3 25 6608634   1 24       4928 [NO NAME]
   P FAT12                6668693   0 17 6668729   2 16       4672 [NO NAME]
   P FAT12                6887725   1 10 6887887   1 12      20739 [NO NAME]
   P FAT12                6888088   0 12 6888110   2 11       2880 [NO NAME]
   P NTFS                 7023021   1 28 7023069   2 25       6174
   P NTFS                 7023069   2 25 7023117   3 22       6174 [Boot]
   P FAT12                7094670   0  1 7094692   1 32       2880 [EFISECTOR]
   P NTFS                 7094699   2 32 7094747   3 29       6174
   P NTFS                 7094747   3 29 7094796   0 26       6174 [Boot]
   P FAT12                7143655   2 13 7143678   0 12       2880 [EFISECTOR]
   P FAT12                7143678   0 13 7143700   2 12       2880 [EFISECTOR]
   P NTFS                 11554720   3 28 11554769   0 25       6174
   P NTFS                 11554769   0 25 11554817   1 22       6174
   P FAT12                11555754   0  5 11555776   2  4       2880 [EFISECTOR]
   P NTFS                 11556123   2 28 11556171   3 25       6174
   P NTFS                 11556171   3 25 11556220   0 22       6174 [Boot]
   P FAT12                11556490   3 21 11556513   1 20       2880 [EFISECTOR]
   P FAT12                11556513   1 21 11556535   3 20       2880 [EFISECTOR]
   P NTFS                 11556727   1 28 11556775   2 25       6174
   P NTFS                 11556775   2 25 11556823   3 22       6174 [Boot]
   P FAT12                11557079   2 29 11557102   0 28       2880 [EFISECTOR]
   P FAT12                11557102   0 29 11557124   2 28       2880 [EFISECTOR]
   P NTFS                 11607552   3 12 11607601   0  9       6174
   P NTFS                 11607601   0  9 11607649   1  6       6174 [Boot]
   P FAT12                11607899   0 25 11607921   2 24       2880 [EFISECTOR]
   P FAT12                11607921   2 25 11607944   0 24       2880 [EFISECTOR]
   P FAT12                11647407   3 25 11647569   3 27      20739 [NO NAME]
   P FAT12                11705192   1 25 11705214   3 24       2880 [EFISECTOR]
   P NTFS                 11705222   0 24 11705270   1 21       6174
   P NTFS                 11705270   1 21 11705318   2 18       6174 [Boot]
   P FAT12                11754178   0  5 11754200   2  4       2880 [EFISECTOR]
   P FAT12                11754200   2  5 11754223   0  4       2880 [EFISECTOR]
   P NTFS                 11755116   0 16 11755164   1 13       6174
   P NTFS                 11755164   1 13 11755212   2 10       6174 [Boot]
   P Linux SWAP           12613578   2 32 12621759   1 31    1047136
   P FAT12                12826987   0  9 12827025   2  8       4928 [NO NAME]
   P FAT12                13658742   1  9 13658778   3  8       4672 [NO NAME]
   P FAT12                14688286   3 10 14688448   3 12      20739 [NO NAME]
   P FAT12                14743556   0 12 14743578   2 11       2880 [NO NAME]
 
Write isn't available because the partition table type "None" has been selected.

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
Current partition structure:
   P Unknown                  0   0  1 15261915   1 15 1953525167

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
FAT32 at 64/0/1
FAT1 : 32-4064
FAT2 : 4065-8097
start_rootdir : 8098 root cluster : 2
Data : 8098-524287
sectors : 524288
cluster_size : 1
no_of_cluster : 516190 (2 - 516191)
fat_length 4033 calculated 4033
heads/cylinder 64 (FAT) != 4 (HD)

FAT32 at 64/0/1
     FAT32                   64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB

recover_EXT2: s_block_group_nr=0/26, s_mnt_count=4/4294967295, s_blocks_per_group=32768, s_inodes_per_group=7952
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 858112
recover_EXT2: part_size 6864896
     ext4                  4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB
Search for partition aborted

Results
   P FAT32                   64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB
   P ext4                  4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB

Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 524288 linear /dev/sdb 8192" | dmsetup create test0
echo "0 6864896 linear /dev/sdb 532480" | dmsetup create test1

interface_write()
   P FAT32                   64   0  1  4159   3 32     524288 [boot]
   P ext4                  4160   0  1 57791   3 32    6864896 [rootfs]
 
Write isn't available because the partition table type "None" has been selected.
User avatar
cgrenier
Site Admin
Posts: 5441
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Accidentally formatted disk - Filesystem seems damaged

#2 Post by cgrenier »

PC Intel, Analyse, Quick Search, use 'a' to manually add
P NTFS 156198 2 21 15418114 0 3 1953525167
Try to list its content
sbilly
Posts: 2
Joined: 03 Apr 2020, 07:58

Re: Accidentally formatted disk - Filesystem seems damaged

#3 Post by sbilly »

If I select Intel as the partition table type, then the maximum available ending cylinders is 15261914 and not 15418114 as you suggested, so I did it with the rest being the same and the resulting partition has no files in it, just the folder "System Volume Information".
This is the log from that operation:

Code: Select all


Sun Apr  5 14:17:29 2020
Command line: TestDisk

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 5.3.0-42-generic (#34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020) x86_64
Compiler: GCC 7.2
ext2fs lib: 1.44.1, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.0
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       500118192 sectors
/dev/sda: user_max   500118192 sectors
/dev/sda: native_max 500118192 sectors
/dev/sda: dco        500118192 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - Samsung SSD 850 PRO 256GB, S/N:S1SUNSAG371674B, FW:EXM04B6Q
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32, sector size=512 - Seagate Expansion, FW:0502
Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486401 255 63, sector size=512 - Seagate M3 Portable, FW:9300
Disk /dev/mapper/nvme0n1p3_crypt - 498 GB / 464 GiB - 974217216 sectors, sector size=512
Disk /dev/mapper/ubuntu--vg-root - 497 GB / 463 GiB - 972201984 sectors, sector size=512
Disk /dev/mapper/ubuntu--vg-swap_1 - 1027 MB / 980 MiB - 2007040 sectors, sector size=512
Disk /dev/dm-0 - 498 GB / 464 GiB - 974217216 sectors, sector size=512
Disk /dev/dm-1 - 497 GB / 463 GiB - 972201984 sectors, sector size=512
Disk /dev/dm-2 - 1027 MB / 980 MiB - 2007040 sectors, sector size=512

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - Seagate Expansion
Partition table type: Intel

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
Geometry from i386 MBR: head=4 sector=32
FAT32 at 64/0/1
Info: size boot_sector 524288, partition 524288
FAT1 : 32-4064
FAT2 : 4065-8097
start_rootdir : 8098 root cluster : 2
Data : 8098-524287
sectors : 524288
cluster_size : 1
no_of_cluster : 516190 (2 - 516191)
fat_length 4033 calculated 4033
heads/cylinder 64 (FAT) != 4 (HD)
get_geometry_from_list_part_aux head=4 nbr=4
get_geometry_from_list_part_aux head=8 nbr=4
get_geometry_from_list_part_aux head=16 nbr=4
get_geometry_from_list_part_aux head=32 nbr=4
get_geometry_from_list_part_aux head=64 nbr=4
get_geometry_from_list_part_aux head=128 nbr=4
get_geometry_from_list_part_aux head=255 nbr=1
Current partition structure:
Warning: number of heads/cylinder mismatches 64 (FAT) != 4 (HD)
 1 P FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
 2 P Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
No partition is bootable

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
FAT32 at 64/0/1
FAT1 : 32-4064
FAT2 : 4065-8097
start_rootdir : 8098 root cluster : 2
Data : 8098-524287
sectors : 524288
cluster_size : 1
no_of_cluster : 516190 (2 - 516191)
fat_length 4033 calculated 4033
heads/cylinder 64 (FAT) != 4 (HD)

FAT32 at 64/0/1
     FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB

recover_EXT2: s_block_group_nr=0/26, s_mnt_count=7/4294967295, s_blocks_per_group=32768, s_inodes_per_group=7952
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 858112
recover_EXT2: part_size 6864896
     Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB
Search for partition aborted
get_geometry_from_list_part_aux head=4 nbr=4
get_geometry_from_list_part_aux head=8 nbr=4
get_geometry_from_list_part_aux head=16 nbr=4
get_geometry_from_list_part_aux head=32 nbr=4
get_geometry_from_list_part_aux head=64 nbr=4
get_geometry_from_list_part_aux head=128 nbr=4
get_geometry_from_list_part_aux head=255 nbr=1
Warning: the current number of heads per cylinder is 4 but the correct value may be 128.

Results
   * FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB
   P Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB

Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 524288 linear /dev/sdb 8192" | dmsetup create test0
echo "0 6864896 linear /dev/sdb 532480" | dmsetup create test1
Change partition type:
     HPFS - NTFS          156198   2 21 15261914   0  3 1933531567
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P HPFS - NTFS          156198   2 21 15261914   0  3 1933531567
Directory /
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 .
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 ..
      27 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 System Volume Information

interface_write()
 1 * FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
 2 P Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
 3 P HPFS - NTFS          156198   2 21 15261914   0  3 1933531567
simulate write!

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

TestDisk exited normally.
Edit: I tried changing the disk geometry in order to have 15418115 cylinders and tried again, this time I was able to select the number of ending cylinder to be "15418114", but again the listed files was only the "System Volume Information".

Code: Select all


Sun Apr  5 14:17:29 2020
Command line: TestDisk

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 5.3.0-42-generic (#34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020) x86_64
Compiler: GCC 7.2
ext2fs lib: 1.44.1, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.0
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       500118192 sectors
/dev/sda: user_max   500118192 sectors
/dev/sda: native_max 500118192 sectors
/dev/sda: dco        500118192 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 256 GB / 238 GiB - CHS 31130 255 63, sector size=512 - Samsung SSD 850 PRO 256GB, S/N:S1SUNSAG371674B, FW:EXM04B6Q
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32, sector size=512 - Seagate Expansion, FW:0502
Disk /dev/sdc - 4000 GB / 3726 GiB - CHS 486401 255 63, sector size=512 - Seagate M3 Portable, FW:9300
Disk /dev/mapper/nvme0n1p3_crypt - 498 GB / 464 GiB - 974217216 sectors, sector size=512
Disk /dev/mapper/ubuntu--vg-root - 497 GB / 463 GiB - 972201984 sectors, sector size=512
Disk /dev/mapper/ubuntu--vg-swap_1 - 1027 MB / 980 MiB - 2007040 sectors, sector size=512
Disk /dev/dm-0 - 498 GB / 464 GiB - 974217216 sectors, sector size=512
Disk /dev/dm-1 - 497 GB / 463 GiB - 972201984 sectors, sector size=512
Disk /dev/dm-2 - 1027 MB / 980 MiB - 2007040 sectors, sector size=512

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - Seagate Expansion
Partition table type: Intel

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
Geometry from i386 MBR: head=4 sector=32
FAT32 at 64/0/1
Info: size boot_sector 524288, partition 524288
FAT1 : 32-4064
FAT2 : 4065-8097
start_rootdir : 8098 root cluster : 2
Data : 8098-524287
sectors : 524288
cluster_size : 1
no_of_cluster : 516190 (2 - 516191)
fat_length 4033 calculated 4033
heads/cylinder 64 (FAT) != 4 (HD)
get_geometry_from_list_part_aux head=4 nbr=4
get_geometry_from_list_part_aux head=8 nbr=4
get_geometry_from_list_part_aux head=16 nbr=4
get_geometry_from_list_part_aux head=32 nbr=4
get_geometry_from_list_part_aux head=64 nbr=4
get_geometry_from_list_part_aux head=128 nbr=4
get_geometry_from_list_part_aux head=255 nbr=1
Current partition structure:
Warning: number of heads/cylinder mismatches 64 (FAT) != 4 (HD)
 1 P FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
 2 P Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
No partition is bootable

search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 15261915 4 32
FAT32 at 64/0/1
FAT1 : 32-4064
FAT2 : 4065-8097
start_rootdir : 8098 root cluster : 2
Data : 8098-524287
sectors : 524288
cluster_size : 1
no_of_cluster : 516190 (2 - 516191)
fat_length 4033 calculated 4033
heads/cylinder 64 (FAT) != 4 (HD)

FAT32 at 64/0/1
     FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB

recover_EXT2: s_block_group_nr=0/26, s_mnt_count=7/4294967295, s_blocks_per_group=32768, s_inodes_per_group=7952
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 858112
recover_EXT2: part_size 6864896
     Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB
Search for partition aborted
get_geometry_from_list_part_aux head=4 nbr=4
get_geometry_from_list_part_aux head=8 nbr=4
get_geometry_from_list_part_aux head=16 nbr=4
get_geometry_from_list_part_aux head=32 nbr=4
get_geometry_from_list_part_aux head=64 nbr=4
get_geometry_from_list_part_aux head=128 nbr=4
get_geometry_from_list_part_aux head=255 nbr=1
Warning: the current number of heads per cylinder is 4 but the correct value may be 128.

Results
   * FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
     FAT32, blocksize=512, 268 MB / 256 MiB
   P Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
     ext4 blocksize=4096 Large_file Sparse_SB Recover, 3514 MB / 3352 MiB

Hint for advanced users. dmsetup may be used if you prefer to avoid to rewrite the partition table for the moment:
echo "0 524288 linear /dev/sdb 8192" | dmsetup create test0
echo "0 6864896 linear /dev/sdb 532480" | dmsetup create test1
Change partition type:
     HPFS - NTFS          156198   2 21 15261914   0  3 1933531567
ntfs_device_testdisk_io_ioctl() unimplemented


dir_partition inode=5
   P HPFS - NTFS          156198   2 21 15261914   0  3 1933531567
Directory /
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 .
       5 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 ..
      27 dr-xr-xr-x     0      0         0 15-Feb-2005 23:33 System Volume Information

interface_write()
 1 * FAT32 LBA               64   0  1  4159   3 32     524288 [boot]
 2 P Linux                 4160   0  1 57791   3 32    6864896 [rootfs]
 3 P HPFS - NTFS          156198   2 21 15261914   0  3 1933531567
simulate write!

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

TestDisk exited normally.
Locked