Last active
October 23, 2020 04:35
-
-
Save valorad/d3709da098fe18b3299684fa4f131bf4 to your computer and use it in GitHub Desktop.
Windows Linux Subsystem mount NTFS folder volume
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
directory="/mnt/c/workspace" | |
fileEntries=`ls $directory` | |
for file in ${fileEntries[@]} | |
do | |
if [[ -L "$directory/$file" ]] | |
then | |
sudo mkdir -p /mnt/$file | |
sudo mount -t drvfs C:\\workspace\\$file /mnt/$file -o metadata,uid=1000,gid=1000,umask=22,fmask=002 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment