To mount network storage, you must add the server to the storage network. Depending on the server OS, the mount process and commands differ.
Find out more
Mount NFS on Linux
1. Create a local directory to serve as a mount point:
mkdir [name]Code language: Bash (bash)
2. View the available volumes for mounting and provide the storage IP as an endpoint:
showmount -e [storage_ip]Code language: Bash (bash)
Note
The command requires installing the nfs-common package. If necessary, install the package with the following command:sudo apt install nfs-common
The output lists the available volumes for mounting in the format [volume ID]/[path suffix].
3. Run the mount command as sudo:
sudo mount [storage_ip]:/[volume_id]/[path_suffix] /[local_directory]Code language: Bash (bash)
The command contains the following fields:
[storage_ip]is the network storage IP.[volume_id]/[path_suffix]is the NFS volume path.[local_directory]is the local mount point directory.
4. View the mount with:
df -hCode language: Bash (bash)
(Optional) Persist Mount on Linux
By default, the mount does not persist after a restart. To persist the mount after a restart:
1. Edit the /etc/fstab file using a text editor:
sudo nano /etc/fstabCode language: Bash (bash)
2. Append the following information:
[server_ip]:/[volume_id]/[path_suffix] [local_directory] nfs defaults 0 0Code language: plaintext (plaintext)
Save and close the file.
3. Mount the NFS using one of the following command formats:
sudo mount [local_directory]Code language: Bash (bash)
Or alternatively:
sudo mount [storage_ip]:/[volume_id]/[path_suffix]Code language: Bash (bash)
The mount command reads /etc/fstab, and the storage persists after a reboot.
Mount NFS on a Windows Server
Use the GUI or PowerShell to mount the storage on a Windows server.
Option 1: Mount via PowerShell
1. Run PowerShell as administrator and use the following command:
Install-WindowsFeature NFS-ClientCode language: PowerShell (powershell)
2. List all mountable volumes and provide the storage IP as an endpoint:
showmount -e [storage_ip]Code language: PowerShell (powershell)
The output lists all mountable volumes.
3. Close PowerShell and run again as a normal user.
4. Mount the storage with the following command:
mount.exe -o anon \\[storage_ip]\[volume_id]\[path_suffix] [drive_letter | *]Code language: PowerShell (powershell)
The command has the following fields:
[storage_ip]represents the network storage IP.[volume_id]\[path_suffix]is the NFS volume path.[drive_letter | *]is the local drive (for example, X:). Provide an asterisk (*) to mount on the first available drive.
The mount is visible as a mounted disk in File Explorer > This PC.
Option 2: Mount Through the GUI
1. Navigate to Start > Server Manager.
2. Choose Add roles and features from the dashboard.
3. Click Next to get to the Features page.
4. Check the Client for NFS checkbox and click Next.
5. Click Install to confirm the installation.
6. Open File Explorer and select This PC.
7. In the top bar, click Computer and select Add a network location to start the wizard.
8. Click Next and select Choose a custom network location. Click Next again to continue.
9. Choose a network location from the drop-down menu and click Next.
10. Enter a network location name and click Next.
11. Click Finish to complete the process. The mount is now visible in File Explorer.
(Optional) Persist Mount on Windows
1. Press Start and search for the Run tool.
2. Enter shell:startup and press Enter.
3. Create a nfsmount.bat file and add the mount command:
mount.exe -o anon \\[storage_ip]\[volume_id]\[path_suffix] [drive_letter | *]Code language: plaintext (plaintext)
Save and close the file. The file is automatically read after reboot, and the NFS mounts on startup.