Skip to content

Instantly share code, notes, and snippets.

@valorad
Last active October 23, 2020 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valorad/d3709da098fe18b3299684fa4f131bf4 to your computer and use it in GitHub Desktop.
Save valorad/d3709da098fe18b3299684fa4f131bf4 to your computer and use it in GitHub Desktop.
Windows Linux Subsystem mount NTFS folder volume
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