序言

上上篇我通过tg上交流发现GitHub webdav-aliyundriver这个项目,其实早在smzdm上已经有过有人分享,但当时它说不稳定,就没有去了解,这次我们通过 rclone 这个软件来挂载webdav协议来实现把阿里云盘挂载到本地目录,这样就实现了让nas或者本地的主机无负担的有了一个大硬盘。

过程

注意前期一定确定webdav可用

安装rclone插件

在 unraid 应用市场搜索rclone安装
安装可能会遇到网络问题 我曾经在unraid6.8.2版本下安装不成功 升级到unraid6.9.2版本才成功 在fq情况下软路由上
搜索rclone

在命令行下运行rclone version测试插件是否安装成功
安装插件成功截图

剩下的操作跟 rclone 命令行下进行配置一模一样
rclone官网也有相应的模板
模板

rclone使用

在终端下运行

rclone config

No remotes found - make a new one n) New remote s) Set configuration password q) Quit config n/s/q> n #选择n新建名称 name> aliyun #名字对应下面挂载 Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Webdav \ “webdav” [snip] Storage> webdav #选择协议 URL of http host to connect to Choose a number from below, or type in your own value 1 / Connect to example.com \ “https://example.com” url> http://192.168.100.4:8082/ 设置webdav服务器地址注意需要加http Name of the Webdav site/service/software you are using Choose a number from below, or type in your own value 1 / Nextcloud \ “nextcloud” 2 / Owncloud \ “owncloud” 3 / Sharepoint Online, authenticated by Microsoft account. \ “sharepoint” 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises. \ “sharepoint-ntlm” 5 / Other site/service or software \ “other” vendor> 5 #选择第五个 User name user> user #设置用户名 Password. y) Yes type in my own password g) Generate random password n) No leave this optional password blank y/g/n> y #设置密码默认2次都不显示 Enter the password: password: Confirm the password: password: Bearer token instead of user/pass (e.g. a Macaroon) bearer_token> Remote config

[aliyun] type = webdav url = http://192.168.100.4:8082/ vendor = other user = user pass = *** ENCRYPTED *** bearer_token =

y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y #输入y保存配置文件


主要部分我都写了注释,也有视频比我写得好 花几分钟可以看看

### 挂载

创建目录并挂载

mkdir /mnt/user/aliyundriver nohup rclone mount aliyun: /mnt/user/aliyundriver –allow-other >output 2>&1 &


![结果](https://gao4.top/wp-content/uploads/2021/08/2912935607.png "结果")

### 开机挂载

在插件`User Scripts`创建脚本开机运行  
![配置](https://gao4.top/wp-content/uploads/2021/08/177123910.png "配置")

结语
==

在这个过程中 也就遇到过`rclone插件`安装不成功的问题,解决办法就是升级系统并挂了代理,传输速度取决于宽带的速度。