edit-icon download-icon

How to mount a file system in Windows

Last Updated: Feb 24, 2018

NAS provides native support for the SMB protocol. If your servers are located in the following regions you can use NAS in Windows directly:

  • China North 2 (Shanghai)
  • China East 1 (Hangzhou)
  • China East 2 (Beijing)
  • China South 1 (Shenzhen)

If your servers are not located in these regions, see the following instructions.

Use the NFS client in Windows

For Windows 7

To install and configure the NFS client on a Windows 7 system, follow these steps.

  1. Install the NFS client and management tool.

  2. Go to Control Panel > Programs and Features > Turn Windows features on or off > Add NFS Service.

  3. Return to Control Panel and then go to Management Tools > Services for Network File System.

  4. Select TCP as the NFS transfer protocol.

  5. The NFS client uses the NFSv3 protocol by default, and has a Lock option for mounting. However, NAS does not currently support locked mounting. To ensure normal usage, follow these steps to disable the lock in the registry:

    1. Run the regedit.exe program in Windows cmd.
    2. Go to HKEY_CURRENT_USER > Software > Microsoft > ClientForNFS > CurrentVersion > MountUtility > Mount and find the key “Locking”.
    3. Set the “Locking” key value to 1.

For Windows 2008

To install and configure the NFS client on a Windows 2008 system, follow these steps.

  1. Install the NFS client and management tools.

    1. Go to Server Manager > Features > Add Feature.
    2. Under Add Feature, go to Remote Server Administration Tools > Role Administration Tools > File Services Tools > Services for Network File System Tools.
  2. Add a file service administrator.

    1. Select Server Manager > Role > Add Role.
    2. Under Add Role, go to File Services > Services for Network File System.
  3. Select “TCP” for the NFS transfer protocol.

    1. Select Management Tools > Network File System (NFS).
    2. Right-click NFS Client and select Attributes.
  4. The NFS client uses the NFSv3 protocol by default, and has a Lock option for mounting. However, NAS does not currently support locked mounting. To ensure normal usage, follow these steps to disable the lock in the registry:

    1. Open Windows cmd and run the “regedit.exe” program.
    2. Go to HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > ClientForNFS > CurrentVersion > User > Default > Mount.
    3. Create a “DWORD (32-bit) value” in the right content area. Name the value “Locking”, and set its value to “1”.

For Windows Server 2012

To install and configure the NFS client on a Windows Server 2012 system, follow these steps.

  1. Install the NFS client and management tools.

    1. Select Server Manager > Add Roles and Features.
    2. Select NFS Server in the “Role” step, and select NFS Client in the “Features” step.
  2. Select “TCP” for the NFS transfer protocol. See the settings in Windows 2008 for specific operations.

  3. The NFS client uses the NFSv3 protocol by default, and has a Lock option for mounting. However, NAS does not currently support locked mounting. To ensure normal usage, see Step 4 in the preceding For Windows 2008 section to disable the lock in the registry.

Mount NFS

Assume that the mount point domain name is 014544bbf6-xxxx.cn-hangzhou.nas.aliyuncs.com. Then, the mount command in Windows is:

mount -o nolock \\014544bbf6-xxxx.cn-hangzhou.nas.aliyuncs.com\! F:

Note:

  • Do not omit the exclamation mark.
  • F: represents a local idle disk drive.

Suggestions

  • We recommend that you do not mount a non-root directory of the file system in Windows. Otherwise, “rename” or other actions may encounter the “invalid device” error.

  • User permission issues and resolutions:

    • If a file created in Linux requires the read and write permissions for a Windows system, you must make appropriate setting changes (chmod) on the file and its folder.

    • By default, the mounted file system can be accessed by anonymous users. The default permission for files created in Windows is represented as “0755” in Linux. You can change the default permissions in Properties by right-clicking NFS Client.

  • For other issues, see Microsoft help documentation.

Thank you! We've received your feedback.