Created
September 24, 2013 08:21
-
-
Save wiledal/6681846 to your computer and use it in GitHub Desktop.
Set up auto mount for folders shared in VirtualBox with one command line.
Replace <SHARED FOLDER> with the folder which is shared.
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
sudo touch /etc/init.d/mountdisks.sh; sudo sh -c 'echo "mount -t vboxsf <SHARED FOLDER> /var/www" > /etc/init.d/mountdisks.sh'; sudo chmod +x /etc/init.d/mountdisks.sh; sudo ln -s /etc/init.d/mountdisks.sh /etc/rc5.d/S20mountdisks.sh; sudo ln -s /etc/init.d/mountdisks.sh /etc/rc2.d/S20mountdisks.sh; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment