Rclone 是一个支持挂载多数国外网盘的工具。
目前 Rclone 支持挂载的网盘有:Google Drive、 Dropbox 、Google Cloud Storage 、Microsoft One Drive 、Hubic、 Backblaze B2 、Yandex Disk 、Openstack Swift / Rackspace cloud files / Memset Memstore 等。更强大的是,Rclone 还支持 SFTP 、FTP 、HTTP 挂载。
配置步骤(以 Ubuntu 为例)
第一步:安装 rclone
方法一:rclone一键安装脚本
curl https://rclone.org/install.sh | sudo bash
方法二:
wget https://www.moerats.com/usr/shell/rclone_debian.sh && bash rclone_debian.sh
第二步:授权(以 onedrive 为例)
rclone authorize "onedrive"
会出现以下信息:
2018/01/23 20:28:56 NOTICE: Config file "C:\\Users\\Administrator\\.config\\rclo
ne\\rclone.conf" not found - using defaults
Choose OneDrive account type?
* Say b for a OneDrive business account
* Say p for a personal OneDrive account
b) Business
p) Personal
b/p> p #这里选择个人版,你想挂载Business就选择b
If your browser doesn't open automatically go to the following link: http://127.
0.0.1:53682/auth #接下来会弹出浏览器,要求你登录账号进行授权
Log in and authorize rclone for access
Waiting for code...
Got code
Paste the following into your remote machine --->
{"access_token":"xxxx"} #请复制{xx}整个内容,后面需要用到
<---End paste
第三步:配置(链接网盘,以 onedrive 为例)
rclone config
会出现以下信息:
CodeBlock Loading...
第四步:网盘挂载
挂载为目录
CodeBlock Loading...
利用 Screen 让 Rclone 在后台运行
CodeBlock Loading...
之后再运行挂载命令。
挂载完成后再用快捷键CTRL-a d 来暂时断开当前会话。最后用screen -r <screen_pid>重新连接上。
若没有安装 Screen,可以使用如下命令安装:
CodeBlock Loading...
挂载效果:

第五步:卸载磁盘
CodeBlock Loading...
常用命令
CodeBlock Loading...