Skip to content
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

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

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

Civon
Copy link
Contributor

@Civon Civon commented Sep 25, 2024

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.

…l should be run as administrator before executing the shutdown command.
Copy link
Contributor

Learn Build status updates of commit d08a15a:

✅ Validation status: passed

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

For more details, please refer to the build report.

For any questions, please:

@Civon Civon marked this pull request as draft September 25, 2024 20:13
@Civon
Copy link
Contributor Author

Civon commented Sep 25, 2024

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

@Civon Civon marked this pull request as ready for review September 25, 2024 20:57
Copy link
Contributor

Learn Build status updates of commit c62fceb:

✅ Validation status: passed

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

For more details, please refer to the build report.

For any questions, please:

@mattwojo mattwojo merged commit d618580 into MicrosoftDocs:main Nov 19, 2024
2 checks passed
@mattwojo
Copy link
Collaborator

Good update - thank you!

mattwojo added a commit that referenced this pull request Nov 19, 2024
* Final editorial review update (#2063)

Fix oobe delete user path
Rename best practices to recommendations
Minor writing style updates

* Fix backtick in build-custom-distro.md (#2062)

* Remove the duplicate `feedback_product_url` value (#2040)

* Update troubleshooting.md (#2034)

Azure virtual machine does support Nested Virtualization, but cannot use with Trusted Launch. Hence proposing minor correction.

* Update networking.md (#2033)

Updated that the hostname takes a lowercase -i  as the address flag.  This can be seen by running hostname --help.  also made the "under the hood" section more verbose with the full length ip-address command.

* Add the information about the --pre-release option (#2031)

* Add note for blocked Microsoft Store (#2030)

* Add note for blocked Microsoft Store

* Editorial update

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Add rule to ignore service account's contribute (#2039)

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

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

* Add Docker Desktop error recommendation

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Fix warnings (#2065)

---------

Co-authored-by: Carlos Nihelton <carlosnsoliveira@gmail.com>
Co-authored-by: Caozhi Li <git@licaoz.com>
Co-authored-by: thiruma0203 <thiruma.msft@hotmail.com>
Co-authored-by: Horsevad <Horsevad@users.noreply.github.com>
Co-authored-by: Carlos Rafael Ramirez <crramirez@users.noreply.github.com>
Co-authored-by: Chunyao Chan <24861096+Civon@users.noreply.github.com>
mattwojo added a commit that referenced this pull request Nov 19, 2024
* Final editorial review update (#2063)

Fix oobe delete user path
Rename best practices to recommendations
Minor writing style updates

* Fix backtick in build-custom-distro.md (#2062)

* Remove the duplicate `feedback_product_url` value (#2040)

* Update troubleshooting.md (#2034)

Azure virtual machine does support Nested Virtualization, but cannot use with Trusted Launch. Hence proposing minor correction.

* Update networking.md (#2033)

Updated that the hostname takes a lowercase -i  as the address flag.  This can be seen by running hostname --help.  also made the "under the hood" section more verbose with the full length ip-address command.

* Add the information about the --pre-release option (#2031)

* Add note for blocked Microsoft Store (#2030)

* Add note for blocked Microsoft Store

* Editorial update

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Add rule to ignore service account's contribute (#2039)

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

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

* Add Docker Desktop error recommendation

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Fix warnings (#2065)

* Fix pytorch directml install command (#2066)

Resolves #2044

---------

Co-authored-by: Carlos Nihelton <carlosnsoliveira@gmail.com>
Co-authored-by: Caozhi Li <git@licaoz.com>
Co-authored-by: thiruma0203 <thiruma.msft@hotmail.com>
Co-authored-by: Horsevad <Horsevad@users.noreply.github.com>
Co-authored-by: Carlos Rafael Ramirez <crramirez@users.noreply.github.com>
Co-authored-by: Chunyao Chan <24861096+Civon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants