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
--mount support for USB flash drives #6011
Comments
|
Hi @HoFamilyMaker, This issue has already been identified and will be fixed in an upcoming insider build. Out of curiosity, what kind of disk are you trying to mount ? |
|
Is this related to being able to access a WSL folder of the form... \wsl$\docker-desktop-data\mnt\wsl\docker-desktop-data\data with "Attempt to access invalid address" (this has been my Quick Access list in Explorer so I now it WAS the right folder). Curiously, if I drill down to this folder in Explorer I can see the folder but it is now empty. I have been using this for months, to edit in VS.Code. As of today, though, that folder is empty and I can no longer access the WordPress plugin I have been developing, since I can't access from VS.Code. Strangely, though, the web site that is supposedly running from their (localhost) remains available. I'm really confused so any help would be really appreciated. |
Thanks I found this Limitations my disk is USB flash |
Thanks My windows 10 is latest Insider build 20226 I found this Limitations try wsl2 to mount USB flash receive the error 'The remote procedure call failed' |
|
My apologies @HoFamilyMaker I realize that the fix is not yet in Insiders, but thank you for updating! As @OneBlue mentioned we have a fix incoming for this soon, we'll ping this thread when it's available in the latest Insider build. |
|
Need this so much! Can't do wsl --mount \.\PhysicalDrive1 :( |
|
I too am affected by this issue. Would really like to manipulate my linux partitions without additional software like Paragon. native support would be excellent. Guessing this goes for the following as well: I tried also with my SD card device, but that's definitely flash memory. |
|
Any update? |
|
Hey folks, wanting to add some clarity here since I realize that my last comment was not very clear. We added a fix for the 'remote procedure call failed' which was the immediate blocker for this in the root issue. However WSL --mount does not yet have support for USB flash drives formatted in Linux file formats. If you'd like to mount a flash drive in WSL you can do that if it's seen in Windows (in other words, if it's formatted in a file format that Windows understands like NTFS) using |
|
The reason I want wsl to work is so I can work on Raspberry pi drives from my Windows PC or laptop. |
|
I want this so I can dd |
|
It would be great to get more clarification on this if It now works or not. I am confused if it works or not. Use case why we like this feature: A bunch of us seem to want to get access to the Raspberry PI sdcards so we can manipulate them. Originally we wanted to use wsl2 (the development version but the person working on this failed o get it working). Thus we developed an alternative in for gitbash at https://github.com/cloudmesh/cloudmesh-pi-burn in the branch https://github.com/cloudmesh/cloudmesh-pi-burn/tree/windows I think many of us using the Pi for education would really appreciate a clarification about the status of this. Thanks |
|
@laszewsk as of right now --mount does not support USB flash drives if they are formatted in a Linux file format. This issue is left open to track this request. Please see this comment for full details: #6011 (comment) |
|
Can someone tell me how to do this please? I need to fsck my raspi card |
|
you could do a boot from a live linux CD and then use fsck from that. In case you like to burn multiple SD Cards for a PI cluster, we updated our documentation at |
Thanks, i've tried that but it was unable to fix my card through Parted and commandline |
|
+1, this feature is critical for anyone doing embedded development (and relies on transfers from SD cards via USB adapter). |
|
Same thing here, when using an sd card with adapter.
|
|
Workaround is use Usb Reader (notebook integrated not allways works) + VMWare with Debian and GParted |
|
Same here, not working using USB reader DeviceID Caption Partitions Size Model
-------- ------- ---------- ---- -----
\\.\PHYSICALDRIVE0 Samsung SSD 970 EVO Plus 1TB 3 1000202273280 Samsung SSD 970 EVO Plus 1TB
\\.\PHYSICALDRIVE2 Lexar SD WorkflowUR2 USB Device 2 15924142080 Lexar SD WorkflowUR2 USB Device
\\.\PHYSICALDRIVE3 Lexar SD WorkflowUR2 USB Device 0 Lexar SD WorkflowUR2 USB Device
\\.\PHYSICALDRIVE1 Lexar SD WorkflowUR2 USB Device 0 Lexar SD WorkflowUR2 USB Device
PS C:\Users\Eugene> wsl --mount \\.\PHYSICALDRIVE2
The system cannot find the drive specified.laptop buildin sd card slot not working too |
|
+1 on the desire to interact with my Pi SD card from windows |
|
We just released a new version of cloudmesh-pi-burn: https://cloudmesh.github.io/pi/tutorial/raspberry-burn-windows/ |
|
Same issue for me, sd and sd card reader |
|
Same issue, please provide a solution via wsl or enable ext4 support |
|
Hello, hoping this will bump the issue. `PS C:\Users\Meti> Get-CimInstance -query "SELECT * from Win32_DiskDrive" DeviceID Caption Partitions Size Model \.\PHYSICALDRIVE2 WDC WD10JPVT-00MS8T0 1 1000202273280 WDC WD10JPVT-00MS8T0 PS C:\Users\Meti> wsl --mount \.\PHYSICALDRIVE3 --bare |
|
This is still an issue for me. |
|
Same here as explained in #8885 |
|
imagine it's still not fixed |
|
Was trying to use WSL to copy games and other things over to an SD card formatted for a Steam Deck. Saw the following behaviour: > wsl --mount \\.\PHYSICALDRIVE1 --partition 1
The system cannot find the drive specified.
Error code: Wsl/Service/AttachDisk/0x8007000f |
|
Two years later, still not fixed. |
|
Same problem here: |
|
Hi, same issue here. |
|
I do not think Microsoft has any fix for this in their roadmap as of now. |
|
@benhillis and @OneBlue Can you please help in this getting it fixed?
|
|
Still cannot do it lol |
It's a feature request. It can't be 'fixed' because it was never broken. |
|
@ndemarco, it’s broken because it’s not only about flash drives. i can’t even mount my hdd. |
|
@absolutelynothelix this issue relates to mounting USB flash drives, not hdd / ssd. |
|
@ndemarco, |
|
Is anyone at Microsoft aware of this issue? |
|
Probably. But clearly they don't care about it. |
|
Would really like to see this functionality implemented soon |
|
Leaving a comment to get notifications for this, till now, I've tried recompiling the kernel using the guide from this link https://www.youtube.com/watch?v=iyBfQXmyH4o , but this does not work for my internal sd-card reader which shows up as this when usbpid is used and the command usb-devices is run in Ubuntu (or kali) |
|
@Animesh-Thakur Nice, so is USB support working now in your WSL distros and kernel?
|
|
I had to look around the menuconfig for a bit and set another flag for my internal card reader to work, and yes, it does work, unfortunate it isn't the default behaviour though |
|
I found what worked for me best was to delete windows and install ubuntu |
|
Great, can you share your kernel so that I can quickly check if it works for me?
|
|
Can't upload kernel to something which I'll feel comfortable sharing, might write my step by step when I have time, but that'll have to wait, hope you can work it out without my help, because I won't count on it. PS. can't upload it on GH, size too large |
|
Ok, I'll try this weekend.
If you write your tutorial in between, then let me know.
…On 3/27/2023 10:07 PM, Animesh Thakur wrote:
Great, can you share your kernel so that I can quickly check if it
works for me? Later will build it for myself.
I found what worked for me best was to delete windows and
install ubuntu
Can't upload kernel to something which I'll feel comfortable sharing,
might write my step by step when I have time, but that'll have to
wait, hope you can work it out without my help, because I won't count
on it.
—
Reply to this email directly, view it on GitHub
<#6011 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQWBM3EIA5HWH63IG3UZXTW6G64XANCNFSM4SAKTF3Q>.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Just wanting to clarify here and maybe help serve as a reminder for anyone else coming to this thread that hasn't read all the way through:
This is because , according to this issue, USB flash drives (which is what I needed to mount all along) are still not supported even after almost 3 years of this issue being open?!
However, their support wiki page also states:
I'm still running off the kernel I compiled with no issues, but it seems that some users may not need to compile their own kernels. In short, it seems that the "wsl --mount" option is still severely lacking in functionality and that usbipd-mount may be the preferable solution. Is there any advantage, if USB support is now compiled into WSL kernel and therefore usbipd-win setup is very easy to use "wsl --mount" over usbipd-win? With usbupd-win I was able to perform block-level operations against a mounted USB flash drive. I would think that most other operations would build on top of that and not have issues. If it were up to me, at this point, I would recommend the use of usbipd-win in any scenario due to my experience and the limitations of "wsl --mount". With the exception of 5 minutes of setup, there seems to me no disadvantage. However I am but one user and admittedly do not understand the full scope of the underlying architecture between the two choices. Can anyone speak to how/why/when "wsl --mount" would be a superior option? |



upgrade to build 20226
run this command wsl --mount
receive the error 'The remote procedure call failed'
Originally posted by @HoFamilyMaker in #6008 (comment)
The text was updated successfully, but these errors were encountered: