NTFS signature
Posted: 16 Feb 2020, 09:26
Hello again. I am trying to understand why NTFS code is not working fine on windows OS.
I made debug on bootsect.c in ntfs library, used by TestDisk. And the code is running on
function. is logging:
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:
Why I got this result ? Can you help me a little bit ?
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;
}