Dealing with partitions I broke the Windows 10 single disk installation of a student of mine. The sad thing is he had a big job here in. I don't care the Windows setup and software.
I am not sure I post in the right section of the forum, but as I was dealing with partitions I post here. Please feel free to move my post.
I wanted to consolidate the storage in a single big partition.
I wanted to delete the recovery partition and also a small 2GB partition in the end of the disk (dedicated to swap, from an exercise). About this last, I first disabled swap in this volume, and as usual Windows asked for reboot, I postponed. I forgot this then with diskpart I deleted the recovery partition...(although I'm nearly sure I didn't use the override parameter, which as far as I remember is required for this) and maybe the swap partition. Then disk manager became irresponsive, as well as the services manager and everything. I rebooted, which failed, and Windows repair USB drive couldn't repair the system.
The drive in the PC is a 1 TB SSD that was cloned from a 1 TB HDD last year with Acronis for Crucial free cloning tool.
I remembered testdisk helped me some times with dying disks and the rule not to write to a failing disk so I cloned with ddrescue the SSD to a same size/model/brand one.
Here is screen I'm stuck at, not knowing which "partition that can't be recovered" to choose to [Continue] with.
Below I post the 3 screens so you can see the matching size for each partition, then the testdisk log
Please, would you kindly help me ?
Code: Select all
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
The harddisk (1000 GB / 931 GiB) seems too small! (< 1995 GB / 1858 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...
The following partitions can't be recovered:
Partition Start End Size in sectors
> MS Data 1887887359 3774222334 1886334976
MS Data 1949325311 3897098238 1947772928
MS Data 1949327359 3897102334 1947774976
[ Continue ]
NTFS, blocksize=4096, 965 GB / 899 GiB
Code: Select all
TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
The harddisk (1000 GB / 931 GiB) seems too small! (< 1995 GB / 1858 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...
The following partitions can't be recovered:
Partition Start End Size in sectors
MS Data 1887887359 3774222334 1886334976
> MS Data 1949325311 3897098238 1947772928
MS Data 1949327359 3897102334 1947774976
[ Continue ]
NTFS, blocksize=4096, 997 GB / 928 GiB
Code: Select all
estDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
The harddisk (1000 GB / 931 GiB) seems too small! (< 1995 GB / 1858 GiB)
Check the harddisk size: HD jumper settings, BIOS detection...
The following partitions can't be recovered:
Partition Start End Size in sectors
MS Data 1887887359 3774222334 1886334976
MS Data 1949325311 3897098238 1947772928
> MS Data 1949327359 3897102334 1947774976
[ Continue ]
NTFS, blocksize=4096, 997 GB / 928 GiB
Code: Select all
Thu Jan 19 22:34:04 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-58-generic (#64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023) 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 976773168 sectors
/dev/sda: user_max 976773168 sectors
/dev/sda: native_max 976773168 sectors
/dev/sda: dco 976773168 sectors
/dev/sdb: LBA, LBA48 support
/dev/sdb: size 1953525168 sectors
/dev/sdb: user_max 1953525168 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/loop13 - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - WDC WD5000LPLX-08ZNTT0, S/N:WD-WX51AA8KDXZ3, FW:05.01A05
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - CT1000MX500SSD1, S/N:2112E58E7843, FW:M3CR033
Disk /dev/loop0 - 64 MB / 61 MiB - 126760 sectors (RO), sector size=512
Disk /dev/loop1 - 4096 B - 8 sectors (RO), sector size=512
Disk /dev/loop10 - 52 MB / 49 MiB - 102048 sectors (RO), sector size=512
Disk /dev/loop11 - 290 KB / 284 KiB - 568 sectors (RO), sector size=512
Disk /dev/loop12 - 311 KB / 304 KiB - 608 sectors (RO), sector size=512
Disk /dev/loop2 - 250 MB / 238 MiB - 488400 sectors (RO), sector size=512
Disk /dev/loop3 - 66 MB / 63 MiB - 129584 sectors (RO), sector size=512
Disk /dev/loop4 - 250 MB / 238 MiB - 488864 sectors (RO), sector size=512
Disk /dev/loop5 - 363 MB / 346 MiB - 709280 sectors (RO), sector size=512
Disk /dev/loop6 - 260 MB / 248 MiB - 509456 sectors (RO), sector size=512
Disk /dev/loop7 - 85 MB / 81 MiB - 166424 sectors (RO), sector size=512
Disk /dev/loop8 - 96 MB / 91 MiB - 187776 sectors (RO), sector size=512
Disk /dev/loop9 - 48 MB / 45 MiB - 93920 sectors (RO), sector size=512
Partition table type (auto): EFI GPT
Disk /dev/sdb - 1000 GB / 931 GiB - CT1000MX500SSD1
Partition table type: EFI GPT
Interface Advanced
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=1953525167 (expected 1953525167)
hdr_lba_start=34
hdr_lba_end=1953525134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
check_part_gpt failed for partition
1 P MS Reserved 34 262177 262144
check_part_gpt failed for partition
2 P MS Data 264192 1345535 1081344 [Basic data partition]
check_part_gpt failed for partition
4 P MS Data 1552384 1949325311 1947772928
1 P MS Reserved 34 262177 262144
2 P MS Data 264192 1345535 1081344 [Basic data partition]
3 P EFI System 1347584 1552383 204800
4 P MS Data 1552384 1949325311 1947772928
5 P MS Data 1949327360 1953521663 4194304 [Basic data partition] [ITE]
NTFS, blocksize=4096, 2147 MB / 2048 MiB
Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=1953525167 (expected 1953525167)
hdr_lba_start=34
hdr_lba_end=1953525134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
check_part_gpt failed for partition
1 P MS Reserved 34 262177 262144
check_part_gpt failed for partition
2 P MS Data 264192 1345535 1081344 [Basic data partition]
check_part_gpt failed for partition
4 P MS Data 1552384 1949325311 1947772928
Current partition structure:
No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
1 P MS Reserved 34 262177 262144
1 P MS Reserved 34 262177 262144
No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
2 P MS Data 264192 1345535 1081344 [Basic data partition]
2 P MS Data 264192 1345535 1081344 [Basic data partition]
3 P EFI System 1347584 1552383 204800
No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker
4 P MS Data 1552384 1949325311 1947772928
4 P MS Data 1552384 1949325311 1947772928
5 P MS Data 1949327360 1953521663 4194304 [Basic data partition] [ITE]
Backup partition structure
partition_save
search_part()
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
NTFS at 2/42/41
filesystem size 1266011080
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS part_offset=17825792, part_size=648197672960, sector_size=512
NTFS partition cannot be added (part_offset<part_size).
NTFS at 2/42/41
filesystem size 1266011080
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 34816 1266045895 1266011080
NTFS, blocksize=4096, 648 GB / 603 GiB
NTFS at 117515/141/2
filesystem size 1886334976
sectors_per_cluster 8
mft_lcn 695904
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 1552384 1887887359 1886334976
NTFS found using backup sector, blocksize=4096, 965 GB / 899 GiB
NTFS at 117515/141/2
filesystem size 1886334976
sectors_per_cluster 8
mft_lcn 695904
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 1887887359 3774222334 1886334976
NTFS, blocksize=4096, 965 GB / 899 GiB
This partition ends after the disk limits. (start=1887887359, size=1886334976, end=3774222334, disk end=1953525168)
NTFS at 121339/226/39
filesystem size 1947772928
sectors_per_cluster 8
mft_lcn 695904
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 1552384 1949325311 1947772928
NTFS found using backup sector, blocksize=4096, 997 GB / 928 GiB
NTFS at 121339/226/39
filesystem size 1947772928
sectors_per_cluster 8
mft_lcn 695904
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS: Can't read MFT
MS Data 1949325311 3897098238 1947772928
NTFS, blocksize=4096, 997 GB / 928 GiB
This partition ends after the disk limits. (start=1949325311, size=1947772928, end=3897098238, disk end=1953525168)
NTFS at 121340/4/8
filesystem size 1947774976
sectors_per_cluster 8
mft_lcn 695904
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 1552384 1949327359 1947774976
NTFS found using backup sector, blocksize=4096, 997 GB / 928 GiB
NTFS at 121340/4/8
filesystem size 1947774976
sectors_per_cluster 8
mft_lcn 695904
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
NTFS: Can't read MFT
MS Data 1949327359 3897102334 1947774976
NTFS, blocksize=4096, 997 GB / 928 GiB
This partition ends after the disk limits. (start=1949327359, size=1947774976, end=3897102334, disk end=1953525168)
NTFS at 121340/4/9
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2053
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 1945133057 1949327360 4194304
NTFS found using backup sector, blocksize=4096, 2147 MB / 2048 MiB
NTFS at 121340/4/9
filesystem size 4194304
sectors_per_cluster 8
mft_lcn 262144
mftmirr_lcn 2053
clusters_per_mft_record -10
clusters_per_index_record 1
MS Data 1949327360 1953521663 4194304 [ITE]
NTFS, blocksize=4096, 2147 MB / 2048 MiB
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Check the harddisk size: HD jumper settings, BIOS detection...
The harddisk (1000 GB / 931 GiB) seems too small! (< 1995 GB / 1858 GiB)
The following partitions can't be recovered:
MS Data 1887887359 3774222334 1886334976
NTFS, blocksize=4096, 965 GB / 899 GiB
MS Data 1949325311 3897098238
Many thanks