I caught the following tweet from Christian this morning and thought I do a quick blog post on how to mount an external volume like a CIFS or NFS share on VMware's Photon OS.

For mounting an NFS volume, an NFS client is required and this is provided through the nfs-utils package which is not installed by default on Photon OS. To install the package, you just simply need to run the following command:

tdnf -y install nfs-utils

Screen Shot 2016-01-13 at 8.47.11 AM
Once the nfs-utils is installed, you can mount your NFS volume by using the mount command like the following:

mount -t nfs [NFS-SERVER]:/path/to/share /mountpoint

If you want to ensure the volume is automatically mounted, you will need to add an entry to /etc/fstab. If you want more details, you can perform a quick Google search for further instructions

For mounting a CIFS or SMB volume, you do not need any additional packages, you simply just need to specify the "cifs" mount type like the following:

mount -t cifs //[CIFS-SERVER]//path/to/share /mountpoint

If you require authentication to your CIFS or SMB volume, you just need to specify -o username=[USERNAME],password=[PASSWORD]

Lastly, I also want to mention that the instructions above is not specific to Photon OS but applies to any other *Nix platform.

2 thoughts on “Quick Tip - How to mount CIFS & NFS volumes on Photon OS?

  1. Hi there!

    I have been able to mount a nfs share successfully thanks to your blog article. Thank you for that.
    But I am unable to unmount the nfs share I’ve mounted before because the command unmount does not exist. Is there a way to remove the mount with a different command?

  2. Hello,
    i’m using the latest photon version and i’m getting the following error:

    Failed to start rpc-statd.service: Unit rpc-statd.service failed to load: No such file or directory.
    mount.nfs: rpc.statd is not running but is required for remote locking.
    mount.nfs: Either use ‘-o nolock’ to keep locks local, or start statd.
    mount.nfs: an incorrect mount option was specified

    tried doing tdnf statd ..there’s no package available .

    Would appreciate your help.

Thanks for the comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.