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

Failed to mount Ext4 partition #8885

Closed
1 of 2 tasks
fenris opened this issue Sep 25, 2022 · 17 comments
Closed
1 of 2 tasks

Failed to mount Ext4 partition #8885

fenris opened this issue Sep 25, 2022 · 17 comments
Assignees

Comments

@fenris
Copy link

fenris commented Sep 25, 2022

Version

Microsoft Windows [Version 10.0.22622.601]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.62.1-microsoft-standard-WSL2

Distro Version

Ubuntu 22.10

Other Software

No response

Repro Steps

wsl --mount \.\PHYSICALDRIVE2 --partition 1

Expected Behavior

image

Actual Behavior

$ wsl --mount \.\PHYSICALDRIVE2 --partition 1
The system cannot find the drive specified.
Error code: Wsl/Service/AttachDisk/0x8007000f

Diagnostic Logs

No response

@bsdayo
Copy link

bsdayo commented Oct 1, 2022

Same problem, I can't mount my udisk with wsl --mount \.\PHYSICALDRIVE1 --bare.

@xiaokentrl
Copy link

I want WSL to mount NTFS format disk directly, or provide an official .exe application to solve the situation of slow IO caused by NTFS, I don't want to have to do everything by myself.

@bmweller
Copy link

bmweller commented Oct 16, 2022

Same issue and noting errors in Hyper-V-Worker logs

Also seeing this on:

wsl --version
WSL version: 0.70.0.0
Kernel version: 5.15.68.1
WSLg version: 1.0.45
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.674
PS C:\WINDOWS\system32>

uname -a
Linux ---------- 5.15.68.1-microsoft-standard-WSL2 #1 SMP Mon Sep 19 19:14:52 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

Noting that this event message is logged every time I run wsl --mount:

image

@dremsol
Copy link

dremsol commented Feb 4, 2023

Same error here when running PowerShell as administrator:

PS C:\Users\dremsol> GET-CimInstance -query "SELECT * from Win32_DiskDrive"

DeviceID           Caption                 Partitions Size          Model
--------           -------                 ---------- ----          -----
\\.\PHYSICALDRIVE0 Micron 2300 NVMe 1024GB 3          1024203640320 Micron 2300 NVMe 1024GB
PS C:\Users\dremsol> GET-CimInstance -query "SELECT * from Win32_DiskDrive"

DeviceID           Caption                 Partitions Size          Model
--------           -------                 ---------- ----          -----
\\.\PHYSICALDRIVE0 Micron 2300 NVMe 1024GB 3          1024203640320 Micron 2300 NVMe 1024GB
\\.\PHYSICALDRIVE1 SDHC Card               4          31914086400   SDHC Card
PS C:\Users\dremsol> wsl --mount \\.\PHYSICALDRIVE1
The system cannot find the drive specified.
Error code: Wsl/Service/AttachDisk/0x8007000f

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@dremsol
Copy link

dremsol commented Feb 4, 2023

@Easonqsp
Copy link

Easonqsp commented Feb 9, 2023

Please have a look at https://learn.microsoft.com/en-us/windows/wsl/connect-usb.

@paularden-onshape
Copy link

I have a similar issue and something I noticed is that if you open the Windows Disk Management tool so you can see the drive and then run the command the drive switches to Offline mode immediately when running the mount command. It has a tooltip then which says "Offline (The disk is offline because of policy set by an administrator)".

The drive will remain Offline until you either re-plug it or bring it online with diskpart manually (the "Online" option in the Disk Manager itself is greyed out).

@mateuszdrab
Copy link

I'm also affected, and my SD reader is not presented as a USB device so the USB-IP solution is out of question.

@jehoshua7
Copy link

Same issue. I have an EXT4 formatted (Kubuntu box) usb drive. Here are the details:

PS C:\Windows\system32> wsl --version
WSL version: 1.2.0.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.2846
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> GET-WMIOBJECT -query "SELECT * from Win32_DiskDrive"

Partitions : 3
DeviceID : \.\PHYSICALDRIVE0
Model : SAMSUNG MZVLW256HEHP-000L7
Size : 256052966400
Caption : SAMSUNG MZVLW256HEHP-000L7

Partitions : 1
DeviceID : \.\PHYSICALDRIVE1
Model : USB SanDisk 3.2Gen1 USB Device
Size : 123041963520
Caption : USB SanDisk 3.2Gen1 USB Device

PS C:\Windows\system32> wmic diskdrive list brief
Caption DeviceID Model Partitions Size
SAMSUNG MZVLW256HEHP-000L7 \.\PHYSICALDRIVE0 SAMSUNG MZVLW256HEHP-000L7 3 256052966400
USB SanDisk 3.2Gen1 USB Device \.\PHYSICALDRIVE1 USB SanDisk 3.2Gen1 USB Device 1 123041963520

PS C:\Windows\system32> wsl --mount \.\PHYSICALDRIVE0
The process cannot access the file because it is being used by another process.
Error code: Wsl/Service/AttachDisk/0x80070020
PS C:\Windows\system32> wsl --mount \.\PHYSICALDRIVE1
The system cannot find the drive specified.
Error code: Wsl/Service/AttachDisk/0x8007000f
PS C:\Windows\system32>

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@saschanaz
Copy link

saschanaz commented Oct 16, 2023

(Commenting for reopening, if it works, because I just found myself affected)

Edit: Well, nope. Sorry then.

@reyqn
Copy link

reyqn commented Nov 5, 2023

This should be reopened

@flaep
Copy link

flaep commented Dec 25, 2023

still an issue

@warpdesign
Copy link

Same problem here.

Also, the drive is put offline as soon as I run the command as well.

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