Hello. I attach the hexdump file at this email (is a small file, hexdump.txt) I loaded the NTFS library in a test VC++/MFC project and I used to read a NTFS drive. I can list the function that has been called until the failure: // 1.volume.cntfs_volume* ntfs_device_mount(struct ntfs_device *dev, ntfs_mount_flags flags).... vol = ntfs_volume_startup(dev, flags); ...ntfs_volume* ntfs_volume_startup(struct ntfs_device *dev, ntfs_mount_flags flags) ...if (! ntfs_boot_sector_is_ntfs(bs))
//2. bootsect.cBOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR* b) .... 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"); // <-- the code run by here, unexplainable goto not_ntfs; } it is not long race until I arrive on this issue ... On Monday, March 2, 2020, 04:45:01 PM GMT+2, Jean-Pierre André <jean-pierre.an...@wanadoo.fr> wrote: Flaviu2 via ntfs-3g-devel wrote: > Hello Pierre. > > I am afraid I cannot run "blkid path-to-partition" command because I > don't have a Linux OS, just Win10. Then, can you at least post an hexadecimal dump of the beginning of the boot sector you read in the buffer pointed at by "b" (64 bytes should be enough). > Yes, I am trying to read a USB stick formatted as NTFS. That is for sure. > > Inline image > I am just suspecting that library doesn't read Win10 ntfs drives due to > this issue (from my post) and because I read this limitation in > documentation. I am in the lack of ideas ... How did you guard against Win10 having opened the partition exclusively in read-write mode ? It might also be useful you tell how you open the partition, and how you make sure you read actual data. Jean-Pierre > > Regards, > Flaviu. > On Thursday, February 27, 2020, 05:10:48 PM GMT+2, Jean-Pierre André > <jean-pierre.an...@wanadoo.fr> wrote: > > > Flaviu2 via ntfs-3g-devel wrote: > > Hello. I have loaded NTFS-3G from here: > > https://github.com/vitalif/ntfs-3g into > <https://github.com/vitalif/ntfs-3g%C2%A0into%20>a VS2017 project, > wanting to > > read NTFS USB stick drive. And when I debugging reading process, I saw > > that is not reading USB drive due to: > > > > *// bootsect.c* > > > > BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR* b) > > { > > u32 i; > > BOOL ret = FALSE; > > ntfs_log_debug("Beginning bootsector check.\n"); > > > > 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"); // *<-- my code > > is running from here ...* > > goto not_ntfs; > > } > > ... > > ... > > > > > > I run it this code on *Win10 64bit/VS2017*. And my USB stick are valid, > > I have tried several USB stick (all of them NTFS). > > > > I read that *vitalif/ntfs-3g* has a OS limitation: Windows XP, ... and > > Windows 7 file systems ... that is why I suspect the cause of my failing > > reading process ... > > The mentionned check is valid, if it fails then you are > not reading an ntfs partition. Maybe you are reading the > full device instead of a partition, or reading a partition > formatted as fat or exfat. > > What is the output of "blkid path-to-partition" ? > > > > > I have seek it on github for another *NTFS-3G* /project that support > > Win10/, I didn't found it ... is there anywhere another version of > > *NTFS-3G library that work on Win10* ? Or, could another cause for my > > failing ? > > Several limitations were lifted or pushed back on Win10, > and AFAIK the latest ntfs-3g can access a partition updated > by Win10. > > Jean-Pierre > > > > > > Any support will be wellcome, I am struggle for this issue for days and > > days ... > > > > Regards, > > Flaviu. _______________________________________________ ntfs-3g-devel mailing list ntfs-3g-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
00033 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00 06 b9 00 02 fc f3 a4 50 68 1c 06 cb fb b9 04 00 bd be 07 80 7e 00 00 7c 0b 0f 3À.м.|.À.ؾ.|¿..¹..üó¤Ph..Ëû¹..½¾..~..|.. 02a85 0e 01 83 c5 10 e2 f1 cd 18 88 56 00 55 c6 46 11 05 c6 46 10 00 b4 41 bb aa 55 cd 13 5d 72 0f 81 fb 55 aa 75 09 f7 c1 01 00 ....Å.âñÍ..V.UÆF..ÆF..´A»ªUÍ.]r..ûUªu.÷Á.. 05474 03 fe 46 10 66 60 80 7e 10 00 74 26 66 68 00 00 00 00 66 ff 76 08 68 00 00 68 00 7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 t.þF.f`.~..t&fh....fÿv.h..h.|h..h..´B.V..ô 07ecd 13 9f 83 c4 10 9e eb 14 b8 01 02 bb 00 7c 8a 56 00 8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe 4e 11 75 0c 80 7e 00 80 Í...Ä..ë.¸..».|.V..v..N..n.Í.fas.þN.u..~.. 0a80f 84 8a 00 b2 80 eb 84 55 32 e4 8a 56 00 cd 13 5d eb 9e 81 3e fe 7d 55 aa 75 6e ff 76 00 e8 8d 00 75 17 fa b0 d1 e6 64 e8 83 ....².ë.U2ä.V.Í.]ë..>þ}Uªunÿv.è..u.ú°Ñædè. 0d200 b0 df e6 60 e8 7c 00 b0 ff e6 64 e8 75 00 fb b8 00 bb cd 1a 66 23 c0 75 3b 66 81 fb 54 43 50 41 75 32 81 f9 02 01 72 2c 66 .°ßæ`è|.°ÿædèu.û¸.»Í.f#Àu;f.ûTCPAu2.ù..r,f 0fc68 07 bb 00 00 66 68 00 02 00 00 66 68 08 00 00 00 66 53 66 53 66 55 66 68 00 00 00 00 66 68 00 7c 00 00 66 61 68 00 00 07 cd h.»..fh....fh....fSfSfUfh....fh.|..fah...Í 1261a 5a 32 f6 ea 00 7c 00 00 cd 18 a0 b7 07 eb 08 a0 b6 07 eb 03 a0 b5 07 32 e4 05 00 07 8b f0 ac 3c 00 74 09 bb 07 00 b4 0e cd .Z2öê.|..Í. ·.ë. ¶.ë. µ.2ä....ð¬<.t.»..´.Í 15010 eb f2 f4 eb fd 2b c9 e4 64 eb 00 24 02 e0 f8 24 02 c3 49 6e 76 61 6c 69 64 20 70 61 72 74 69 74 69 6f 6e 20 74 61 62 6c 65 .ëòôëý+Éädë.$.àø$.ÃInvalid partition table 17a00 45 72 72 6f 72 20 6c 6f 61 64 69 6e 67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 65 6d 00 4d 69 73 73 69 6e 67 20 6f 70 .Error loading operating system.Missing op 1a465 72 61 74 69 6e 67 20 73 79 73 74 65 6d 00 00 00 63 7b 9a e6 bd e6 34 00 00 80 20 21 00 07 fe ff ff 00 08 00 00 00 d8 d7 01 erating system...c{.æ½æ4... !..þÿÿ.....Ø×. 1ce00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .......................................... 1f800 00 00 00 00 00 55 aa ......Uª
_______________________________________________ ntfs-3g-devel mailing list ntfs-3g-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel