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,
- Where is the official documentation or man pages on vold.fstab?
- Apart from developer.android.com, where should I look for comprehensive documentation on Android
I found this to be informative:
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
I never came across any documentation in general for vold.fstab and dev_mount. As far as I know and what I could gather from the code,
vold.fstab is a file which is parsed word by word in
volume manager daemon code to detect the mount point settings for a particular system.
Each vendor has its own specific vold.fstab file which is used by volume manager daemon. Mostly, Android middleware uses it to get the mount point path. Of external memory card for example.