microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.37k stars 816 forks source link

Add support for the new NTFS3 kernel module #8564

Open WSLUser opened 2 years ago

WSLUser commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen. I'd like faster access to Windows directories via the new NTFS3 kernel module. NTFS3 allows reading and writing of NTFS partitions, thus quite suitable as an alternative to drvfs.

CONFIG_NTFS3_FS=y Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Enable it myself and build my own custom kernel. Not the way to go for this particular kernel config option. MSFT should enable it for everyone.

Additional context Add any other context or screenshots about the feature request here.

It's already getting included by other linux distros and is an alternative to NTFS-3G (which I think should also be enabled).

bioluks commented 1 year ago

It does not make any sense why Microsoft isn't enabling NTFS in the kernel configuration, I needed this feature badly myself, so I built a custom kernel with those flags enabled: WSL2-Linux-Kernel-NTFS - bioluks NTFS, exFAT and most other crypto ciphers work out of the box.

Firestar-Reimu commented 1 year ago

I support adding NTFS3 feature and merge this change of NTFS3 which is on Linux 6.2 (not 6.1 LTS)

https://github.com/Paragon-Software-Group/linux-ntfs3/commit/1d07a9dfa19914ad27bdb9ec9ac0baa2329b2ae3

See: https://www.phoronix.com/news/NTFS3-Linux-6.2-Features

https://www.kernel.org/doc/html/v6.2/filesystems/ntfs3.html

lukasf commented 5 months ago

This would be super helpful to work around the massive file system performance issues of wsl2:

https://github.com/microsoft/WSL/issues/4197

We could create an NTFS VHDX which could be mounted into WSL, but it could also be easily mounted from the host, e.g. to inspect or extract files. I guess it can only be mounted by either WSL or host, but that does not matter.

pocesar commented 5 months ago

I support adding NTFS3 feature and merge this change of NTFS3 which is on Linux 6.2 (not 6.1 LTS)

Paragon-Software-Group/linux-ntfs3@1d07a9d

See: https://www.phoronix.com/news/NTFS3-Linux-6.2-Features

https://www.kernel.org/doc/html/v6.2/filesystems/ntfs3.html

do you have any step-by-step to making this working in WSL2? I see that the latest custom kernel from WSL is 6.1