-
Notifications
You must be signed in to change notification settings - Fork 832
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
Running wsl2 on non-admin user is not mounting drive C #11135
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! Open similar issues:
Closed similar issues:
|
I tried to replicate this on some Azure vm's and i was not able. Somehow i noticed that this is randomly happening. If i use the combination of wsl --shutdown or wsl --terminate, then will start working for regular user. Don't know how to debug this, as i can't find something usefully in dmesg about why it is not mounting, except the following error which is about the paths:
|
/logs |
I've sent the logs to the email address. |
Thank you @ciprianglg. Looking at the logs, this seem to be the root cause of the drives not being mounted:
This most likely means that the dllhost.exe process running this is crashing. Can you follow the '11) Reporting a WSL process crash' section and reproduce the issue to collect the process crash and share it with us ? |
@OneBlue i was off for a couple of days, so unable to reply. I tried to take a dump with the script using admin rights but:
|
You don't need to capture the dumps yourself. This section '11) Reporting a WSL process crash' shows how can enable automatic crash dump collection |
@OneBlue i've replicated the issue several time, but no crash was generated, so maybe there is no crash. The only workaround is to use wsl --terminate command, and after i start again all is fine, and c drive is mounted. I have other colleagues with the same issue, and all of them are able to use the steps i've mentioned, and behavior is the same. |
Windows Version
Microsoft Windows [Version 10.0.22631.3007]
WSL Version
WSL version: 2.1.1.0
Are you using WSL 1 or WSL 2?
Kernel Version
Kernel version: 5.15.146.1-2
Distro Version
Debian 12
Other Software
No response
Repro Steps
Install wsl --install -d Debian running with user1 as admin
Let the install to finish and create initial user in linux distro
Remove admin rights for user1
Reboot windows
Open from windows terminal a Debian shell, and you will will see that drive c: is not mapped and then because of this you will get :
which is normal behavior from my POV since drive C was not mounted in the first place.
Trying to mount c: drive:
sudo mount -t drvfs C: /mnt/c/
you will get:
<3>WSL (438) ERROR: UtilConnectVsock:586: connect port 50002 failed 110
Expected Behavior
When you open Debian shell, to be able to run it as normal user and not as elevated user.
Actual Behavior
At the moment running as non admin user gives an error because drive c: is not mounted.
This problem is not present in version https://github.com/microsoft/WSL/releases/tag/1.2.5
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: