Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

无root将rootfs移动到外部设备使用 #250

Answered by 2moe
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

有 root 容易,没 root 难啊!
为了安全性,android 默认会“安全”挂载外置存储设备到 /storage 目录下的子目录
比如说:没有 x (可执行权限),也不能创建软链接。

走文件系统的路是对的。毕竟虚拟磁盘里面也可以弄个文件系统。
不过 android 由于系统限制, 没 root 的话,这条路大概会很难走。

另一种思路还是虚拟磁盘,有 root 可以直接用 mount 挂载。
没有的话,得要像虚拟机那样去搞磁盘加载方案。
不过虚拟机和容器很不一样,两者的最终方案可能完全不一样。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant