I'm trying to create an additional vfat partition, and mount it under
the root as something like '/public' (this partition will eventually
appear as an external drive on the user's system when USB is connected
to the Android device).

This partition would eventually be mapped into flash memory, but in
the emulator I would just create an image file for it.  I used
mksdcard (since it creates a vfat partition) to generate a 64M
pubdata.img, and placed the file in the avd folder.

Next I modified /init.rc to mount the partition:

|    mkdir /public 0000 system system
|
|    # Mount public data partition
|    mount vfat m...@pubdata /public nosuid nodev
|    chown system system /public
|    chmod 0777 /public

...so now the question is "how does 'm...@pubdata' get resolved"?

I've searched the source code and found where the mapping between
'mtd@<token>' and a partition number takes place (system/core/init/
builtins.c), but I don't know how the map itself gets populated.

Can anyone shed some light on this?

Thanks in advance.

-INTJ

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to