17ea04010346b719ffdb465e1894433f84fa2fb3
Windows/WSL.md
| ... | ... | @@ -26,7 +26,37 @@ |
| 26 | 26 | - シェルで `explorer.exe .` を入力 |
| 27 | 27 | - `/mnt/<Drive>/<Path>` でアクセス |
| 28 | 28 | |
| 29 | -# その他 |
|
| 29 | +# 起動時にWindowsドライブをマウント |
|
| 30 | +- /etc/wsl.conf |
|
| 31 | + ```conf |
|
| 32 | + [boot] |
|
| 33 | + systemd=true |
|
| 34 | + |
|
| 35 | + [automount] |
|
| 36 | + enabled=true |
|
| 37 | + mountFsTab=true |
|
| 38 | + root="/mnt/" |
|
| 39 | + options="" |
|
| 40 | + crossDistro=true |
|
| 41 | + |
|
| 42 | + [network] |
|
| 43 | + generateHosts=true |
|
| 44 | + generateResolvConf=true |
|
| 45 | + |
|
| 46 | + [interop] |
|
| 47 | + enabled=true |
|
| 48 | + appendWindowsPath=true |
|
| 30 | 49 | |
| 50 | + [filesystem] |
|
| 51 | + umask=0022 |
|
| 52 | + ``` |
|
| 53 | +- /etc/fstab |
|
| 54 | + ``` |
|
| 55 | + f: /mnt/f drvfs metadata,noatime,uid=1000,gid=1000,defaults 0 0 |
|
| 56 | + ``` |
|
| 57 | + |
|
| 58 | +- [1.3. Windowsドライブマウント設定 #WSL - Qiita](https://qiita.com/boss_ape/items/6ba3a846e45b2ebe24c9) |
|
| 59 | + |
|
| 60 | +# その他 |
|
| 31 | 61 | - カレントディレクトリを VSCode で開く<br> |
| 32 | 62 | `code .` |