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

[WSL2] drvfs drives do not mount automatically #4774

Closed
theRemix opened this issue Dec 18, 2019 · 1 comment
Closed

[WSL2] drvfs drives do not mount automatically #4774

theRemix opened this issue Dec 18, 2019 · 1 comment
Labels

Comments

@theRemix
Copy link

Your Windows build number

Microsoft Windows [Version 10.0.19041.1]

What you're doing and what's happening:

  • Launch Ubuntu 18.04 LTS
  • wsl automount and fstab are not automounting
  • enter mount | grep drvfs into bash
  • no output, c drive is not mounted

What's wrong / what should be happening instead:

mount | grep drvfs should return

C: on /mnt/c type 9p (rw,relatime,dirsync,aname=drvfs;path=C:;symlinkroot=/,mmap,access=client,msize=65536,trans=fd,rfd=3,wfd=3)
C: on /c type 9p (rw,relatime,dirsync,aname=drvfs;path=C:;symlinkroot=/,mmap,access=client,msize=65536,trans=fd,rfd=3,wfd=3)

/etc/fstab

sudo mount -a will mount all drives, though this doesn't happen automatically at bootup

LABEL=cloudimg-rootfs   /        ext4   defaults        0 0

C: /mnt/c drvfs defaults 0 0

# don't use symlink because docker won't work
/mnt/c /c none bind,umask=0222

/etc/wsl.conf

[automount]
root = /
options = "metadata"
@LouisDega
Copy link

This configuration in the file /etc/wsl.conf helped me.
[automount] root = / enabled = true options = "uid=1000,gid=1000,umask=022,fmask=11,metadata"

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

3 participants