I made debug on bootsect.c in ntfs library, used by TestDisk. And the code is running on
Code: Select all
BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR* b)
ntfs_log_debug("Checking OEMid, NTFS signature.\n");
and then the code is checking the NTFS boot sector, and the device is a simple USB stick formated as NTFS:
https://postimg.cc/56V6LKMy
This is the code that makes me trouble:
Code: Select all
ntfs_log_debug("Checking OEMid, NTFS signature.\n");
if (b->oem_id != const_cpu_to_le64(0x202020205346544eULL)) // "NTFS "
{
ntfs_log_error("NTFS signature is missing.\n"); // <-- here is go out the program
goto not_ntfs;
}