- Create a directory on your host machine; i.e. shared
- In VirtualBox, click on Devices -> Shared Folders -> + button on right -> type or select path to shared folder on your host
- make sure you select Auto mount and Make permanent
- In the virtual machine on the command prompt:
- create a new directory in /mnt
- give full access rights to directory
- mount it with proper permissions
- create a soft link to your home directory
$ sharename=shared
$ sudo mkdir /mnt/$sharename
$ sudo chmod 777 /mnt/$sharename
$ sudo mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename
$ ln -s /mnt/shared/ ~/shared
Reference - http://faculty.washington.edu/rjl/uwhpsc-coursera/vm.html#shared-folders
Access to the contents on the external hard drive or USB are contained in the /media directory
ls /media/jeremiah/{name-of-hard-drive}/