MicrosoftDocs / WSL

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

Update WSL shutdown instructions for clarity by specifying PowerShell should be run as administrator before executing the shutdown command. #2028

Closed Civon closed 1 week ago

Civon commented 2 months ago

This PR addresses the issue where the first attempt to run wsl --shutdown using an unprivileged PowerShell fails.

Steps to Reproduce

  1. Fill the VHD to its capacity and follow the instructions to fix the read-only fallback error.
  2. In the Read-only fallback error section, use an unprivileged PowerShell to run wsl.exe --shutdown.
  3. Observe the error as shown in the image below: image

Solution

Run the command in a privileged PowerShell session.

learn-build-service-prod[bot] commented 2 months ago

Learn Build status updates of commit d08a15a:

:white_check_mark: Validation status: passed

File Status Preview URL Details
WSL/disk-space.md :white_check_mark:Succeeded View

For more details, please refer to the build report.

For any questions, please:

Civon commented 2 months ago

FYR: I may also need to close Docker Desktop(on Windows) to not getting error _Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_SHARINGVIOLATION while running next command wsl.exe sudo e2fsck -f /dev/sdc

learn-build-service-prod[bot] commented 1 week ago

Learn Build status updates of commit c62fceb:

:white_check_mark: Validation status: passed

File Status Preview URL Details
WSL/disk-space.md :white_check_mark:Succeeded View

For more details, please refer to the build report.

For any questions, please:

mattwojo commented 1 week ago

Good update - thank you!