Description of image

How to Mount Shared Drives on Windows and Linux

Machines are high-performing computing for scaling AI applications.


  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.
Mount shared drive Windows
  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.

Mount shared drive Windows
  1. Optional Step: Specify folder. 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.
Mount shared drive Windows
  1. Enter drive username and password provided in the console.
File explorer
Note
The username and password is 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 is automatically mounted to this directory at boot time.

Confirm by typing df in the command line

Shared drive Linux

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 (for example, 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
Note
Create a template from your VM after mounting your drive(s) so that all machines created from that template can skip these steps.