Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code: Wsl/Service/AttachDisk/0x8007000f #10189

Closed
1 of 2 tasks
piggy2011 opened this issue Jun 13, 2023 · 3 comments
Closed
1 of 2 tasks

Error code: Wsl/Service/AttachDisk/0x8007000f #10189

piggy2011 opened this issue Jun 13, 2023 · 3 comments

Comments

@piggy2011
Copy link

piggy2011 commented Jun 13, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.1702]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

kali-linux 2023.2

Other Software

No response

Repro Steps

My laptop is Surface Laptop 4 (11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz).

After inserting USB storage, the disk is identified by the following command.

PS C:\WINDOWS\system32> GET-WMIOBJECT -query "SELECT * FROM Win32_DiskDrive"

Partitions : 1
DeviceID : \.\PHYSICALDRIVE1
Model : Kingston DataTraveler 3.0 USB Device
Size :
Caption : Kingston DataTraveler 3.0 USB Device

Partitions : 3
DeviceID : \.\PHYSICALDRIVE0
Model : SDBPTPZ-512G-1124-WDC
Size : 512105932800
Caption : SDBPTPZ-512G-1124-WDC

However, the error messages prompt when mounting the partition in WSL 2.

PS C:\WINDOWS\system32> wsl --mount \.\PHYSICALDRIVE1 --bare
The system cannot find the drive specified.
Error code: Wsl/Service/AttachDisk/0x8007000f

Expected Behavior

Mount the USB storage successfully.

Actual Behavior

The system cannot find the drive specified.
Error code: Wsl/Service/AttachDisk/0x8007000f

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 13, 2023

/dupe #9290

@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@piggy2011
Copy link
Author

piggy2011 commented Jun 14, 2023

/dupe #9290

I follow the instructions according to https://github.com/microsoft/WSL/issues/9290, but there is error message after executing the command "modprobe". Here is the message.

┌──(sherman㉿LAPTOP-FPRQU4NE)-[~]
└─$ sudo modprobe -v libiscsi
modprobe: FATAL: Module libiscsi not found in directory /lib/modules/5.15.90.1-microsoft-standard-WSL2

┌──(sherman㉿LAPTOP-FPRQU4NE)-[~]
└─$ ln -s /lib/modules/5.15.90.1-microsoft-standard-WSL2+ /lib/modules/5.15.90.1-microsoft-standard-WSL2
ln: failed to create symbolic link '/lib/modules/5.15.90.1-microsoft-standard-WSL2': Permission denied

┌──(sherman㉿LAPTOP-FPRQU4NE)-[~]
└─$ sudo ln -s /lib/modules/5.15.90.1-microsoft-standard-WSL2+ /lib/modules/5.15.90.1-microsoft-standard-WSL2

To solve the problem, I create the softlink directory /lib/modules/5.15.90.1-microsoft-standard-WSL2 and execute the command "modprobe" again. There is another error message. Pls refer to the following information for detail. Would you pls help me solve this problem? Thanks!

┌──(sherman㉿LAPTOP-FPRQU4NE)-[/lib/modules]
└─$ sudo modprobe -v libiscsi
insmod /lib/modules/5.15.90.1-microsoft-standard-WSL2/kernel/drivers/scsi/scsi_transport_iscsi.ko
modprobe: ERROR: could not insert 'libiscsi': Exec format error

┌──(sherman㉿LAPTOP-FPRQU4NE)-[/lib/modules]
└─$ ls -l /lib/modules
total 8
drwxr-xr-x 3 root root 4096 Jun 14 10:16 5.15.90.1+
lrwxrwxrwx 1 root root 47 Jun 14 14:35 5.15.90.1-microsoft-standard-WSL2 -> /lib/modules/5.15.90.1-microsoft-standard-WSL2+
drwxr-xr-x 3 root root 4096 Jun 14 12:51 5.15.90.1-microsoft-standard-WSL2+

┌──(sherman㉿LAPTOP-FPRQU4NE)-[/lib/modules]
└─$ uname -r
5.15.90.1-microsoft-standard-WSL2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants