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

Mounting a specific partition on the boot device #6015

Open
GalGreenfield opened this issue Oct 1, 2020 · 18 comments
Open

Mounting a specific partition on the boot device #6015

GalGreenfield opened this issue Oct 1, 2020 · 18 comments
Labels

Comments

@GalGreenfield
Copy link

GalGreenfield commented Oct 1, 2020

Is your feature request related to a problem? Please describe.**

I read in the docs that this is currenlty not supported. Do you have plans to add this support? I currently want to add a Linux partition to be used by WSL on the same boot device (disk) that my Windows is installed on.

Describe the solution you'd like

For this feature to be implemented into wsl --mount.

Describe alternatives you've considered

I don't think there are any. Only other thing I can do is get another drive, boot to the other partition (Linux) copy the contents of that partition to the other drive, and mount that drive - that's not what I'm looking to do - I want to use the single drive I have.

Additional context

It'd enable having multiple Linux distros and generally multiple Linux-supported partitions that aren't supported by Windows to be used by WSL.

I moved back to Windows due to lack of support of games and some softwares in Linux, and now I'm a bit bummed out that I even thoughWSL exists, I can't access all of my files and existing distro installation, and either have to start from scartch, boot to it separately, or not use it at all, making WSL useless for me for this use case.

@GalGreenfield GalGreenfield changed the title Mounting specific partition on the boot device Mounting a specific partition on the boot device Oct 1, 2020
@therealkenc
Copy link
Collaborator

/dupe #5997

@ghost
Copy link

ghost commented Oct 2, 2020

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!

@ghost ghost closed this as completed Oct 2, 2020
@ghost ghost added the duplicate label Oct 2, 2020
@GalGreenfield
Copy link
Author

/dupe #5997

It's not exactly the same situation - I'm talking about a partition in the same drive - that question talks about mounting a different drive.

@therealkenc
Copy link
Collaborator

Okay, will bifurcate as more expedient than getting into the underlying cause of the limitations.

@eteq
Copy link

eteq commented Oct 15, 2020

While I think I understand from #5997 that this is a limitation of HyperV, I think the motivation here still stands. And to add a bit more to the motivation @calgreenfield gave: in my case this is critical because I am on a laptop with only room for a single physical drive. Thus it's impossible for me to use this mount command in any useful way in a dual-boot configuration. In practice this has driven me away from WSL and to booting into Linux because I cannot have a two-way "share" of information between WSL and the native linux. So for me this is probably the single biggest impediment to WSL use now.

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 29, 2020

Thanks for creating this @GalGreenfield.

Attaching single partitions to WSL2 is a scenario that is absolutely on our radar, but as you can imagine, this requires a lot of underlying infrastructure change so it's not something that will happen soon, but we definitely want to support this at some point.

@guillermo
Copy link

What a pity. Just spent the evening installing Windows Insider to use this functionality, as indicated by the documentation offered here: tutorial.

I think this "little" caveat is important enough to mention in the documentation.

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 2, 2021

@guillermo: The is specified under the Limitations section of the documentation link you shared.

At this time, only entire disks can be attached to WSL 2, meaning that it's not possible to attach only a partition. Concretely, this means that it's not possible to use wsl --mount to read a partition on the boot device, because that device can't be detached from Windows.

@maximilianoteruel
Copy link

I think this would be an extremely useful feature, because you will be able to dual boot (on a single disk) and read the Linux partition from Windows.

I understand that it is not a simple feature to implement, but does anyone know if there is a plan to implement it in W11 (October release)?

@maximilianoteruel
Copy link

don't let this post die...

1 similar comment
@maximilianoteruel
Copy link

don't let this post die...

@maximilianoteruel
Copy link

Hi @OneBlue .. Do you know if this feature has any progress?

@imscaradh
Copy link

I would like to use this feature as well. For me, this limitation is the only reason not to use Windows more often.

@alou-S
Copy link

alou-S commented Aug 3, 2022

My use for this feature would be to mount my encrypted Linux boot partition on Windows. Would really love to see this feature be implemented soon.

@papaj-na-wrotkach
Copy link

Any progress on this feateure?

@patroza
Copy link

patroza commented Apr 9, 2023

I would like to use a second disk a portion for WSL direct attach, and another portion for Windows to use, so this would come in handy!
Right now im wasting a 2TB SSD for just 100GB of space required under WSL, only to benefit from IO performance and CPU usage reduction :)

@ProgramFan
Copy link

I need this feature to open luks-encrypted linux partition.

@Korazza
Copy link

Korazza commented Sep 28, 2023

Yes, I need this feature too. I would use Windows more often for sure.

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

No branches or pull requests