Mount and Unmount SMB Protocol CFS on Windows System
After creating a CFS SMB file system, you need to mount it using Baidu Cloud Compute (BCC) to enable shared access across multiple BCC instances. This document explains how to mount a CFS SMB file system using a Windows BCC instance.
Prerequisites
- The target BCC instance (Windows) has been created for mounting the CFS file system. For BCC creation methods, refer to: Quick Configuration of Windows Cloud Servers.
- An SMB file system has been created with a mount target added. For detailed steps, refer to: Create File System, Add Mount Target.
Mounting steps
Step I: Obtain domain name of a mount target
Once the mount target is created, you can start using the file system. Click the Manage button in the operation bar of the file system list to open the mount target information page, as shown below:

After logging into the virtual machine or container, use the mount target's domain name to access and operate the file system.
Step II: Mount SMB file system
In Windows systems, open PowerShell or cmd command line and use the following command to mount the SMB file system:
1net use <Client Local Drive Letter>: \\<Domain Name of a Mount Target>\cfs
Description:
- <Client Local Drive Letter> is the local drive letter of the CFS file system to be mounted (e.g., z) and cannot be duplicated with existing drive letters;
- <Domain name of a mount target> can be found in the file system’s mount target list (see Step I);
- "cfs" is the fixed SMB share name and cannot be changed.
Example:
1net use z: \\cfs-****.lb-b768ef66.cfs.bj.baidubce.com\cfs
Step III: View mounted SMB file systems
After mounting, you can use Windows Command Line or PowerShell to view the mounted file systems with the following commands.
1net use
Alternatively, you can open Windows Explorer to check the drive letters in the network locations.

Unmounting steps
- Sign in to the Baidu Cloud Compute (BCC) where the CFS file system is mounted.
- To unmount the file system, use the following command.
1net use <Target Drive Letter>: /del
2 ## Among which, <target drive letter> refers to the drive letter of the CFS file system to be unmounted.
- Execute the
net usecommand to check unmounting results. If the mounted CFS file system information is not found in the echo, it means the file system's directory has been successfully unmounted.
FAQs
How to resolve system error 1272?
If Windows Server displays the following error (System Error 1272), it is because Windows security policies block users accessing SMB file systems via Guest Auth

Solution: Run the following PowerShell command as administrator
1reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f
2net stop lanmanworkstation /y ; net start lanmanworkstation ; net start SessionEnv
Alternatively, run the following cmd as an administrator:
1reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f
2net stop lanmanworkstation /y && net start lanmanworkstation && net start SessionEnv
