Skip to content

Soft links on Linux ext2/3/4 partition not recognized by WSL #4531

Closed

Description

Currently, WSL does not recognize existing ext2/3/4 partitions on any device. It will be cool to have this feature incorporated into WSL kernel so that on a dual boot system, Windows can access Linux partitions directly via WSL.

Therefore, currently, I have to use ext2fsd (https://github.com/matt-wu/Ext3Fsd/) for Windows to see ext2/3/4 partitions. However, there is a problem. For Windows file explorer (i.e., explorer.exe), the soft-linked files are displayed properly and can be accessed.
image
However, for Windows subsystem for Linux (WSL), all soft-linked files cannot be accessed nor read at all.
image
As a consequence, I have to reinstall all packages in anaconda again, wasting much more disk space.

In fact, I found that it is possible to run Linux binary executable on native ext2/3/4 Linux system partition using the /lib64/ld-linux-x86-64.so.2 trick. However, the soft-link issue causes most of the .so library files fail to load.
image

By implementing this feature, most of the programs can be run in both WSL and native Linux.

Activity

  1. therealkenc commented on Sep 22, 2019

    @therealkenc

    Core ask for block device support is dupe #689.

    Ext3Fsd LZ is #579. It should be possible in principle for Ext3Fsd (sic) to provide the correct information to make symbolic links work in WSL. It would take some debugging in Ext3Fsd to look at the queries being made on the Windows side of 9p, what is being returned, and how it differs from NTFS behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions