How to mount AWS File Gateway NFS and SMB file shares on macOS client?

You can mount both NFS and SMB file shares on macOS client. In this post, let’s look into the steps to mount NFS and SMB shares from file gateway on macOS client.

Mounting NFS file share through GUI :

Open Finder from the macOS client Dock, select Go and select Connect to Server.

Then, enter the file gateway NFS share path in the below Server Address.

You need to enter as shown in below screen-shot, nfs://IPAddress/File_share_name and select Connect.

Mounting NFS share file share using CLI :

You can use the following command with your gateway IP address and file share name. In the following command, my gateway IP address is 172.31.36.13 and file share name is nfsshare. nfsmnt is the name of my mount point.

mount -t nfs -o vers=4.0,rsize=1048576,wsize=1048576 172.31.36.13:/nfsshare nfsmnt

You can use nfsstat -m command to get additional information on the NFS mount options that were used as default when mounting the share.

Mounting SMB file share through CLI :

You can use the following syntax to mount the SMB file share from macOS terminal. You would provide your file gateway ID if the file share is configured to use Guest Authentication.

mount_smbfs //'sgw-ABCD1234;smbguest'@172.31.36.13/smbshare smbmnt

If you are using Active Directory authentication you would provide your domain name and user name, for example as below.

mount_smbfs  //‘corp.example.com;Admin’@172.31.36.13/smbshare smbmnt

Mounting SMB file share through GUI :

Open Finder from the macOS client Dock, select Go and select Connect to Server.

Then, enter the file gateway SMB share path in the below Server Address.

You need to enter as shown in below screen-shot, smb://IPAddress/File_share_name and select Connect.

After selecting Connect, you will be asked to provide username and password for the file share. Depending on the authentication that you have chosen for the file share, you would provide either Active Directory domain user or SMB guest user credentials. In my case, I am giving the SMB Guest user credentials, with an example gateway ID. Your gateway ID would be different.

Let us know in the comments if you have any feedback. Thank you.

Leave a Comment

Your email address will not be published. Required fields are marked *