Linux 的 Windows 子系统无法通过 fstab 加载,无法挂载

问题描述 投票:0回答:1

我是认真的,为什么人们不回答这个问题

我不知道如何修复此错误,因为在 Windows 更新出现严重问题后我已经 2 年没有使用 WSL... 任何人都可以解决这个问题吗?

Microsoft Windows [Version 10.0.19045.3930]
(c) Microsoft Corporation. All rights reserved.

C:\Users\user>wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Stopped         1

C:\Users\user>wsl
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount I:\, see dmesg for more details.
Failed to mount K:\, see dmesg for more details.
Failed to mount L:\, see dmesg for more details.

<3>WSL (9) ERROR: CreateProcessEntryCommon:331: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:502: execvpe /bin/sh failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:505: Create process not expected to return

C:\Users\user>wsl
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount I:\, see dmesg for more details.
Failed to mount K:\, see dmesg for more details.
Failed to mount L:\, see dmesg for more details.

<3>WSL (9) ERROR: CreateProcessEntryCommon:331: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:502: execvpe /bin/sh failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:505: Create process not expected to return

C:\Users\user>

另外,我的电脑规格是:

  • Windows 10 Pro Build 22H2(我最近更新了)
  • 英特尔赛扬 1005M 1.90GHz
  • 8GB DDR3 内存
  • 驱动器:
    • 雷克沙 256GB 固态硬盘
    • I-O 数据 SSPH-UA SCSI 磁盘驱动器
    • 铠侠 TransMemory 32GB 带有真正的 Ubuntu 磁盘映像和数据
  • 英特尔双频无线-N 7260
  • 内部 GPU,英特尔高清显卡

我尝试使用 YouTube 来解决这个问题,但还是没有解决。

linux windows ubuntu windows-10 windows-subsystem-for-linux
1个回答
0
投票

我也有同样的问题。使用以下命令修复它。

C:\Users\Usr> wsl --set-default Ubuntu
The operation completed successfully.
    
C:\Users\Usr> wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu                 Running         2
  docker-desktop         Running         2
 
PS C:\Users\Usr> wsl

希望这有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.