-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,17 @@ | ||
*⚠️ This project is no longer maintained as the owner moved to a different OS. If you'd like to take over ownership [please contact me]([email protected]).* | ||
|
||
# Move WSL | ||
|
||
Bash, batch and PowerShell script to move WSL 1 and WSL 2 distros VHDX file to a different location. | ||
PowerShell script to move WSL 1 and WSL 2 distros VHDX file to a different location. | ||
|
||
![Interactive Example](screencast.gif) | ||
|
||
## Usage | ||
|
||
### Bash | ||
Use with git bash for Windows or similiar. | ||
|
||
#### Interactive way | ||
1) `./move-wsl` | ||
2) Select your distro | ||
3) Enter your target (i.e. `/d/wsl target/ubuntu`) | ||
|
||
#### Explicit way | ||
1) Get a list of WSL distros: `wsl -l` | ||
2) Move your image: `./move-wsl [NAME] [LOCATION]` | ||
|
||
__Example:__ `./move-wsl docker-desktop /d/docker` | ||
|
||
|
||
### PowerShell | ||
Interactive way of moving wsl for Windows PowerShell. | ||
|
||
1) `./move-wsl.ps1` | ||
2) Select your distro | ||
3) Enter your target (i.e. `D:\wsl target\ubuntu`) | ||
|
||
### Batch | ||
_This is a lightweight version_ which can also be used from Windows CMD. | ||
|
||
1) Get a list of WSL distros: `wsl -l` | ||
2) Move your image: `move-wsl.bat [NAME] [LOCATION]` | ||
|
||
__Example:__ `move-wsl.bat docker-desktop "D:\wsl files\docker"` | ||
|
||
## Moving Docker WSL | ||
|
||
Before moving Docker WSL make sure to stop the Docker service. Otherwise Docker will crash and you may need to reset it to factory defaults. | ||
|