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

Can't launch distros in SD cards #3519

Closed
DDoSolitary opened this issue Sep 2, 2018 · 6 comments
Closed

Can't launch distros in SD cards #3519

DDoSolitary opened this issue Sep 2, 2018 · 6 comments

Comments

@DDoSolitary
Copy link

DDoSolitary commented Sep 2, 2018

One of my users of the LxRunOffline project reported that he got 0x80070057 error when launching distros that are installed to an SD card and I guess it also applies to distros installed by WslRegisterDistribution.

@DDoSolitary
Copy link
Author

Original issue: DDoSolitary/LxRunOffline#55

@DDoSolitary
Copy link
Author

logs.zip

@benhillis
Copy link
Member

SD cards do not support stable GUIDs, which we require for the root filesystem. Installing to an SD card is not currently a supported scenario.

@Biswa96
Copy link

Biswa96 commented Sep 5, 2018

Why does LxCore Driver need a "stable" GUID of that installation volume? mountvol command can show the GUID of that SD card. Will there be any difference between external SD card reader and in-built SD card slot?

@therealkenc
Copy link
Collaborator

Why does LxCore Driver need a "stable" GUID

#449 (message). Nipping to keep discussion in one place.

@Biswa96
Copy link

Biswa96 commented Sep 7, 2018

@therealkenc In my opinion, this issue isn't related with #449. Moving WSL installation is already supported but in a special way. Hold tight, programming idea ahead!

Look carefully how wslconfig /upgrade command works (cough). It completely MOVES the Linux folders from rootfs to wslfs directory. So what does it do? The strings, rootfs and wslfs, are stored as struct _UNICODE_STRING which are passed to struct _OBJECT_ATTRIBUTES.ObjectName member. Then these ObjectAttributes variables are passed to NtCreateFile() or NtOpenFile().

Both of the cases the OBJECT_ATTRIBUTES.RootHandle (comes from CreateFile()) are same. So my assumption is that, if someone change the base path or RootHandle (where WSL installed) then WSL installation can easily be moved.

Hence #449 is a user mode issue and this is a kernel mode issue (where LxCore wants stable GUID).

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

4 participants