Amazon FSx for Windows File Server
Windows User Guide

Using Microsoft Windows File Shares

A Microsoft Windows file share is a specific folder (and its subfolders) within your file system that you make accessible to your compute instances with the Server Message Block (SMB) protocol. Your file system comes with a default Windows file share, named share. You can create and manage as many other Windows file shares as you’d like using the Windows Shared Folders graphical user interface (GUI) tool.

Accessing File Shares

To access your file shares, you use the Windows Map Network Drive functionality to map a drive letter on your compute instance to your Amazon FSx file share. The process of mapping a file share to a drive on your compute instance, known as mounting a file share in Linux, differs depending on the type of compute instance and the operating system. After your file share is mapped, your applications and users can access files and folders on your file share as if they are local files and folders.

Following, you can find procedures for mapping a file share on the different supported compute instances.

To Map a File Share on an Amazon EC2 Windows Instance (Console)
  1. Launch the Amazon EC2 instance and connect it to the Microsoft Active Directory to which you've joined your Amazon FSx file system. To do this, choose one of the following procedures from the AWS Directory Service Administration Guide:

  2. Connect to your instance. For more information, see Connecting to Your Windows Instance in the Amazon EC2 User Guide for Windows Instances.

  3. After you are connected, open File Explorer.

  4. On the navigation pane, open the context (right-click) menu for Network and choose Map Network Drive.

  5. Choose a drive letter of your choice for Drive.

  6. Enter the fully qualified domain name (FQDN) name for your file share, which you construct from the Domain Name Service (DNS) name for your file system and the name of your Windows file share. An example is \\fs-012345678901234567.ad-domain.com\share for Folder.

  7. Choose an option for Reconnect at sign-in, which indicates whether the file share should reconnect at sign in, and then choose Finish.

To Map a File Share on an Amazon EC2 Windows Instance (Command Prompt)
  1. Launch the Amazon EC2 instance and connect it to the Microsoft Active Directory to which you've joined your Amazon FSx file system. To do this, choose one of the following procedures from the AWS Directory Service Administration Guide:

  2. Connect to your instance as a user in your AWS Managed Microsoft AD directory. For more information, see Connecting to Your Windows Instance in the Amazon EC2 User Guide for Windows Instances.

  3. After you are connected, open a command prompt window.

  4. Mount the file share with the following command, with a drive letter of your choice, for example H.

    net use DriveLetter: \\fs-012345678901234567.ad-domain.com\share /persistent:yes
To Mount a File Share on an Amazon EC2 Linux Instance
  1. Launch the Amazon EC2 instance and connect it to the Microsoft Active Directory to which you've joined your Amazon FSx file system. To do this, see Manually Join a Windows Instance in the AWS Directory Service Administration Guide.

  2. Connect to your instance. For more information, see Connect to Your Linux Instance in the Amazon EC2 User Guide for Linux Instances.

  3. After you are connected, open a terminal.

  4. Run the following command to install the cifs-utils package. This package is used to mount network file systems like Amazon FSx on Linux.

    sudo yum install cifs-utils
  5. Mount the file share with the following command.

    sudo mount -t cifs -o vers=3.0,sec=krb5,cruid=user@DOMAIN //fs-012345678901234567.ad-domain.com/share local_path

On this page: