edit_note帖子
44
stars积分
247,401
event加入
2012-08-05
安卓交流
安卓互换sd卡教程
schedule发表于 2014-01-24 16:55:00
visibility查看 484
chat_bubble回复 4
#1 楼主
如下所示,高手求解,怎么互换sd卡,下面是安卓机的读取sd卡数据结构,求解!!!!有奖励!!!!!!!!!!!!!
## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or ‘auto‘ for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## Example of a standard sd* mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sd* /storage/sd*0 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sd*2 /storage/sd*1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
## Example of a dual * setup
# dev_mount left_sd* /mnt/sd*1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sd* /mnt/sd*2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sd* /mnt/sd* 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or ‘auto‘ for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## Example of a standard sd* mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sd* /storage/sd*0 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sd*2 /storage/sd*1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
## Example of a dual * setup
# dev_mount left_sd* /mnt/sd*1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sd* /mnt/sd*2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sd* /mnt/sd* 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
全部回复 (4)
2014-01-24 17:33:00
沙发
我布吉岛。。
2014-01-24 17:57:00
板凳
# #沃尔德2.0通用fstab中
# # - 圣Mehat ( san@android.com )
# #
#### #### #### #### #### ###
# #常规设备安装
# #
# #格式: dev_mount的<label> <mount_point>的<part> <sysfs_path1...>
# #标签 - 标签的卷
# #挂接点 - 如卷将被安装
# #部分 - 分区# (从1开始) ,或“自动”的第一个可用的分区。
# # <sysfs_path> - 的sysfs的路径,源设备列表
## #### #### #### #### ####
# #标准SD的例子*安装仿真器/梦
#挂载指定的设备的第一个可用的分区
dev_mount SD * /存储/ SD * 0 EMMC @胖/ devices/platform/goldfish_mmc.0 / devices/platform/mtk-msdc.0/mmc_host
dev_mount SD * 2 /存储/ SD * 1自动/ devices/platform/goldfish_mmc.1 / devices/platform/mtk-msdc.1/mmc_host
# #双*设置举例
# dev_mount left_sd *的/ mnt / SD * 1自动/ devices/platform/goldfish_mmc.0 / devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sd *的/ mnt / SD * 2自动/ devices/platform/goldfish_mmc.1 / devices/platform/mtk-sd.2/mmc_host/mmc2
# #指定一个特定的分区挂载的例子
# dev_mount的sd *的/ mnt / SD * 2 / devices/platform/goldfish_mmc.0 / devices/platform/msm_sdcc.2/mmc_host/mmc1
我能帮的只有这些了。
# # - 圣Mehat ( san@android.com )
# #
#### #### #### #### #### ###
# #常规设备安装
# #
# #格式: dev_mount的<label> <mount_point>的<part> <sysfs_path1...>
# #标签 - 标签的卷
# #挂接点 - 如卷将被安装
# #部分 - 分区# (从1开始) ,或“自动”的第一个可用的分区。
# # <sysfs_path> - 的sysfs的路径,源设备列表
## #### #### #### #### ####
# #标准SD的例子*安装仿真器/梦
#挂载指定的设备的第一个可用的分区
dev_mount SD * /存储/ SD * 0 EMMC @胖/ devices/platform/goldfish_mmc.0 / devices/platform/mtk-msdc.0/mmc_host
dev_mount SD * 2 /存储/ SD * 1自动/ devices/platform/goldfish_mmc.1 / devices/platform/mtk-msdc.1/mmc_host
# #双*设置举例
# dev_mount left_sd *的/ mnt / SD * 1自动/ devices/platform/goldfish_mmc.0 / devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sd *的/ mnt / SD * 2自动/ devices/platform/goldfish_mmc.1 / devices/platform/mtk-sd.2/mmc_host/mmc2
# #指定一个特定的分区挂载的例子
# dev_mount的sd *的/ mnt / SD * 2 / devices/platform/goldfish_mmc.0 / devices/platform/msm_sdcc.2/mmc_host/mmc1
我能帮的只有这些了。
2014-04-12 19:06:00
地板
回馈
登录 后才能回复
flag举报帖子