Ticket #199 (closed defect: fixed)
Opened 23 months ago
Last modified 19 months ago
Mounting sdcard fails in vold.fstab
Reported by: | divx118 | Owned by: | BuBu |
---|---|---|---|
Priority: | major | Milestone: | Android 2.3 Bull |
Component: | Android 2.3 | Version: | |
Keywords: | sdcard cyanogenmod mount vold.fstab | Cc: | akk |
Description (last modified by divx118) (diff)
Mounting the sdcard with vold.fstab fails, because the sysfs path changes according to the sdcard that is used.
The mounting line in vold.fstab should be as follows, but XXXX is the thing that changes when another card is used.
dev_mount sdcard /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc1/mmc1:XXXX/block/mmcblk2
Also it will only mount fat partitions.
Archos patched vold and uses a lun path to mount the partition. The line in vold.fstab is as follows.
dev_mount_lun volume_sdcard /mnt/storage/sdcard auto /devices/platform/usb_mass_storage/lun1 /class/block/mmcblk2
We should also decide on where to mount the sdcard.
Normally the internal memory is the main sdcard for android. This is mounted at /mnt/storage.
In the official firmware it is done like this:
/mnt/storage is the internal memory
/storage -> /mnt/storage
/sdcard -> /mnt/storage
/mnt/sdcard -> /mnt/storage
/mnt/storage/sdcard is the removable sdcard
vold.fstab mounting lines on the archos:
dev_mount_lun volume_internal /mnt/storage auto /devices/platform/usb_mass_storage/lun0 /class/block/mmcblk1 dev_mount_lun volume_sdcard /mnt/storage/sdcard auto /devices/platform/usb_mass_storage/lun1 /class/block/mmcblk2 dev_mount volume_external /mnt/storage/usb_host auto /class/block/sda