[Sony Xperia T, TL, TX, V] blackcat510:
Hello all, I've been searching for a solution to swap sdcard and internal storage which means real sdcard will mount as /sdcard0 and internal storage will mount as /sdcard1

The point in doing this is because the internal storage is too small, while many of us will play heavy games such as gameloft's game, nfs, etc. and the data will be stored in /sdcard0/android/ . We won't have enough space, so we will mount real sdcard as /sdcard0 so we won't have anymore problem with storage :fingers-crossed:

This is what I've done but I'm just on a halfway done, I need your help! :p

Here's the original lines in vold.fstab in /system/etc/

dev_mount ext_card /storage/sdcard1 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1

dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host

fuse_mount sdcard /storage/sdcard0 179 15 /mnt/int_storage

Here's what I tried to change:

dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1

dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host

dev_mount int_storage /storage/sdcard1 auto /devices/platform/msm_sdcc.1/mmc_host/mmc0

or

dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1

dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host

dev_mount sdcard /storage/sdcard1 auto /devices/platform/msm_sdcc.1/mmc_host/mmc0

or

dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1

dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host

fuse_mount sdcard /storage/sdcard1 179 15 /mnt/int_storage

or

dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1

dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host

fuse_mount int_storage /storage/sdcard1 179 15 /mnt/int_storage

What I've achieved is the real sdcard has mounted as sdcard0 and showed as internal storage when we connect with USB. Yay! :fingers-crossed: We've done what we meant to do ... But the internal storage doesn't mount as sdcard1 :(. My sdcard is 32gb class 10 so I have nothing to worry about. But I just wondered if there's anyway to fix this problem :confused: Plz any dev look for this problem, I think many people want this too as xperia V has a very low internal memory (about 4GB in fact, 2gb has been shared with device memory and more than 1gb is system partition).

I've searched alot, many devices get it worked just by swap the number of sdcard0 and sdcard1 like I did in the 3rd case. But in xperia V, I can't get it totally working.

If you want to try this, make sure you have backed up your rom with CWM. I'm not responsible if you get bootloop / stuck at boot when try to modify this.

Here's the dev_mount arguments :), I can't find fuse_mount arguments :(.

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

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

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