I created a Network File System (NFS) file share on AWS Storage Gateway. I want to connect to that NFS file share from my Windows client.
Resolution
Important: These steps are applicable to any Windows machine that supports an NFS client.
Prerequisites:
Install the NFS client
You can either use PowerShell on your Windows machine or Server Manger to install the NFS client.
PowerShell
To use PowerShell to install the NFS client, complete the following steps:
- Open PowerShell as an administrator.
- Run the following command.
Install-WindowsFeature NFS-Client
Server Manager
To use Server Manger with the Graphical User Interface (GUI), complete the following steps:
- In Windows Server, open Server Manager. For more information, see Server Manager on the Microsoft website.
- In the Server Manager dashboard, under Configure this local server, choose Add roles and features.
- Choose Next until you reach the Features section.
- For Features, confirm that Client for NFS is selected.
- Choose Next, and then choose Install.
- Choose Close.
Mount the file share on your Windows Server
Complete the following steps:
- On your Windows client, open the Command Prompt application as an administrator.
- Enter mount to show the current mounts on the Windows Server. For more information, see mount on the Microsoft website.
- In the next prompt, enter the mount command.
The following is an example mount command:
mount -o nolock -o mtype=hard GatewayVMIPAddress:/FileShareName WindowsDriveLetter
Note: Replace GatewayVMIPAddress, FileShareName, and WindowsDriveLetter with the actual values for your configuration.
- Run the cd command to navigate into the drive that you specified in the mount command. For more information, see cd on the Microsoft website.
- Run the dir command to list the files that are in the drive. Confirm that the files in the drive are the same files that are in the Amazon Simple Storage Service (Amazon S3) bucket that's associated with the file share. For more information, see dir on the Microsoft website.