3db23a28 |
# Photon NFS Utilities for Mounting Remote File Systems |
9c1f2d3d |
|
3db23a28 |
This document describes how to mount a remote file system on Photon OS by using nfs-utils, a commonly used package that contains tools to work with the Network File System protocol (NFS). |
9c1f2d3d |
|
3db23a28 |
## Check a Remote Server |
9c1f2d3d |
```
showmount -e nfs-servername or ip
```
|
3db23a28 |
Example: |
9c1f2d3d |
``` |
3db23a28 |
showmount -e eastern-filer.eng.vmware.com
showmount -e 10.109.87.129 |
9c1f2d3d |
```
|
3db23a28 |
## Mount a Remote File System in Photon Full
The nfs-utils package is installed by default in the full version of Photon OS. Here is how to mount a directory through NFS on Photon OS: |
9c1f2d3d |
```
mount -t nfs nfs-ServernameOrIp:/exportfolder /mnt/folder
```
|
3db23a28 |
Example: |
9c1f2d3d |
``` |
3db23a28 |
mount -t nfs eastern-filer.eng.vmware.com:/export/filer /mnt/filer
mount -t nfs 10.109.87.129:/export /mnt/export |
9c1f2d3d |
```
|
3db23a28 |
## Mount a Remote File System in Photon Minimal |
9c1f2d3d |
|
3db23a28 |
The nfs-utils package is not installed in the minimal version of Photon OS. You install it by running the following command: |
9c1f2d3d |
|
3db23a28 |
tdnf install nfs-utils |
9c1f2d3d |
|
3db23a28 |
For more information on installing packages with the tdnf command, see the [Photon OS Administration Guide](https://github.com/vmware/photon/blob/master/docs/photon-admin-guide.md).
Once nfs-utils is installed, you can mount a file system by running the following commands, replacing the placeholders with the path of the directory that you want to mount: |
9c1f2d3d |
``` |
3db23a28 |
mount nfs |
9c1f2d3d |
```
mount -t nfs nfs-ServernameOrIp:/exportfolder /mnt/folder
``` |