[Galaxy S I9000 Android Development] elitevet:
Well, the sdcard(s) issue has been somewhat confusing for me and I'd like to receive some regards/clarifications from someone who understood it through (which I didn't, though I had read each and every post in this thread, some of them more than once... maybe that is the main reason for my confusion).

* I flashed #149 over the "stable" cleaning cache/dalvik-cache (no format /system).

* I had a bootloop

* I removed the battery, got into recovery by 3-button, fixed permissions and reflashed the nightly, then flashed change_mountpoint.zip then fixed permissions again (yeah, I know, it's excessive, but it can't hurt, can it?)

* The phone booted OK. The Google apps like GMail and Market FC'ed on me if I tried to open them

* The framework had no connection to Google Servers

* Some other apps were broken - the Icons of their shortcuts changed to placeholders on the Homescreen

Looking at the system I saw the following:

My external SD (the removable one) was mounted as /mnt/sdcard :confused:

My internal SD (built-in) was mounted as /emmc, but not accessible :confused:

My build.prop looked like this:

[SIZE="2"]...
persist.sys.vold.switchexternal=1
...
ro.additionalmounts=/mnt/emmc
ro.vold.switchablepair=/mnt/sdcard,/mnt/emmc
...
###changing mount point of external sd to /sdcard/external_sd###
ro.additionalmounts=/mnt/sdcard/external_sd
ro.vold.switchablepair=/mnt/sdcard,/mnt/sdcard/external_sd[/SIZE]

My /system/etc/vold.fstab looked like this:

[SIZE="2"]## 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
######################

# internal sdcard
dev_mount emmc /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0

# external sdcard
dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.2/mmc_host/mmc2[/SIZE]

CM Settings > Application > Use internal storage was unchecked (:confused: is this reffering to the persist.sys.vold.switchexternal=1 line?)

I then heavily abused my two remaining IQs to sort this out, and came to this:

I changed the /system/etc/vold.fstab to read:

[SIZE="2"]## 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
######################

# internal sdcard
dev_mount emmc /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0

# external sdcard
dev_mount sdcard /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2[/SIZE]

and commented out the old lines in /system/build.prop:

#ro.additionalmounts=/mnt/emmc

#ro.vold.switchablepair=/mnt/sdcard,/mnt/emmc

* I rebooted the phone, after wich I had my internal storage under /mnt/sdcard and my external(removable) SD under /mnt/sdcard/external_sd, which is what I want.

* The placeholders changed to the apps icons and those apps work well

* The Google apps stopped FC'ing, but said I didn't have an account set up. I was unable to set it up. (I reflashed Gapps (20110828) and all works well now...)

BUT

1. The CM Settings > Application > Use internal storage is still unchecked - what does it mean? I'd like to be pointed to a VERY simple and comprehensible explanation of the CM Settings > Application > Use Internal storage option, since I've burnt out one IQ and I've left with a single IQ only.:(

2. When I mount USB storage in Android I see two drives in Windows, and they are accessible OK.

* When I mount USB in Recovery I only see one drive in Windows, which is the Internal storage (the one that gets mounted in /mnt/sdcard).

* Under Mounts and Storage in Recovery I have options of

mount /sdcard, which results in accessible Internal Storage

mount /emmc, after which nothing new is added under /sdcard/external_sd (or rather /external_sd as it seen from Install .zip from sdcard > choose .zip

This is the mount output when in recovery and /sdcard & /emmc mounted:

[SIZE="2"]~ # mount
mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock3 on /cache type yaffs2 (rw,nodev,noatime,nodiratime)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,nodev,noatime,nodiratime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/block/mmcblk1p1 on /emmc type vfat (rw,nodev,noatime,nodiratime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)[/SIZE]

Is it possible to have the external SD to mount and/or USB mount properly in Recovery?

3. What would happen to this setup, if I flashed another nightly?

Thank you in advance.