互换内外置卡的vold2.0文件怎么
/system/etc目录下有一个文件vold。fstab,这个vold。fstab文件就是用来挂载SD卡的。通过修改这个文件就能实现内外SD的位置交换。
这是我手机里导出的vold。fstab内容
--------------------------
## Vold 2。 0 Generic fstab
## - San Mehat (san@android。com)
##
#######################
## Regular device mount
##
## Format: dev_mount
## label - Label for the vol...全部
/system/etc目录下有一个文件vold。fstab,这个vold。fstab文件就是用来挂载SD卡的。通过修改这个文件就能实现内外SD的位置交换。
这是我手机里导出的vold。fstab内容
--------------------------
## Vold 2。
0 Generic fstab
## - San Mehat (san@android。com)
##
#######################
## Regular device mount
##
## Format: dev_mount
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition。
## - List of sysfs paths to source devices
######################
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
format_option = -r 2236
}
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci。
0/mmc_host/mmc0/mmc0
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci。
2/mmc_host/mmc1
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/s3c_otghcd/usb
#end line ## keep this line
-----------------------------------------
找到
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci。
0/mmc_host/mmc0/mmc0
改成
dev_mount sdcard1 /mnt/sdcard/external_sd 11 /devices/platform/s3c-mshci。
0/mmc_host/mmc0/mmc0
找到
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci。
2/mmc_host/mmc1
改成
dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci。2/mmc_host/mmc1。
收起