-
Notifications
You must be signed in to change notification settings - Fork 840
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
/etc/fstab vhdx disk fails to mount at boot randomly #11539
Comments
View similar issuesPlease 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! Open similar issues:
Closed similar issues:
Diagnostic information
|
@borjamunozf: wsl --mount will only be able to mount the disk when running WSL as admininistrator. Could it be that the failures are when WSL is not started as admin ? |
But how is possible that sometimes it works? My test (and from other devs)
is runnings always WSL as normal user, non-admin.
Indeed I remember that the wsl --mount --attach only worked as admin from
documentation and other issues reported here, but after seeing that it
worked (sometimes) with the config I wrote associated to the Distro in
Windows Terminal, I don't get what's going on.
El mar, 30 abr 2024 a las 23:11, Blue ***@***.***>) escribió:
… @borjamunozf <https://github.com/borjamunozf>: wsl --mount will only be
able to mount the disk when running WSL as admininistrator.
Could it be that the failures are when WSL is not started as admin ?
—
Reply to this email directly, view it on GitHub
<#11539 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGFV5D7S2Z2GFDITLY27WKDZAACG3AVCNFSM6AAAAABG76TX5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBXGMZTIMBQGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Does the mount work if let's say you run wsl --shutdown, and then start WSL as admin ? |
Interesting. Could you collect logs of a working and a non working repro when running WSL as administrator (in separate files if possible)? /logs |
I will try to run again, it's a bit annoying because the EDR of my company blocks it and we have to request specific and temporary approval of the script. And also as it's a bit random could take a while to get both samples. |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue. Thank you! |
i'm having the same issue |
Windows Version
Microsoft Windows [22631.3447) 23H2
WSL Version
2.1.5
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
As mentioned #11281 this is a random error (or it seems so) that I was able to reproduce in my machine, but it affects other developers in my company with slighly different versions of WSL2 and Windows.
I have some issues to get the logs because the script got blocked by the EDR in the company.
LABEL=workspace /home/ubuntu/workspace ext4 defaults 0 2
powershell.exe -Command "wsl.exe -d Ubuntu-22.04-abc--mount --vhd C:\vhd\workspace\workspace.vhdx --bare | Out-Null; wsl.exe ~ -d Ubuntu-22.04-abc"
Expected Behavior
Disk is automatically mounted always.
Actual Behavior
Start distro shows ~50-60% of times this error.
[Fri Mar 8 14:38:46 2024] mount:
[Fri Mar 8 14:38:46 2024] /home/ubuntu/workspace: can't find LABEL=workspace.
[Fri Mar 8 14:38:46 2024] WSL (1) ERROR: UtilCreateProcessAndWait:687: /bin/mount failed with status 0x2000
Diagnostic Logs
Here the logs meanwhile WslLogs-2024-04-30_12-01-59.zip
The text was updated successfully, but these errors were encountered: