简体   繁体   English

如何在android 3.x上运行linux命令来挂载和卸载sd卡

[英]how to run linux command to mount and unmount sd card on android 3.x

I would like to know how I can run linux command to mount / unmount specific path on the sdcard, or even the whole sdcard. 我想知道如何运行linux命令来挂载/卸载SD卡上的特定路径,甚至整个SD卡。 tried a lot of things people suggested, but nothing really worked. 尝试了很多人建议的东西,但没有真正有效。

my device is rooted. 我的设备扎根了。

my goal is to prevent access to some folders on sdcard from desktop and local apps that displaying file system browsing. 我的目标是阻止从显示文件系统浏览的桌面和本地应用程序访问SD卡上的某些文件夹。

any idea (beside file encryption) to achieve this goals in other ways - are welcome. 任何想法(除了文件加密)以其他方式实现这一目标 - 是受欢迎的。

This will not work well, as the filesystem lacks a permission model. 这不会很好,因为文件系统缺少权限模型。

You can however partition the physical media and create a unix style filesystem with permissions on part of it. 但是,您可以对物理介质进行分区,并创建具有部分权限的unix样式文件系统。 Many custom roms did this, especially for apps2sd before the official method came out. 许多自定义rom都这样做,特别是在官方方法出来之前的apps2sd。 Look there for the details of reconfiguring vold. 在那里查看重新配置vold的详细信息。

Or you could look into what Google engineers have said about transitioning Android bulk storage to a scheme where the base filesystem has permissions and the impression of one without is emulated on top of it for legacy support. 或者你可以看一下谷歌工程师所说的关于将Android大容量存储转换为基本文件系统具有权限的方案,并且在没有模仿的情况下为其提供遗留支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM