8 ms·
Linux's Modern NTFS Driver Preparing a “Hidedotfiles” Option
- yrro 4y agoThat sounds quite pleasant, but I wonder who is storing their home directories on NTFS?
- Macha 4y agoI considered this in the past. Linux support for NTFS is much better than any of the mechanisms to read ext3/4/btrfs/etc on Windows/Mac. Your options for a Windows/Mac/Linux portable filesystem are basically exFAT or NTFS. That said, now I use LUKS on Linux and Bitlocker on Windows, I've mostly just given up on a shared filesystem
- yrro 4y agoHow do the Linux-specific properties of files get stored on NTFS (e.g., file owner/group/mode?)
- bzxcvbn 4y agoNTFS ACLs are much more powerful than Unix permissions. Just map users to users, groups to groups, and you're done.
- zerocrates 4y agontfs-3g (is that still how Linux machines are mounting NTFS read/write? it's been a while since I've done it) by default just doesn't do anything with the NTFS permissions and makes everything have a shared owner/group/mode as seen by Linux. You can opt in to having it store Linux permissions in NTFS's ACLs, and there's an option to have a file that maps between Linux and Windows user IDs to allow for interoperability.
- pantalaimon 4y ago> is that still how Linux machines are mounting NTFS read/write ntfs-3g is a FUSE based driver (and not much maintained anymore), Linux now has a fully featured kernel driver with ntfs3 - which is also what TFA is about. https://www.kernel.org/doc/html/latest/filesystems/ntfs3.html https://www.kernel.org/doc/html/latest/filesystems/ntfs3.htm...
- zerocrates 4y agoOh yes, of course, so it is (what the article is about). Oops. Documentation for ntfs3 is a little thin on the ground.
- CoolCold 4y agoI have not tried personally (have no Linux installed), but from docs it should be quite possible to mount your partition of Linux with WSL2. Google for "WSL mount". May work on latest Windows 11 only though.
- wheybags 4y agoI guess nobody ATM, but if the support for NTFS becomes really good then why not use it as your root fs? It's truly battle hardened (the fs, not this particular implementation necessarily), and it is really nice to use an fs that is supported in both Linux and windows if you're dual booting.
- cma 4y agoIsn't NTFS incapable of caching as well or something due to extra layers of indirection, and that is why git is so slow (10-100X) on windows? Or is it another part of windows that slows it down? (Edit: seems to be a combination https://github.com/Microsoft/WSL/issues/873#issuecomment-425272829 https://github.com/Microsoft/WSL/issues/873#issuecomment-425... )
- deleted 4y ago[deleted]
- Mindless2112 4y ago"NTFS really isn't that bad" -- https://web.archive.org/web/https://lca2020.linux.org.au/schedule/presentation/38/ https://web.archive.org/web/https://lca2020.linux.org.au/sch...
- HideousKojima 4y agoNTFS has poor performance with lots of small files.
- marwis 4y agoThat's Windows VFS layer. If you bypass it and read disk structures directly it's wicked fast. There are many file tools that do it such as Everything and WizTree.
- selfhoster11 4y agoReal-time antivirus scanning likely doesn't help. Most Linux users are unlikely to have this running in the background.
- bzxcvbn 4y agoI just wish that Windows app would use the filesystem as it's meant to be rather than just pretend "dotfiles" get hidden on Windows. Just put your data in $env:APPDATA, damnit! Don't clutter my home directory with "hidden" files that aren't really hidden! Even MS tools do it, it's frustrating.
- yrro 4y agoDon't get me started on the wasteland that "My Documents" has become, given 20 years of incompetent developers.
- alyandon 4y agoTo this day, I still have a few applications that store important user configuration files via hard-coded "C:\Program Files\Publisher\AppName" path names rather than literally anywhere else.
- mhh__ 4y agoAnother bit of incompetence that really winds me up is: software that you can specify the install location for, so it installs a update manager at that location but then always installs the actual programs under the C drive
- yrro 4y agoWhat the heck, I've never seen this. Hey ISVs, if you see this conversation engage me to consult on how to make your installers not drive people like us up the wall! ;)
- ridgered4 4y agoIIRC Visual Studio technically lets you install in a non-C location but 80% of the disk usage ends up on C: anyway. Microsoft decided at some point people hard drive were plenty big so who cares? Unfortunately SSDs came along and for quite awhile space was quite tight on them!
- 4y ago
- Animats 4y agoWhy on earth is that a driver-level feature?
- mmastrac 4y agoWhere else would it be appropriate? Either you give every application special knowledge of both dotfiles and NTFS, or you give the filesystem special knowledge of dotfiles. Hypothetically you could write a special daemon that listened for all filesystem events on NTFS filesystems and set this attribute for any created dotfile, but that's incredibly roundabout for one feature.
- Animats 4y ago> Where else would it be appropriate? In the file picker and "Files" utility. "Files" already has a "Show hidden files" setting. Most applications now use a common file picker, because the file picker now has some security privileges - it can give the application the privilege to access a file otherwise not allowed.
- mmastrac 4y agoUnfortunately, the file picker doesn't create most dotfiles, and the point of the "hidden" attribute is to make them invisible on Windows which doesn't have this logic baked in. I understand the logic of having display functionality in the file picker, but what are the chances that we can collectively convince Windows Shell32 developers that explorer.exe needs to display files prefixed with dots as hidden? I think we're both on the same page that it's a hack, but it's a practical hack in that it avoids the need to involve unrelated third parties.
- selfhoster11 4y agoI think the former is a reasonable solution. For example, Nautilus will honour both filenames starting with a ., and all files listed inside a file named `.hidden` in a directory. Adding a third mechanism to hide files is not a big stretch.
- nyanpasu64 4y agoA few months ago, I got a kernel hang when accessing files on a shared "image storage" drive mounted using ntfs3 (forgot what I was doing, maybe using DigiKam), which surprisingly wouldn't respond to alt-sysrq. I ended up switching back to NTFS-3G. I also tried using ntfs2btrfs with WinBtrfs, but ntfs2btrfs not only had a segfault in the application, but when I fixed it, it generated a corrupted btrfs filesystem that would enter read-only mode within a few minutes of having DigiKam accessing images on the btrfs storage drive.
- MisterTea 4y agoI would not promulgate this ancient Unix hack. It was excluded on plan 9 for this exact reason as the Unix creators knew it was a mistake and corrected it. Furthermore, the idea of hidden files seems silly to me as they are mostly used to hide dot files that should be in a directory and not carelessly tossed into the root of a users home directory. It saddens me we pollute newer software with ancient hacks simply because no one wants to fix the root of the problem.
- mistrial9 4y agodoes the existence of a MSFT_PRIVATE partition type in the Ubuntu 22.04 installer also sound "silly" ?
- xg15 4y agoJust to understand this, is this on read or on write? I.e. will the driver just automatically set the hidden flag when a new dotfile is created - or will it "pretend" the flag is set when an application is querying the attributes of a dotfile? I would prefer the first case, as that would leave you the option to manually un-hide a dotfile of you needed to.