Page 1 of 1

NTFS signature

Posted: 16 Feb 2020, 09:26
by mesajflaviu
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

Code: Select all

BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR* b)
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:

Image
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;
	}
Why I got this result ? Can you help me a little bit ?

Re: NTFS signature

Posted: 20 Feb 2020, 19:05
by mesajflaviu
Any hint will be very useful to me :) ...