Okay, here is a step-by-step guide to manually mount an Alibaba Cloud Disk (OSS) on a MT7621/7620 router (running OpenWrt or a similar custom firmware) without using Docker.
"Important Prerequisites:"
1. "Root Access:" You MUST have root access to your router. This typically involves accessing the router's command line interface (CLI) via SSH or telnet after logging into its web interface (like LuCI).
2. "Alibaba Cloud Account:" You need an Alibaba Cloud account with an OSS bucket created.
3. "Bucket Information:" You need the following details from your OSS bucket:
"Bucket Name:" The name of your OSS bucket.
"Access Key ID:" Your primary access key.
"Access Key Secret:" Your secret access key.
4. "OpenWrt Firmware:" Ensure your MT7621/7620 router is running OpenWrt or a compatible firmware like Lede. This guide assumes OpenWrt.
5. "SSH Access:" You need SSH access to your router. The default username is usually `root` and there is no password (you'll need to set one during initial login or via `passwd` command). You might need to use a key-based authentication method.
6. "Basic Linux Commands:" Familiarity with basic Linux commands like `cd`, `ls`, `mkdir`, `mount`, `
相关内容:
前提为路由器固件基于linux的OP或者padavan,此方法不需要docker,纯手工,操作简单,一劳永逸
1、下载附件中的文件aliyun,使用winscp上传到路由/usr(opt)/bin/目录下,并在putty命令行下输入命令 chmod +x /usr(opt)/bin/aliyun 使文件可执行;
2、获取你的阿里云盘的refresh-token
- 先通过浏览器(建议chrome)打开阿里云盘官网并登录:https://www.aliyundrive.com/drive/
- 登录成功后,按F12打开开发者工具,点击Application,点击Local Storage,点击 Local Storage下的https://www.aliyundrive.com/,点击右边的token,此时可以看到里面的数据,其中就有refresh_token,把其值复制出来即可。(格式为小写字母和数字,不要复制双引号。例子:ca6bf2175d73as2188efg81f87e55f11)
- 第二步有点繁琐,大家结合下面的截图就看懂了

获取refresh-token示意图
3、返回putty命令行下运行/usr(opt)/bin/aliyun -I --port 8111 --refresh-token
xxxxxxxxxxxxxxxxxxxxxxxxxxx 注: xxxxxxxxxx为上述方法获取的refresh-token
4、现在你应该可以看见阿里云盘已挂载成功了。打开浏览器输入:http://路由IP:8111 就可以浏览你的阿里云盘的文件了。
5、当然,你想阿里云盘开机就挂载,就到启动项中填入命令:/usr/bin/aliyun -I --port 8111 --refresh-token
xxxxxxxxxxxxxxxxxxxxxxxxxxx > /dev/null &
6、至此,你路由挂载阿里云盘成功,你可以把阿里云盘挂载为Windows、Linux、Mac系统的磁盘,可以通过NAS系统做文件管理或文件同步。也可在安卓电视上使用nplay来直接播放阿里云盘的文件。更多玩法等你挖掘。
7、附件链接
https://pan.baidu.com/s/1wMjBucdFE1irKbnERiESNw 提取码: 原文内

微信扫一扫打赏
支付宝扫一扫打赏