[Samsung Galaxy S Duos 2] ahmedhameed:
Here how to swap memory (root)

Just do the following steps and u will have swapped memory:fingers-crossed:;)

With Root Explorer, make back-ups of the following two files, system/etc/vold.fstab, and system/etc/vold.conf. Once backed up, then proceed to modified the code in red, see below:

vold.fstab original

## 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
## storage_struct - ex) series, "/mnt/sdcard/extStorages" / parallel
######################
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun/file
secure_format = enable
discard = enable
}
dev_mount [COLOR="Magenta"]sdcard[/COLOR] /storage/[COLOR="Magenta"]sdcard0[/COLOR] 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0 encryptable_nonremovable

# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun_ex/file
supported_exfat = yes
android_secure_containers = enable
}
dev_mount [COLOR="Magenta"]sdcard1[/COLOR] /storage/[COLOR="Magenta"]extSdCard[/COLOR] auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2

#usb host device
{
media_type = usb
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/msm_hsusb_host.0
#EOF

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

vold.fstab modified

## 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
## storage_struct - ex) series, "/mnt/sdcard/extStorages" / parallel
######################
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun/file
secure_format = enable
discard = enable
}
dev_mount [COLOR="Blue"]sdcard1[/COLOR] /storage/[COLOR="Blue"]extSdCard[/COLOR] 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0 encryptable_nonremovable

# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun_ex/file
supported_exfat = yes
android_secure_containers = enable
}
dev_mount [COLOR="Blue"]sdcard[/COLOR] /storage/[COLOR="Blue"]sdcard0[/COLOR] auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2

#usb host device
{
media_type = usb
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/msm_hsusb_host.0

#usb host device
{
media_type = usb
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/msm_hsusb_host.0
#EOF

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

vold.conf original

## vold configuration file for the emulator/SDK

volume_sdcard {
## This is the direct uevent device path to the SD slot on the device
emu_media_path /devices/platform/goldfish_mmc.0/mmc_host/mmc0

media_type mmc
mount_point /[COLOR="Magenta"]sdcard[/COLOR]
ums_path /devices/platform/usb_mass_storage/lun0
}

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

vold.conf modified

## vold configuration file for the emulator/SDK

volume_sdcard {
## This is the direct uevent device path to the SD slot on the device
emu_media_path /devices/platform/goldfish_mmc.0/mmc_host/mmc0

media_type mmc
mount_point /[COLOR="Blue"]extSdCard[/COLOR]
ums_path /devices/platform/usb_mass_storage/lun0
}