By using AWS re:Post, you agree to the AWS re:Post Terms of Use

How do I connect my File Gateway's NFS file share to my Windows Server?

2 minute read
0

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:

  1. Open PowerShell as an administrator.
  2. Run the following command.
    Install-WindowsFeature NFS-Client

Server Manager

To use Server Manger with the Graphical User Interface (GUI), complete the following steps:

  1. In Windows Server, open Server Manager. For more information, see Server Manager on the Microsoft website.
  2. In the Server Manager dashboard, under Configure this local server, choose Add roles and features.
  3. Choose Next until you reach the Features section.
  4. For Features, confirm that Client for NFS is selected.
  5. Choose Next, and then choose Install.
  6. Choose Close.

Mount the file share on your Windows Server

Complete the following steps:

  1. On your Windows client, open the Command Prompt application as an administrator.
  2. Enter mount to show the current mounts on the Windows Server. For more information, see mount on the Microsoft website.
  3. 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.
  4. 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.
  5. 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.
AWS OFFICIAL
AWS OFFICIALUpdated 2 months ago