MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.9k stars 563 forks source link

How to repaire a vhd mounting error? the tutorial not work at all. #1769

Closed ethever closed 1 year ago

ethever commented 1 year ago

Documentation Issue

see: https://github.com/microsoft/WSL/issues/10169 I guess the related document is outdated or incompleted.

Link to documentation page

https://learn.microsoft.com/en-us/windows/wsl/disk-space#how-to-repair-a-vhd-mounting-error

Suggested Improvements

let's add why this: wsl.exe sudo e2fsck -f /dev/<device> will not work, why we need another distribution to repair your broken distribution instead of leting the --distribution flag blank and wsl will use the default distribution to repair the default distribution and then cause Another program is using this file and the process cannot access it error.

mattwojo commented 1 year ago

Yes - you need to have a distro installed with WSL in order to run that command because it uses a Linux tool. I updated the doc in: https://github.com/MicrosoftDocs/WSL/pull/1779/files Thank you!