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.
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.
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:
Your drive will be automatically mounted to this directory at boot time.
Confirm by typing df in the command line
Tip: Create a template from your VM after mounting your drive(s) so that all machines created from that template can skip these steps.
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.