Important Note: Shared drives are meant to be accessed by more than one machine, and therefore require a Private Network.
Once the shared drive has been created and is visible in the console, it can be mounted using the steps below, based on your machine's operating system.
Windows
1. Open File Explorer in your Paperspace machine and select This PC.
2. Select the Computer tab in the ribbon menu, then select Map network drive.
3. Enter drive location and preferences.
3a. Select your preferred drive letter from the dropdown
3b. Enter the network path of the drive eg \\192.168.1.2\share which can be found in the console
4. Optional Step: Specify folder
You can click Browse to select the desired folder level to mount. Here you can see the root folder (eg share) and optionally add new folders. The root folder is the default location.
Once you have chosen the desired folder to mount, click OK.
5. Enter drive credentials
5a. Supply the username and password provided in the console. Note: The password will be added to your clipboard by clicking the password field.
5b. Optionally check Remember my credentials
5c. Click OK to enter the credentials and then Finish to complete the process of mounting the drive.
6. Done! Confirm by re-opening File Explorer and accessing your newly mounted drive in the folder directory location specified in Step 4.
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 ./share or paperspace@ps1234Z:~$ mkdir /home/paperspace/share`
2. 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 Replacing 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
3. 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
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:
- First, run:
sudo apt-get update
- Then go ahead and install Cifs Utilities:
sudo apt install cifs-utils
Tip: Create a template from your VM after mounting your drive(s) so that all machines created from that template can skip these steps.
Alternate Scenarios
Mounting a shared drive located at your office (or a third-party network)?
You'll first need to set-up a VPN connecting the network at your office with your Paperspace network. Then follow the same steps, except the IP address and credentials for your non-Paperspace drive will be provided by your IT administrator.