-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL Ext4 (mount --bare) problem when shared on network #11355
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
@marcal: This is most likely a mount namespace issue. WSL uses two different mount namespaces depending on whether you're running elevated or not.
|
@marcal: This is unfortunately by design. \wsl.localhost is per-user, so if you create a link with let's say mklink, that will lose user information depending on which actual user account the filesystem access is made from. If you want to share the content of a WSL distro of the networking, running a samba server would be your best best. |
Hello, |
SMB3 operates at the file level, for virtual machines, you require block-level access, which can be achieved using the iSCSI protocol. Currently, I'm utilizing ZFS on WSL2 and tgt iSCSI. I'm waiting for ZFS on Windows to become more mature before switching to it. |
Hello, |
You can use iSCSI zvol in the WSL and you can use iSCSI in WSL, just need something like targetcli-fb, for zvol you can compile kernel with ZFS and change the configuration to replace the original kernel. |
Hello, |
I was aware that, so I change the kernel source to https://github.com/microsoft/WSL2-Linux-Kernel .
Years ago, I tested it to run games, and it worked fine. But for writing the same data, data corruption may occur. Read only is safer, if you want to write, mount iSCSI as read only and using something like overlayfs for writing. Reads go to Server, writes go to client(I think you can add another iSCSI block device… so all go to server). |
Windows Version
Microsoft Windows [version 10.0.22631.3296]
WSL Version
2.0.14.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04.4 LTS
Other Software
No response
Repro Steps
lsblk says the drive is in sdc1
Expected Behavior
A file copied from one OS to the other shoult be there (I took ext4 as it is supplied but it would be for btrfs or ZFS).
Actual Behavior
dir from windows shows nothinf while ls in linux works
(and reverse when a copy is made in Windows)
Diagnostic Logs
No response
EDIT : I know I can use
\wsl.localhost\Ubuntu\mnt\ext4\ (with subst too)
if I mount in the /mnt/ext4 folder
but in that case I can't share the drive on the network for other computers so I would like so put it in a specific map
Can you please help me?
The text was updated successfully, but these errors were encountered: