2台のパソコンのうち1台が
['wsl.exe -d Ubuntu-20.04' の起動時にエラー 0x8007010bが発生しました]
先頭のディレクトリ "//wsl$/Ubuntu/home" にアクセスできませんでした
というメッセージが出てUbuntuが起動しない。
一度Windows Terminalを使わずにUbuntuを起動しておけば問題なく動く。
以下の記事を見つけた
https://github.com/microsoft/WSL/issues/7308
TTSKarlsson
for those looking for a workaround, i am able to access the files in File Explorer, and then after that, WSL2 starts fine for me
Another workaround:
{
"guid": "{75def201-4efb-5e32-93a0-c5647120c025}",
"hidden": false,
"name": "ubuntu",
"tabTitle": "UbuntuWSL",
"source": "Windows.Terminal.Wsl",
"commandline": "wsl ~ -d ubuntu"
// "startingDirectory": "\\\\wsl$\\ubuntu\\home\\tkarlsson"
}
Setting a commandline execution instead of starting directory. The ~ as first argument to wsl means start in home directory. It also worked every time for me when running Windows Terminal in elevated mode, but I don't want to do that.
startingDirectoryの指定を止めろってことだな。
最後の行をコメントにする時は直前の行末の","を消すのを忘れないように。
正常に起動する。カレントディレクトリも"/home/hida"になっている。
SFC /Scannow で直ったみたい。
2021-09-16追記
NECのパソコンをアップデートしたら同様の現象が発生。
SFCでも直らず。ホームディレクトリの設定を削除した。
2021/10/12 まただめになったので、設定のホームの所を空白にした。
0 コメント:
コメントを投稿