[HTC Wildfire S] radcro:
Temp - SD Card Fix - Modified vold.stab

I may have figured out the SD card mount issue.

After several attempts and different approaches I was able to get my SD Card to mount by changing one line in my vold.fstab file (located under the /system/etc/ directory). Think of this as a temporary fix, I believe that once I figure out how to change the file permissions to the root directory /storage/ the original vold.fstab file may work. The /storage/ directory appears to be recreated upon every boot and does not keep any folder permissions or sub-directories I set or make before I manually re-boot my phone.

As an example, after changing folder permissions to the same as folder /mnt/, the folder /storage/ reverts back to these permissions below:

folder permissions

/mnt/ drwxrwxr-x

/storage/ d---r-x---

Here is my current vold.fstab file content:

---------------------------------------------------------------------------------------------------------

## Vold 2.0 fstab for HTC Passion

#

## - 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

######################

# Mounts the first usable partition of the specified device

dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I've tested the camera and it seems to store photos on the SD card and in the Gallery. I was able to play mp3 files from my SD card in the "rom provided" Apollo music player.

SD card data is obviously located in the /mnt/sdcard/ directory.

I'm not sure how this will affect other apps. As I understand it, JellyBean (JB) typically mounts the SD card under /storage/sdcard0. If problems arise I suppose we could link or "bind" the two directories by using adb or terminal emu using the command below and then creating a boot script to run it everytime the phone boots. Perhaps the "Directory Boot" program will work.

su

mount -o bind /mnt/sdcard /storage/sdcard0

I have not attempted the above commands on my phone and do not know if it is even needed. Further testing and research is needed before I attempt anything like the command above.

Perhaps someone with more knowledge than I could "chime in" on why this vold.fstab line works to mount the SD card:

dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

and why this line does not work to mount the SD card:

dev_mount sdcard /storage/sdcard0 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

Is it folder permissions in /storage/ or the fact that the /scard0/ folder does not exist in the /storage/ folder?

I have attached both the original and modified vold.fstab files below. If you would like to try and see if the modification will work on your phone, you can either delete the original vold.fstab file in the phones /system/etc/ directory and copy the contents of the vold.fstab.works.zip file in that same directory or simply edit the vold.fstab file directly on your phone using this roms stock file manager (with root access of course) by changing /storage/sdcard0 to /mnt/sdcard in the vold.fstab file.

Use these files or my advice at your own risk - yada, yada, yada.

----------------------------------------------------------------------------------------

My phone info:

Model #: HTC_A510c Wildfire S - MarvelC - Rooted / Unlocked with S-On

Hboot: v1.10.0001 Carrier: Virgin Mobile - USA

Currently Running:

CM-10.1 (ANDROID 4.2.2) FOR MARVELC by crossfire77

CronMod-INT2EXTV2+ by croniccorey

GAPPS_Lite_4.2.2_[OWLPROJECT] by JDev - Modified by me...(removed "Voice Search" and "Google Now")

"Voice Search" by google installed via "Play Store"

"Swapper 2" (256MB linux swap file size) installed via "Play Store"

Modified vold.fstab file to mount SD card in /mnt/sdcard/ directory