Skip to main content

Mounting Shared Drives

In order to mount a Shared Drive on a Windows machine, please use the following procedure.

  1. Open File Explorer in your Paperspace machine and select This PC.

file explorer

  1. Select the Computer tab in the ribbon menu, then select Map network drive.

file explorer

  1. Enter drive location and preferences.

  2. Select your preferred drive letter from the dropdown.

  3. Enter the network path of the drive, which can be found in the console.

file explorer

note

Optional Step: Specify folder file explorer You can click Browse to select the desired folder level to mount. Here you can see the root folder and optionally add new folders. The root folder is the default location. Once you have chosen the desired folder to mount, click OK.

  1. Enter drive username and password provided in the console.

file explorer

info

The username and password will be added to your clipboard by clicking the password field.

  1. Click OK to enter the credentials and then Finish to complete the process of mounting the drive.

Linux

  1. Create a directory where you would like to mount the drive.

    If this directory is created outside of your home directory, you must create it as root with sudo, in which case you must change its permissions to match the paperspace user.

sudo mkdir /mnt/share
sudo chown paperspace:paperspace /mnt/share

    Alternatively, you may create a directory inside your home directory tree without using sudo.

paperspace@ps1234Z:~$ mkdir /home/paperspace/share
  1. Set up the shared drive.

    Find the path, username and password in the Paperspace console.

    Then, using your favorite editor, open the /etc/fstab file as root:

sudo nano /etc/fstab

    And, append the following line to the bottom of the file.

    Replace the respective fields with your assigned values:

//YOUR_SHARED_DRIVE_IP/YOURSHARE /mnt/share   cifs  user=USERNAME,password=PASSWORD,rw,uid=1000,gid=1000,users 0 0
  1. Mount the shared drive

    As the paperspace user, you may now run:

mount /mnt/share

    Your drive will be automatically mounted to this directory at boot time.

    Confirm by typing df in the command line

linux files

If when mounting the drive you get an error such as this one:

mount: wrong fs type, bad option, bad superblock on \\10.0.x.x\T6898xx-448, 
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)

You may need to run the following additional commands:

  1. First, run:
sudo apt-get update
  1. Then, go ahead and install Cifs Utilities:
sudo apt install cifs-utils
  1. Finally, try mounting the shared drive once more:
mount /mnt/share
tip

Create a template from your VM after mounting your drive(s) so that all machines created from that template can skip these steps.