Skip to content

Instantly share code, notes, and snippets.

@jlant
Last active August 29, 2015 14:26
Show Gist options
  • Save jlant/97cc067d3b23857b0def to your computer and use it in GitHub Desktop.
Save jlant/97cc067d3b23857b0def to your computer and use it in GitHub Desktop.
List - virtual machine tips and setup

Virtual machine tips and setup

Create a shared folder

  1. Create a directory on your host machine; i.e. shared
  2. 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
  1. 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

List contents of connected external hard drive or USB

Access to the contents on the external hard drive or USB are contained in the /media directory

ls /media/jeremiah/{name-of-hard-drive}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment