This topic describes how to mount an SMB file system on Windows.

Prerequisites

  1. A file system is created. For more information, see Create a file system.
  2. A mount target is created. For more information, see Add a mount target.
  3. The following Windows services are started:
    • Workstation
      1. Choose All Programs > Accessories > Run, or press Win+R and enter services.msc to open the Services console.
      2. Find the Workstation service and ensure that the service is Running and the startup type is Automatic.

        The default state for the Workstation service is Running.

        Workstation
    • TCP/IP NetBIOS Helper

      Perform the following steps to start the TCP/IP NetBIOS Helper service:

      1. Open Network and Sharing Center and click the active network connection.
      2. Click Properties to open the Local Area Network Properties dialog box. Double-click Internet Protocol Version 4 (TCP/IPv4) to open the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, and then click Advanced.
      3. In the Advanced TCP/IP Settings dialog box, choose WINS > Enable NetBIOS over TCP/IP.Enable NetBIOS over TCP/IP
      4. Choose All Programs > Accessories > Run, or press Win+R and enter services.msc to open the Services console.
      5. Find the TCP/IP NetBIOS Helper service and ensure that the service is Running and the startup type is Automatic.

        The default state for the TCP/IP NetBIOS Helper service is Running.

        TCP/IP NetBIOS Helper

Procedure

  1. Log on to the ECS console.
  2. Open the command prompt and use the following command to mount the file system.
    net use D: \\file-system-id.region.nas.aliyuncs.com\myshare

    The syntax of the command is net use <the name of a drive> \\<the domain name of a mount target>\myshare.

    • The name of a drive: specifies the target drive on which you want to mount the file system. You can replace the value of the parameter based on your business requirements.
      Note The target drive must be different from any existing drives.
    • The domain name of a mount target: When you add a mount target to a file system, the domain name of the mount target is automatically generated. You can replace the value of the parameter based on your business requirements. To obtain information about a mount target, follow these steps. Log on to the NAS console, find the target file system, and then click Manage next to the file system to go to the Details page. The Details page shows information about the mount target.
    • myshare: specifies the name of an SMB share. You cannot change the name.
  3. Use the net use command to check the mount result.

    The following figure shows an example of a successful mount.

    View the mount result
  4. After you mount an NAS file system on an ECS instance, you can access the file system from the ECS instance.

Troubleshoot common errors

If a mount operation fails, you can troubleshoot the issue. For more information, see Troubleshoot and fix mount issues.

Related operations

Apsara File Storage NAS supports mounting SMB file systems on Linux. For more information, see Access an SMB file system from a Linux ECS instance.