Skip to content

Commit

Permalink
WSL: support additional mounts
Browse files Browse the repository at this point in the history
There are some preparations required:

* the user must be able to sudo mount --all without asking for su password
  add 'youruser ALL=NOPASSWD: /bin/mount, /bin/umount' to /etc/sudoers
* mount points need to be added to /etc/fstab, e.g.
  /mnt/c /c none bind
* mount points need to be created before mounting (e.g. sudo mkdir /c)
* more info: microsoft/WSL#1918 (comment)
  • Loading branch information
agross committed Nov 18, 2017
1 parent b6ec0b6 commit 3959c73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wsl/zprofile.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ if [[ -f /proc/version ]] && \

# https://github.com/Microsoft/BashOnWindows/issues/1887
unsetopt BG_NICE

sudo mount --all
fi

0 comments on commit 3959c73

Please sign in to comment.