wsl mount 外部硬盘失败出现错误A device attached to the system is not functioning. Error code: Wsl/Service/Atta

问题

输入

wsl --mount \\.\PhysicalDrive2\ 

报错

A device attached to the system is not functioning.
Error code: Wsl/Service/AttachDisk/HCS/0x8007001f

解决方法

检查一下硬盘有没有检查到

GET-CimInstance -query "SELECT * from Win32_DiskDrive"
DeviceID           Caption                              Partitions Size          Model
--------           -------                              ---------- ----          -----
\\.\PHYSICALDRIVE0 Samsung SSD 990 PRO 2TB              1          2000396321280 Samsung SSD 990 PRO 2TB
\\.\PHYSICALDRIVE1 CT1000P3SSD8                         2          1000202273280 CT1000P3SSD8
\\.\PHYSICALDRIVE2 ST2000LM 007-1R8174 SCSI Disk Device 0          2000396321280 ST2000LM 007-1R8174 SCSI Disk Device

发现不知道什么原因,名字变了,大小写变了

重新输入

wsl --mount \\.\PHYSICALDRIVE2 

成功

The disk was successfully mounted as '/mnt/wsl/PHYSICALDRIVE2'.
Note: The location will be different if you have modified the automount.root setting in /etc/wsl.conf.
To unmount and detach the disk, run 'wsl.exe --unmount \\.\PHYSICALDRIVE2'.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值