netheril96 / securefs

Filesystem in userspace (FUSE) with transparent authenticated encryption
Other
734 stars 62 forks source link

Experience: Windows11, NTFS USB Drive, --format 4, long file paths, and missing user permissions. #172

Open JodiTheTigger opened 6 months ago

JodiTheTigger commented 6 months ago

tl;dr: Due to long path names, and using USB drive on different computer with different user accounts, whatever code applies the <machine>\Administrators and <machine>\Users --format 4 file and folder permissions, didn't work due to "path too long" issues

Not really a bug report, more leaving this here in case other people have similar issues on Windows 11


Edition Windows 11 Pro
Version 23H2
Installed on    ‎11/‎12/‎2022
OS build    22631.3235
Experience  Windows Feature Experience Pack 1000.22687.1000.0

Initial experience

So I try to fix

Gave up, spent far too long renaming directories to a so I could delete them manually (should have just NTFS reformatted the drive)

So in the end I deleted the --format 3 folder, and went back to --format 2 keeping in mind I might get this permission denied error in the future when I change computers.

The first drive worked fine the entire time. So I suspect it was me using mismatched winfsp/securefs software combo, or there might be an issue in the latest securefs/winfps

I now use ROBOCOPY to copy the raw unmounted securefs directory between USB drives, as this does support long file names

netheril96 commented 6 months ago

Can you try running TAKEOWN with \\?\ prefixed path? That is, if the directory is D:\a\b\c, use \\?\D:\a\b\c instead (only back slash works, and the path must be absolute).