Second partition missing after Windows 7 -> 10 upgrade
Posted: 09 Jan 2020, 21:39
I've recently upgraded my Shuttle PC (SZ68R5) from Windows 7 to Windows 10 and in the process, the second partition on a Seagate ST4000DM000 4TB drive has disappeared. I unfortunately can't remember the precise detail of how the drive came to be divided into two but I believe it was because the PC has a BIOS and therefore can only access partitions of a maximum size of 2TB.
I've now run Teskdisk and it seemed to find the missing second partition. I did what I thought was required to repair the partition but now, after a reboot, neither partitions are working in Windows. Instead, I have two drives, one of which reports a corrupted disk structure and the other claims to be un-formatted. I'm now out of my depth and would like to seek help before I make matters worse.
Thanks in anticipation...
The Teskdisk log now follows:
Wed Jan 8 19:22:57 2020
Command line: TestDisk
TestDisk 7.2-WIP, Data Recovery Utility, December 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Windows 8 (9200)
Compiler: GCC 7.4, Cygwin 3000.3
ext2fs lib: 1.45.3, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.0
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=4000787030016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=480103981056
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=4000787030016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=480103981056
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive2
filewin32_getfilesize(\\.\PhysicalDrive3) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive3
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive4
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive5
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=479515041792
filewin32_getfilesize(\\.\D:) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\D:) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\D:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=2199022206976
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=0
Warning: can't get size for \\.\G:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=0
Warning: can't get size for \\.\I:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\K:)=0
Warning: can't get size for \\.\K:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\L:)=0
Warning: can't get size for \\.\L:
Hard disk list
Disk /dev/sda - 4000 GB / 3726 GiB - CHS 486401 255 63, sector size=512 - ST4000DM000-1F2168, S/N:W301738E, FW:CC54
Disk /dev/sdb - 480 GB / 447 GiB - CHS 58369 255 63, sector size=512 - KINGSTON SUV500MS480G, S/N:50026B7782667038, FW:003056RI
Partition table type (auto): Intel
Disk /dev/sda - 4000 GB / 3726 GiB - ST4000DM000-1F2168
Partition table type: Intel
Analyse Disk /dev/sda - 4000 GB / 3726 GiB - CHS 486401 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
Info: size boot_sector 4294965241, partition 4294965248
Current partition structure:
1 * HPFS - NTFS 0 32 33 267349 89 4 4294965248 [Data]
search_part()
Disk /dev/sda - 4000 GB / 3726 GiB - CHS 486401 255 63
NTFS at 0/1/1
filesystem size 3907023554
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 91571500
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 243200 247 56 3907023554
NTFS, blocksize=4096, 2000 GB / 1863 GiB
BAD_RS LBA=4294973440 2048
NTFS at 267349/186/38
filesystem size 3519055872
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
NTFS, blocksize=4096, 1801 GB / 1678 GiB
file_pread(4,2,buffer,7814037503(486401/86/21)) lseek err Invalid argument
file_pread(4,1,buffer,7814037503(486401/86/21)) lseek err Invalid argument
file_pread(4,2,buffer,7814037504(486401/86/22)) lseek err Invalid argument
file_pread(4,1,buffer,7814037504(486401/86/22)) lseek err Invalid argument
file_pread(4,8,buffer,7814037248(486401/82/18)) lseek err Invalid argument
file_pread(4,1,buffer,7814037248(486401/82/18)) lseek err Invalid argument
file_pread(4,8,buffer,7814037376(486401/84/20)) lseek err Invalid argument
file_pread(4,7,buffer,7814037505(486401/86/23)) lseek err Invalid argument
file_pread(4,2,buffer,7814037504(486401/86/22)) lseek err Invalid argument
file_pread(4,8,buffer,7814037512(486401/86/30)) lseek err Invalid argument
file_pread(4,3,buffer,7814037520(486401/86/38)) lseek err Invalid argument
file_pread(4,3,buffer,7814037567(486401/87/22)) lseek err Invalid argument
file_pread(4,8,buffer,7814037583(486401/87/38)) lseek err Invalid argument
file_pread(4,11,buffer,7814037630(486401/88/22)) lseek err Invalid argument
file_pread(4,2,buffer,7814039552(486401/118/54)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=1
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=1
Warning: the current number of heads per cylinder is 255 but the correct value may be 8.
Results
* HPFS - NTFS 0 1 1 243200 254 63 3907024002
NTFS, blocksize=4096, 2000 GB / 1863 GiB
P HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
NTFS, blocksize=4096, 1801 GB / 1678 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 243200 254 63 3907024002
2 P HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
interface_write()
1 * HPFS - NTFS 0 1 1 243200 254 63 3907024002
2 P HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
You will have to reboot for the change to take effect.
SIGHUP detected! TestDisk has been killed.
I've now run Teskdisk and it seemed to find the missing second partition. I did what I thought was required to repair the partition but now, after a reboot, neither partitions are working in Windows. Instead, I have two drives, one of which reports a corrupted disk structure and the other claims to be un-formatted. I'm now out of my depth and would like to seek help before I make matters worse.
Thanks in anticipation...
The Teskdisk log now follows:
Wed Jan 8 19:22:57 2020
Command line: TestDisk
TestDisk 7.2-WIP, Data Recovery Utility, December 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Windows 8 (9200)
Compiler: GCC 7.4, Cygwin 3000.3
ext2fs lib: 1.45.3, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.0
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=4000787030016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=480103981056
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=4000787030016
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=480103981056
filewin32_getfilesize(\\.\PhysicalDrive2) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive2) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive2
filewin32_getfilesize(\\.\PhysicalDrive3) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive3
filewin32_getfilesize(\\.\PhysicalDrive4) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive4) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive4
filewin32_getfilesize(\\.\PhysicalDrive5) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\PhysicalDrive5) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\PhysicalDrive5
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=479515041792
filewin32_getfilesize(\\.\D:) GetFileSize err Incorrect function.
filewin32_setfilepointer(\\.\D:) SetFilePointer err Incorrect function.
Warning: can't get size for \\.\D:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=2199022206976
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\G:)=0
Warning: can't get size for \\.\G:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=0
Warning: can't get size for \\.\I:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\K:)=0
Warning: can't get size for \\.\K:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\L:)=0
Warning: can't get size for \\.\L:
Hard disk list
Disk /dev/sda - 4000 GB / 3726 GiB - CHS 486401 255 63, sector size=512 - ST4000DM000-1F2168, S/N:W301738E, FW:CC54
Disk /dev/sdb - 480 GB / 447 GiB - CHS 58369 255 63, sector size=512 - KINGSTON SUV500MS480G, S/N:50026B7782667038, FW:003056RI
Partition table type (auto): Intel
Disk /dev/sda - 4000 GB / 3726 GiB - ST4000DM000-1F2168
Partition table type: Intel
Analyse Disk /dev/sda - 4000 GB / 3726 GiB - CHS 486401 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/32/33
Info: size boot_sector 4294965241, partition 4294965248
Current partition structure:
1 * HPFS - NTFS 0 32 33 267349 89 4 4294965248 [Data]
search_part()
Disk /dev/sda - 4000 GB / 3726 GiB - CHS 486401 255 63
NTFS at 0/1/1
filesystem size 3907023554
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 91571500
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 243200 247 56 3907023554
NTFS, blocksize=4096, 2000 GB / 1863 GiB
BAD_RS LBA=4294973440 2048
NTFS at 267349/186/38
filesystem size 3519055872
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 2
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
NTFS, blocksize=4096, 1801 GB / 1678 GiB
file_pread(4,2,buffer,7814037503(486401/86/21)) lseek err Invalid argument
file_pread(4,1,buffer,7814037503(486401/86/21)) lseek err Invalid argument
file_pread(4,2,buffer,7814037504(486401/86/22)) lseek err Invalid argument
file_pread(4,1,buffer,7814037504(486401/86/22)) lseek err Invalid argument
file_pread(4,8,buffer,7814037248(486401/82/18)) lseek err Invalid argument
file_pread(4,1,buffer,7814037248(486401/82/18)) lseek err Invalid argument
file_pread(4,8,buffer,7814037376(486401/84/20)) lseek err Invalid argument
file_pread(4,7,buffer,7814037505(486401/86/23)) lseek err Invalid argument
file_pread(4,2,buffer,7814037504(486401/86/22)) lseek err Invalid argument
file_pread(4,8,buffer,7814037512(486401/86/30)) lseek err Invalid argument
file_pread(4,3,buffer,7814037520(486401/86/38)) lseek err Invalid argument
file_pread(4,3,buffer,7814037567(486401/87/22)) lseek err Invalid argument
file_pread(4,8,buffer,7814037583(486401/87/38)) lseek err Invalid argument
file_pread(4,11,buffer,7814037630(486401/88/22)) lseek err Invalid argument
file_pread(4,2,buffer,7814039552(486401/118/54)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=1
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=1
Warning: the current number of heads per cylinder is 255 but the correct value may be 8.
Results
* HPFS - NTFS 0 1 1 243200 254 63 3907024002
NTFS, blocksize=4096, 2000 GB / 1863 GiB
P HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
NTFS, blocksize=4096, 1801 GB / 1678 GiB
interface_write()
1 * HPFS - NTFS 0 1 1 243200 254 63 3907024002
2 P HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
interface_write()
1 * HPFS - NTFS 0 1 1 243200 254 63 3907024002
2 P HPFS - NTFS 267349 186 38 486400 211 19 3519055872 [Backups]
write!
write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
You will have to reboot for the change to take effect.
SIGHUP detected! TestDisk has been killed.