This file contains hidden or 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
| <# calling the wslMount function will attach one or more physical disks to a wsl instance | |
| -drives | |
| This parameter specifies which disks, and is an array of what Windows calls the Friendly Name. | |
| You can see these by calling `Get-PhysicalDisk`. | |
| -count | |
| The list of friendly names are not necessarily unique (eg if you have multiple of the same model of drive). | |
| Count is required so that you know how many disks have been matched, and will be passed to WSL. | |
| -wsl | |
| The name of the wsl install you want to interact with, defaults to the default wsl instance. | |
| -mount |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # !!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| # This script is unmaintained | |
| # !!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| # !!!!!!!!!!!!!!!!!!!!!!!!!!! | |
| # This script is unmaintained | |
| # !!!!!!!!!!!!!!!!!!!!!!!!!!! |
OlderNewer