Page 1 of 1

Unknown type

Posted: 10 Dec 2017, 12:05
by PeterMiller
Hello,
I want to recover data/partition from external disc: testdisk shows "unknown" type.
How to proceed?
Thanks in advance for helping.
Regards, PM

Re: Unknown type

Posted: 10 Dec 2017, 20:43
by cgrenier
Do not choose partition type None.
Read https://www.cgsecurity.org/testdisk.pdf

Re: Unknown type

Posted: 11 Dec 2017, 08:48
by PeterMiller
Sorry, but I still do not know how to solve this problem, even after checking TestDisk Documentation, Release 7.1.
What one should do if partition type is "unknown"?
Thanks in advance for advice.
Regards, PM

Re: Unknown type

Posted: 13 Dec 2017, 07:06
by cgrenier
If you choose partition type: None, it means there is no partition, so it's useless to search for partitions...
PC Intel or EFI GPT is probably the correct partition table type.

Please copy and paste the whole testdisk.log file.

Re: Unknown type

Posted: 18 Dec 2017, 23:16
by PeterMiller
Hello,
I chose the suggested partition type Intel. Result again: P unknown.
Then I tried advanced-file system utils
A list was displayed. From this, I tried NTFS and FAT32.
But apparently, testdisk cannot read boot sector. Should I click on "rebuild BS"?
Or, what do you recommend?
Regards, A. Pesch

testdisk.log file:
Mon Dec 18 21:52:09 2017
Command line: TestDisk

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows 8 (9200)
Compiler: GCC 4.8, Cygwin 1007.34
Compilation date: 2015-04-18T13:01:55
ext2fs lib: 1.42.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20120504, curses lib: ncurses 5.9
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=640135028736
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdc)=5000981078016
filewin32_getfilesize(/dev/sdd) GetFileSize err Unzulässige Funktion.

filewin32_setfilepointer(/dev/sdd) SetFilePointer err Unzulässige Funktion.

Warning: can't get size for Disk /dev/sdd - 0 B - 0 sectors, sector size=512
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=640135028736
filewin32_getfilesize(\\.\PhysicalDrive1) GetFileSize err Unzulässige Funktion.

filewin32_setfilepointer(\\.\PhysicalDrive1) SetFilePointer err Unzulässige Funktion.

Warning: can't get size for \\.\PhysicalDrive1
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive2)=5000981078016
filewin32_getfilesize(\\.\PhysicalDrive3) GetFileSize err Unzulässige Funktion.

filewin32_setfilepointer(\\.\PhysicalDrive3) SetFilePointer err Unzulässige Funktion.

Warning: can't get size for \\.\PhysicalDrive3
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=159554789376
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=2000396746752
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\E:)=0
Warning: can't get size for \\.\E:
filewin32_getfilesize(\\.\F:) GetFileSize err Unzulässige Funktion.

filewin32_setfilepointer(\\.\F:) SetFilePointer err Unzulässige Funktion.

Warning: can't get size for \\.\F:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\H:)=457028141056
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\I:)=5000969981952
Hard disk list
Disk /dev/sda - 640 GB / 596 GiB - CHS 77825 255 63, sector size=512
Disk /dev/sdc - 5000 GB / 4657 GiB - CHS 76000 255 63, sector size=4096
Disk \\.\PhysicalDrive2 - 5000 GB / 4657 GiB - CHS 76000 255 63, sector size=4096
Drive C: - 159 GB / 148 GiB - CHS 19398 255 63, sector size=512
Drive D: - 2000 GB / 1863 GiB - CHS 3907024896 1 1, sector size=512
Drive H: - 457 GB / 425 GiB - CHS 55563 255 63, sector size=512
Drive I: - 5000 GB / 4657 GiB - CHS 75999 255 63, sector size=4096

Partition table type default to None
Drive D: - 2000 GB / 1863 GiB
Partition table type: None

Interface Advanced
file_win32_pread(632,7,buffer,3907024769(3907024769/0/1)) read err: read after end of file
P Unknown 0 3907024895 3907024896
Change partition type:
P NTFS 0 3907024895 3907024896
Change partition type:
P NTFS 0 3907024895 3907024896

ntfs_boot_sector
P NTFS 0 3907024895 3907024896
filesystem size 1
sectors_per_cluster 0
mft_lcn 0
mftmirr_lcn 0
clusters_per_mft_record 0
clusters_per_index_record 0
Boot sector
ntfs_boot_sector: Can't read boot sector.
Status: Bad

Backup boot sector
ntfs_boot_sector: Can't read backup boot sector.
Status: Bad

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.

Interface Advanced
P Unknown 0 3907024895 3907024896
Change partition type:
P FAT32 0 3907024895 3907024896

Interface Advanced
P Unknown 0 3907024895 3907024896
Change partition type:
P FAT32 0 3907024895 3907024896

fat32_boot_sector
P FAT32 0 3907024895 3907024896
Boot sector
fat32_boot_sector: Can't read boot sector.
Bad

Backup boot sector
fat32_boot_sector: Can't read backup boot sector.
Bad

Sectors are identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.

TestDisk exited normally.

Re: Unknown type

Posted: 05 Jan 2018, 13:27
by PeterMiller
Hello and "Happy New Year":
I provided all the requested information about my issue, but I didn´t receive any more answer. Hence, I suppose you do not "dare" to give me the answer that Testdisc does not work at least in this case. Am I right?
Sincerely, PM

Re: Unknown type

Posted: 06 Jan 2018, 09:45
by cgrenier
It's useless to search partitions inside a partition D:

If a partition is missing, search for them on a disk instead (sda, \.\PhysicalDrive2 or sdc).
If the filesystem is damaged, read https://www.cgsecurity.org/testdisk.pdf chapter "Repairing filesystem"