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

Unable to mount SATA hard drive: Wsl/Service/AttachDisk/0x80070032 #10416

Closed
1 of 2 tasks
CliffracerX opened this issue Aug 23, 2023 · 3 comments
Closed
1 of 2 tasks

Unable to mount SATA hard drive: Wsl/Service/AttachDisk/0x80070032 #10416

CliffracerX opened this issue Aug 23, 2023 · 3 comments

Comments

@CliffracerX
Copy link

Windows Version

Microsoft Windows [Version 10.0.25931.1010]

WSL Version

0.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.90.1-microsoft-standard-WSL2

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

Determined drive path through the wmic disklist function (PHYSICALDRIVE1), unmounted all partitions through diskmgmt, ran WSL mount with the bare modifier as follows:
wsl --mount \\.\PHYSICALDRIVE1 --bare

Expected Behavior

The intended WSL mount functionality; bare-mounting it so I can give WSL the full drive and then pass through it to access both its EXT4 and NTFS partitions.

Actual Behavior

$ wsl --mount \\.\PHYSICALDRIVE1 --bare
The request is not supported.
Error code: Wsl/Service/AttachDisk/0x80070032

Of note, this happens be it with --bare or specifically targeting a partition (e.g, the known ext-4 partition --partition 4), as well as when targeting my other external data drive (\\.\PHYSICALDRIVE0)

Diagnostic Logs

Diskdrive output

C:\Windows\System32>wmic diskdrive get Availability,Capabilities,CapabilityDescriptions,DeviceID,InterfaceType,MediaLoaded,MediaType,Model,Name,Partitions
Availability  Capabilities  CapabilityDescriptions                                       DeviceID            InterfaceType  MediaLoaded  MediaType              Model                   Name                Partitions
              {3, 4}        {"Random Access", "Supports Writing"}                        \\.\PHYSICALDRIVE2  SCSI           TRUE         Fixed hard disk media  WDS200T1X0E-00AFY0      \\.\PHYSICALDRIVE2  5
              {3, 4, 10}    {"Random Access", "Supports Writing", "SMART Notification"}  \\.\PHYSICALDRIVE0  IDE            TRUE         Fixed hard disk media  WDC WD4005FZBX-00K5WB0  \\.\PHYSICALDRIVE0  1
              {3, 4, 10}    {"Random Access", "Supports Writing", "SMART Notification"}  \\.\PHYSICALDRIVE1  IDE            TRUE         Fixed hard disk media  TOSHIBA DT01ACA200      \\.\PHYSICALDRIVE1  4

WSL Logs
WslLogs-2023-08-23_18-34-12.zip

@zcobol
Copy link

zcobol commented Aug 27, 2023

@CliffracerX the interface type is IDE but your hard drive is SATA capable, it should show InterfaceType=SCSI. How do you connect your hard drive?

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 29, 2023

Indeed, wsl --mount only supports SCSI disks at the moment so this is why you're seeing this error

@CliffracerX
Copy link
Author

@CliffracerX the interface type is IDE but your hard drive is SATA capable, it should show InterfaceType=SCSI. How do you connect your hard drive?

They're connected by some cables yoinked from the drive bays on the old computer I pulled them from; my current one doesn't have proper drive bays so I had to make do with some bodge-job mounting and cabling.

Indeed, wsl --mount only supports SCSI disks at the moment so this is why you're seeing this error

This would explain it, then- unfortunate that I'll need to futz with the setup to get them supported, but good to know it's user error on my part!

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

No branches or pull requests

3 participants