Mount Huawei Cloud OBS Locally Using rclone (Windows & Linux Guide)
Introduction
You can mount Huawei Cloud OBS as a local directory or drive using rclone, allowing direct access via file explorer or editors. This guide covers full steps from installation to mounting, supporting both Windows and Linux.
1. Install rclone
Windows
① Download rclone:
- Visit rclone official site and download the Windows package.
② Extract files:
- Unzip to a folder like
C:\rclone.
③ Set environment variable:
- Add
C:\rcloneto the systemPathvariable so you can runrclonefrom the command prompt directly. - Steps: Right-click “This PC” > Properties > Advanced system settings > Environment Variables > edit
Path> addC:\rclone.
Linux
① Download rclone:
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip② Extract and install:
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
sudo cp rclone /usr/bin/
sudo chmod +x /usr/bin/rclone③ Verify installation:
rclone version2. Configure Huawei Cloud OBS
① Start rclone config:
rclone config② Choose n to create new remote.
③ Name the remote (e.g., HuaWeiOBS).
④ Select storage type: enter 4 for S3 Compatible Storage.
⑤ Choose provider: enter other because Huawei OBS is S3 compatible.
⑥ Enter your Huawei Cloud Access Key ID and Secret Access Key.
⑦ Set endpoint: Format: https://<region>.obs.myhuaweicloud.com Example: Beijing 4 region is https://obs.cn-north-4.myhuaweicloud.com.
⑧ Leave region empty.
⑨ Select ACL: enter 1 for default private permission.
⑩ rclone will test the configuration and confirm connection.
3. Mount Huawei Cloud OBS
Windows
① Make sure WinFsp is installed:
- Download from WinFsp.
② Mount command example:
rclone mount HuaWeiOBS: H: --vfs-cache-mode writes- Replace
HuaWeiOBS:with your remote name. - Replace
H:with desired drive letter.
③ Check in File Explorer if drive H: appears.
Hide mount window with VBS script
① Create a .vbs file with content:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "cmd /c rclone mount HuaWeiOBS: H: --vfs-cache-mode writes", 0, FalseSave as mount_huaweicloud.vbs.
② Add to startup folder:
- Press
Win + R, typeshell:startup, copy the.vbsfile there.
Linux
① Create mount directory:
mkdir -p ~/huaweicloud_obs② Mount command:
rclone mount HuaWeiOBS: ~/huaweicloud_obs --vfs-cache-mode writes --daemon③ Verify mount:
ls ~/huaweicloud_obsManage mount with systemd
① Create systemd service file:
sudo nano /etc/systemd/system/rclone-huaweicloud.servicePaste:
[Unit]
Description=Mount Huawei Cloud OBS with rclone
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount HuaWeiOBS: /home/<your-username>/huaweicloud_obs --vfs-cache-mode writes
ExecStop=/bin/fusermount -u /home/<your-username>/huaweicloud_obs
Restart=always
User=<your-username>
Group=<your-groupname>
[Install]
WantedBy=default.targetReplace <your-username> and <your-groupname> accordingly.
② Enable and start service:
sudo systemctl daemon-reload
sudo systemctl enable rclone-huaweicloud
sudo systemctl start rclone-huaweicloud4. Unmount
Windows
taskkill /IM rclone.exe /FLinux
fusermount -u ~/huaweicloud_obs5. Troubleshooting
① Mount folder is empty:
- Check rclone config correctness, keys, and endpoint.
② Mount fails with WinFsp error:
- Install WinFsp.
③ Cannot write files on Linux mount:
- Use
--vfs-cache-mode writesflag.
④ Improve mount performance:
rclone mount HuaWeiOBS: ~/huaweicloud_obs --vfs-cache-mode full --vfs-cache-max-size 2GThis guide helps you easily mount Huawei Cloud OBS locally to manage cloud files directly.