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

wsl --mount is not working. #6997

Closed
1 of 2 tasks
rappysaha opened this issue May 27, 2021 · 1 comment
Closed
1 of 2 tasks

wsl --mount is not working. #6997

rappysaha opened this issue May 27, 2021 · 1 comment

Comments

@rappysaha
Copy link

Windows Build Number

Microsoft Windows [Version 10.0.21387.1]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 4.19.128-microsoft-standard (oe-user@oe-host)

Distro Version

Ubuntu 16.04, Ubuntu 20.04

Other Software

No response

Repro Steps

  1. Open Windows terminal at administrator mode.

  2. run wmic diskdrive list brief
    image

  3. We can see a SanDisk Ultra Luxe USB Device listed as \.\PHYSICALDRIVE2. Besides, we can see the drive at file explorer also.
    image

  4. run wsl --mount \\.\PHYSICALDRIVE2 --partition 1
    image

  5. And after trying to run the wsl --mount \\.\PHYSICALDRIVE2 --partition 1 . I cannot see the USB in the file explorer also.
    image

Expected Behavior

image

Actual Behavior

image

Diagnostic Logs

image

@0xbadfca11
Copy link

USB flash drives and SD cards are not supported at this time and will fail to attach to WSL 2. USB disks are supported though.
https://docs.microsoft.com/en-us/windows/wsl/wsl2-mount-disk#limitations

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

2 participants