Skip to content

Instantly share code, notes, and snippets.

@valorad
Last active January 22, 2019 02:18
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/b9099022d46f7f11e1b4892d4481e237 to your computer and use it in GitHub Desktop.
Save valorad/b9099022d46f7f11e1b4892d4481e237 to your computer and use it in GitHub Desktop.
Mount Virtual Box Shared Folder to workspace as a non-root user (uid=1000, gid=1000)
sleep 5
sfs=`ls /media`
for folder in ${sfs[@]}; do name=${folder#*sf_}; mkdir -p /workspace/$name; mount -t vboxsf -o uid=1000,gid=1000 $name /workspace/$name; done
# usage
# - Create shared folders from virtualbox interface. No need to auto-mount
@valorad
Copy link
Author

valorad commented Dec 19, 2018

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