windows_subsystem_for_linux_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
windows_subsystem_for_linux_setup [2019/08/20 09:45] – [Basic packages] tkbletsc | windows_subsystem_for_linux_setup [2021/07/27 15:04] – [Installing distro] tkbletsc | ||
---|---|---|---|
Line 12: | Line 12: | ||
https:// | https:// | ||
+ | |||
+ | https:// | ||
Other URLs exist for other distros; you're on your own for that. | Other URLs exist for other distros; you're on your own for that. | ||
Line 37: | Line 39: | ||
===== Run explorer from this directory in bash ===== | ===== Run explorer from this directory in bash ===== | ||
- | I'm used to saying '' | + | I'm used to saying '' |
- | alias explorer="cmd.exe /c start" | + | alias start="powershell.exe /c start" |
Line 55: | Line 57: | ||
# | # | ||
+ | </ | ||
+ | |||
+ | ===== Script to mount *all* drives ===== | ||
+ | By default, WSL just mounts physical drives around at boot. This script mounts all drives Windows knows about to directories under /mnt: | ||
+ | |||
+ | < | ||
+ | for DRV in `wmic.exe logicaldisk get name | grep : | awk ' | ||
+ | MNT=/ | ||
+ | if mount | grep -q $MNT ; then | ||
+ | echo $MNT already mounted | ||
+ | else | ||
+ | sudo mkdir -p $MNT | ||
+ | sudo mount -t drvfs $DRV $MNT | ||
+ | fi | ||
+ | done | ||
</ | </ | ||
windows_subsystem_for_linux_setup.txt · Last modified: 2022/10/09 08:57 by tkbletsc