This document describes how to use CFS file systems on Windows clients. The example below shows how to do so on Windows Server 2012 R2. The operations are the same on other Windows editions such as Windows Server 2008 and Windows Server 2016.
For detailed directions, see Creating File Systems and Mount Targets.
telnet
command for verification, such as telnet 192.168.1.1 445
. The specific protocols and ports as follows:File System Protocol | Open Port for Client | Check Network Connectivity |
---|---|---|
NFS 3.0 | 111, 892, and 2049 | telnet 111, 892, or 2049 |
NFS 4.0 | 2049 | telnet 2049 |
CIFS/SMB | 445 | telnet 445 |
Note:We recommend you use SMB to mount CFS.
A CIFS/SMB file system can be mounted via a command line or graphical interface.
Use FSID to mount the file system. The mount command is as follows:
net use <shared directory name>: \\<mount target IP>\FSID
Sample:
net use X: \\10.10.11.12\fjie120
Note:You can go to the CFS console, click the file system ID, and choose the Mount Target Info tab to obtain the
FSID
mount command.
Note:Before mounting, please make sure that the NFS service has been enabled.
mount -h
If NFS-related information is returned, the NFS client is running properly.
regedit
command and click OK to open the Registry Editor window.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
path in the registry and select it. net stop nfsclnt
net stop nfsrdr
net start nfsrdr
net start nfsclnt
A file system can be mounted via a command line or graphical interface.
Enter the following command on the command line tool to mount the file system. The default subdirectory is FSID
.
mount <mount target IP>:/<FSID> <shared directory name>:
Sample:
mount 10.10.0.12:/z3r6k95r X:
Note:You can go to the CFS console, click the file system ID, and choose the Mount Target Info tab to obtain the
FSID
mount command.
Click to enter the Start menu page.
Right-Click This PC and select Map network drive.
In the pop-up window, set the drive letter for Drive and folder (i.e., the mount directory you see in the NFS file system) and click Finish.
Open the command line tool and enter the mount
command to check whether the above file system is mounted with root permissions in the following way.
Check whether the UID and GID values are 0. If so, the file system has been mounted with root permissions and can be used. If the UID and GID are -2 or other values, data may not be written properly, and you should repeat the previous steps to ensure that the file system is mounted with root permissions.
If the Windows command-line tool displays "Locking=yes", to avoid read/write exception (NFS v3 does not support locking), you can modify the Registry by performing the following steps:
0
.You will be redirected to the file system that has been mounted. You can right-click to create a file and verify read/write correctness.
If you need to unmount a shared directory, please open the Windows Command Prompt and run the following command, where "directory name" is the root directory or the full path of the file system.
Sample for NFS:
umount X:
Sample for SMB:
To disconnect a mounted file system, simply right-click the disk and click Disconnect in the menu that appears.
Note:Resources cannot be recovered from a deleted file system. Therefore, you are advised to back up all resources before deleting the file system.
You can terminate a file system in the console. Specifically, go to the CFS console, locate the file system to be terminated, and click Delete > Confirm.
Was this page helpful?