LoginSignup
6
1

More than 1 year has passed since last update.

Win11にアップデートするとWSL2のマウントでエラーが出る

Posted at

背景

Windows 11 Insider Previewの通知が来たので、ウキウキしながらアップデート

新しくなったUIに感心してたら、WSLからWindows側のファイル(/mnt/c/)が参照できなくなった。

発生したエラー

WSL起動時に

ファイル システムの 1 つをマウント中にエラーが発生しました。詳細については、「dmesg」を実行してください。

というメッセージが発生。

指示に従ってdmesgを叩くと、

ERROR: MountPlan9WithRetry:285: mount drvfs on /mnt/c

みたいなエラーが発生していることが確認できた。マウントに失敗したんだろうなぁ。

対処方法

いろいろ調べて試したけど効果なし。

やけくそになったので、管理者権限のPowerShellでwslをアップデートしたら解決

PS C:\WINDOWS\system32> wsl --update
更新をチェック中...
更新をダウンロード中...
更新をインストール中...
この変更は、次回の WSL 再起動時に有効になります。強制的に再起動するには、'wsl --shutdown' を実行してください。
カーネル バージョン: 5.10.43
PS C:\WINDOWS\system32> wsl --shutdown
6
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
1