User Tools

Site Tools


other:win10wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
other:win10wsl [2021/02/24 14:05]
jypeter [Creating a backup of the Linux running in WSL] More improvements
other:win10wsl [2021/02/24 14:44] (current)
jypeter [WSL]
Line 398: Line 398:
 ===== Updating WSL and ubuntu ===== ===== Updating WSL and ubuntu =====
  
-<note tip>You don't have to worry about this if you have just installed WSL+Ubuntu!</​note>​+<note tip>You don't have to worry about the //Upgrade// section ​if you have just installed WSL+Ubuntu, because you are already using the latest Ubuntu stable release!</​note>​
 ==== WSL ==== ==== WSL ====
  
-WSL is automatically updated ​when Windows 10 is updated+**Nothing to do!** WSL is automatically updated, provided you have **enabled** the [[other:​win10maintain#​updating_microsoft_office|Get updates for other Microsoft products]] option
  
 [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​wsl-config#​managing-multiple-linux-distributions| WSL command line options]] [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​wsl-config#​managing-multiple-linux-distributions| WSL command line options]]
Line 715: Line 715:
 It is not possible to **stop or reboot WSL** like a regular Linux computer It is not possible to **stop or reboot WSL** like a regular Linux computer
   * ''​shutdown -r now''​ will generate an error message   * ''​shutdown -r now''​ will generate an error message
-  * WSL keeps on running even when all the terminals are closed+  * WSL keeps on running even when all the Linux terminals are closed
  
-Shutting down or rebooting the Windows computer will of course stop WSL but it's useful to be able to only stop/​restart WSL in order to:+Shutting down or rebooting the Windows computer will of course stop WSL but it's useful to be able to just stop/​restart WSL in order to:
   * force WSL to **recognize new disk drives** and make them available as ''/​mnt/<​new_drive_letter''​   * force WSL to **recognize new disk drives** and make them available as ''/​mnt/<​new_drive_letter''​
   * force WSL to recognize drives that were still encrypted when the first WSL terminal was opened   * force WSL to recognize drives that were still encrypted when the first WSL terminal was opened
  
-WSL can be stopped the following way. Warning: ​all the opened ​terminals and running processes ​will be terminated!+WSL can be stopped the following way. Warning: ​all the open terminals and running processes ​will be terminated!
   * from a Windows terminal (''​cmd'',​ ''​PowerShell'',​ ... no need to run as administrator):​   * from a Windows terminal (''​cmd'',​ ''​PowerShell'',​ ... no need to run as administrator):​
-    * Get the name of the installed (and running) Linux: **''​wsl %%--%%list %%--%%all''​** +    * Get the name of the installed (and running) Linux: **''​wsl %%--%%list %%--%%verbose''​** 
-    * Stop this instance of Linux (e.g. if it is named //​Ubuntu//​):​ **''​wsl %%--%%terminate Ubuntu''​**+    * Stop //this instance// of Linux (e.g. if it is named //​Ubuntu//​):​ **''​wsl %%--%%terminate Ubuntu''​** 
 +    * or Stop //all// the currently running Linux distributions:​ **''​wsl %%--%%shutdown''​**
  
-Alternative (and less convenient) ways: 
-  * from the //​Services//​ tab of the Task manager or the //​Services//​ program (launch ''​services.msc''​) 
-    * Right-click on the ''​LxssManager''​ service and select //Restart// 
-  * from a //​Powershell//​ in admin mode (right-click on the Windows //Start// button) 
-    * Type ''​Get-Service LxssManager | Restart-Service''​ 
- 
-Source: google ''​wsl lxssmanager''​ ([[https://​www.how2shout.com/​how-to/​how-to-reboot-wsl-windows-subsystem-linux-in-windows-10.html|most usable answer]]) 
  
 ==== Creating a backup of the Linux running in WSL ==== ==== Creating a backup of the Linux running in WSL ====
other/win10wsl.1614175502.txt.gz · Last modified: 2021/02/24 14:05 by jypeter