Skip to content

Commit 1ceb2f7

Browse files
authored
Links: WSL (2021-01) (#1058)
1 parent 4971546 commit 1ceb2f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WSL/wsl2-mount-disk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ If `Diskpath` is omitted, all attached disks are unmounted and detached.
167167
168168
## Mount a VHD in WSL
169169

170-
You can also mount virtual hard disk files (VHD) into WSL using `wsl --mount`. To do this, you first need to mount the VHD into Windows using the [`Mount-VHD`](https://docs.microsoft.com/powershell/module/hyper-v/mount-vhd) command in Windows. Be sure to run this command in a window with administrator privileges. Below is an example where we use this command, and also output the disk path. Be sure to replace `<pathToVHD>` with your actual VHD path.
170+
You can also mount virtual hard disk files (VHD) into WSL using `wsl --mount`. To do this, you first need to mount the VHD into Windows using the [`Mount-VHD`](/powershell/module/hyper-v/mount-vhd) command in Windows. Be sure to run this command in a window with administrator privileges. Below is an example where we use this command, and also output the disk path. Be sure to replace `<pathToVHD>` with your actual VHD path.
171171

172172
```powershell
173173
Write-Output "\\.\PhysicalDrive$((Mount-VHD -Path <pathToVHD> -PassThru | Get-Disk).Number)"
@@ -183,4 +183,4 @@ You can also use this technique to mount and interact with the virtual hard disk
183183

184184
- USB flash drives are not supported at this time and will fail to attach to WSL 2. USB disks are supported though.
185185

186-
- Only filesystems that are natively supported in the kernel can be mounted by `wsl --mount`. This means that it's not possible to use installed filesystem drivers (such as ntfs-3g for example) by calling `wsl --mount`.
186+
- Only filesystems that are natively supported in the kernel can be mounted by `wsl --mount`. This means that it's not possible to use installed filesystem drivers (such as ntfs-3g for example) by calling `wsl --mount`.

0 commit comments

Comments
 (0)