-
Notifications
You must be signed in to change notification settings - Fork 822
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
Automount tries to mount inaccessible drives #8953
Comments
Note that failure to mount is discussed extensively in #7565. This here is an actionable request to fix the automounter in the specific case where the Windows user (user2) has no access to the drive (on the Windows side). It simply does not make sense to automount any such device (on the Linux side). |
Quoted from claudiusraphael in #7435:
The root cause for ALL of these is WSL's problematic yet invasive default setting of automounting ANY disk with an assigned drive letter, despite Windows' incapability of mounting such filesystems. Solve this single issue would immediately close these issues as they are just different symptoms of the same bug:
Two solution I think would work:
|
I want to argue with this one because I have similar scenario and makes my WSL2 unusable for what I want. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.22621.608]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 22.04
Other Software
Google Drive
Repro Steps
--> user1 now has access to Google Drive data on drive G: (the default drive configured by Google Drive)
install Ubuntu 22.04
// works fine
create user2, log into user2
// do note that local disk G: (see above - Google Drive) is not accessible to user2 (because it is tied to user1)
install Ubuntu 22.04
start Ubuntu 22.04
--> init: (1) ERROR: MountPlan9WithRetry:285: mount drvfs on /mnt/g ... path=G:\ ... failed: 13
Expected Behavior
Automount should not attempt to mount inaccessible drives; Windows 11 Pro itself reports
which is totally correct and fair.
With Automount not attempting mount that drive, there will be no error message (expected behaviour)
Actual Behavior
Error message in console:
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
dmesg contains
init: (1) ERROR: MountPlan9WithRetry:285: mount drvfs on /mnt/g ... path=G:\ ... failed: 13
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: