什么是vold.fstab的内容,或dev_mount行的语法? [英] What is the contents of vold.fstab, or the syntax of the dev_mount line?

查看:721
本文介绍了什么是vold.fstab的内容,或dev_mount行的语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解如何实现各个部分的SD卡魔术在Android上一些帖子。这些职位是指/etc/vold.fstab,并建议修改其内容的附加或更改dev_mount行。

好了,有趣的,我想。我尝试使用Google vold.fstab和dev_mount更多地了解他们。奇怪的是,这些词似乎只有在有关如何做的SD卡神奇的事情Android的各种论坛帖子存在。

也就是说,我找不到什么是应该的vold.fstab文件中的任何官方手册页或文档中包含,是否如它是一个脚本,或者一个配置文件,dev_mount是命令或规范等。

所以,作为一个非常的n00b Android开发者,

  1. 在哪里是在vold.fstab?官方文档或手册页
  2. 除了developer.android.com,我应该在哪里寻找在Android COM prehensive文档
解决方案

我发现这是信息:

<一个href="https://android.googlesource.com/platform/docs/source.android.com/+/android-4.2.1_r1.1/src/tech/storage/index.md" rel="nofollow">https://android.googlesource.com/platform/docs/source.android.com/+/android-4.2.1_r1.1/src/tech/storage/index.md

具体做法是:

  dev_mount&LT;标签&gt; &LT;装入点&GT; &LT;分区&GT; &LT; sysfs_path&GT; [国旗]
 

  • 标签:标签为卷
  • 装入点:该卷应安装文件系统路径
  • 分区:(基于1)分区号,或'自动'的第一个可用的分区
  • sysfs_path :一个或多个的sysfs路径设备,可以提供这种坐骑 点。用空格分开,并且每个人都必须以 /
  • 标志:可选的逗号分隔的标志位的列表,不能包含 / 。 可能的值包括不可移动可加密

I am trying to understand some posts on how to accomplish various pieces of sd card magic on Android. These posts refer to /etc/vold.fstab and suggest modifying its contents with additional or changed dev_mount lines.

Okay, interesting, I think. And I try googling vold.fstab and dev_mount to learn more about them. Oddly, these terms only seem to exist in various forum posts about how to do magical things with sd cards for Android.

That is, I can't find any "official" man pages or documentation on what the vold.fstab file is supposed to contain, whether for instance it is a script, or a config file, whether dev_mount is a command or a specification, etc.

So as a very n00b Android developer,

  1. Where is the official documentation or man pages on vold.fstab?
  2. Apart from developer.android.com, where should I look for comprehensive documentation on Android

解决方案

I found this to be informative:

https://android.googlesource.com/platform/docs/source.android.com/+/android-4.2.1_r1.1/src/tech/storage/index.md

Specifically:

dev_mount <label> <mount_point> <partition> <sysfs_path> [flags]

  • label: Label for the volume.
  • mount_point: Filesystem path where the volume should be mounted.
  • partition: Partition number (1 based), or 'auto' for first usable partition.
  • sysfs_path: One or more sysfs paths to devices that can provide this mount point. Separated by spaces, and each must start with /.
  • flags: Optional comma separated list of flags, must not contain /. Possible values include nonremovable and encryptable.

这篇关于什么是vold.fstab的内容,或dev_mount行的语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆