FORUMS
Remove All Ads from XDA

[MOD][SWAP]Swap Internal SD card and External SD card of most of the Android™ device

144 posts
Thanks Meter: 88
 
By Techno'CRACKS', Senior Member on 1st July 2013, 02:49 PM
Post Reply Email Thread
This feature is now native in Android 6.0, just follow the below steps to turn External SD card into Internal storage on Marshmallow

  1. Go to “Settings” --> then select “Storage”.
  2. Select SD Card and then tap the menu button on top-right corner or your native menu button and select “Settings” from there.
  3. Select “Format as Internal
  4. Select “Erase & Format”.
  5. Wait for some time as your SD card will be formatted.
  6. Reboot the device.


The below method no longer work on any of the new devices running KitKat and later. Please don't use this method anymore else you would mess up your storage system
EDIT: This doesn't seem to work on SAMSUNG devices so please don't try on them. This works on most of the MediaTek devices and few Sony devices. If you were able to successfully swap please mention your device name.Don't forget to read the warning.

Warning: Please do a complete CWM Backup of your device, so that if anything goes wrong you can revert back to original state. Please don't blame me if you forget to do a complete CWM Backup

I have a phone with me Xperia J and it has only 2 GB of Internal memory for apps but data for few HD games like NFSMW is 1.8 GB i.e nearly 2 GB and if I paste the data in external SD then it will not be detected, then how can we install and play these HD games on devices like these?

The only solution to this is swapping Android's external and internal SD cards so that I can get my SD card's size as internal memory.

Discliamer:I am not responsible if you mess up with your phone, for bricked phones and dead sd cards. Try this on your own risk.

Then how can we do this?

Its very simple by modifying the code in vold.fstab file which is present in ext folder of Android's system folder.

This file so called vold.fstab has mounting information for the device to mount the SD cards so change the code to swap the SD cards so that ext_card will be mounted as sdcard and sdcard will be mounted as ext_card.

Note: This will work on any Android phone with internal and external SD cards.

Here is the procedure with an example I have done on Xperia J's vold.fstab file.

1. First of all your phone must be ROOTED, If its not then STOP here and get the Root first.

2. Download Root Explorer or any other such explorer which can explore root directory of device.

3. Navigate to system/etc folder mount it as rw(read/write).

4. There you will find vold.fstab file, copy it to your sdcard.

5. Then in your PC open the file in an Text Editor.

6. Find the lines like these,
Code:
dev_mount sdcard /mnt/sdcard emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /mnt/ext_card auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
7. Replace sdcard with ext_card and ext_card with sdcard in those two lines.

8. Again navigate to system/etc change the name of the current vold.fstab file to vold.fstab.old (backup).

9. Paste the new edited vold.fstab file there and long press on it you will get a menu from there change the permissions to "rw_r_ _r_ _" this is important.

10. Reboot the system.

11. If you want to restore changes, delete the edited vold.fstab file and rename the vold.fstab.old file as vold.fstab and reboot.

All the best.
The Following 23 Users Say Thank You to Techno'CRACKS' For This Useful Post: [ View ] Gift Techno'CRACKS' Ad-Free
 
 
3rd July 2013, 04:30 AM |#2  
Junior Member
Thanks Meter: 2
 
More
Smile Great fix for common problem
But I need some help. When I open the text file on my PC I am not sure which lines to swap. Any assistance will be appreciated.I am attaching a copy of my text file. Thanks
Quote:
Originally Posted by Techno'CRACKS'

I have a phone with me Xperia J and it has only 2 GB of Internal memory for apps but data for few HD games like NFSMW is 1.8 GB i.e nearly 2 GB and if I paste the data in external SD then it will not be detected, then how can we install and play these HD games on devices like these?

The only solution to this is swapping Android's external and internal SD cards so that I can get my SD card's size as internal memory.

Discliamer:I am not responsible if you mess up with your phone and for bricked phones and dead sd cards.

Then how can we do this?

Its very simple by modifying the code in vold.fstab file which is present in ext folder of Android's system folder.

This file so called vold.fstab has mounting information for the device to mount the SD cards so change the code to swap the SD cards so that ext_card will be mounted as sdcard and sdcard will be mounted as ext_card.

Note: This will work on any Android phone with internal and external SD cards.

Here is the procedure with an example I have done on Xperia J's vold.fstab file.

1. First of all your phone must be ROOTED, If its not then STOP here and get the Root first.

2. Download Root Explorer or any other such explorer which can explore root directory of device.

3. Navigate to system/etc folder mount it as rw(read/write).

4. There you will find vold.fstab file, copy it to your sdcard.

5. Then in your PC open the file in an Text Editor.

6. Find the lines like these,

7. Replace sdcard with ext_card and ext_card with sdcard in these two lines.

8. Again navigate to system/etc change the name of the current vold.fstab file to vold.fstab.old (backup).

9. Paste the new edited vold.fstab file there and long press on it you will get a menu from there change the permissions to "rw_r_ _r_ _" this is important.

10. Reboot the system.

11. If any thing goes wrong, delete the edited vold.fstab file and rename the vold.fstab.old file as vold.fstab and reboot.

Attached Files
File Type: txt vold.fstab.txt - [Click for QR Code] (1.2 KB, 19776 views)
The Following 2 Users Say Thank You to jsan6996 For This Useful Post: [ View ] Gift jsan6996 Ad-Free
15th August 2013, 11:42 AM |#3  
OP Senior Member
Flag Guntakal
Thanks Meter: 88
 
More
Replace sdcard with sdcard2 and viceversa in your vold.fstab

Sent from my Micromax A110 using xda app-developers app
The Following User Says Thank You to Techno'CRACKS' For This Useful Post: [ View ] Gift Techno'CRACKS' Ad-Free
20th August 2013, 09:51 PM |#4  
UltraGamerHD's Avatar
Senior Member
Thanks Meter: 1,225
 
More
Smile
Quote:
Originally Posted by Techno'CRACKS'

I have a phone with me Xperia J and it has only 2 GB of Internal memory for apps but data for few HD games like NFSMW is 1.8 GB i.e nearly 2 GB and if I paste the data in external SD then it will not be detected, then how can we install and play these HD games on devices like these?

The only solution to this is swapping Android's external and internal SD cards so that I can get my SD card's size as internal memory.

Discliamer:I am not responsible if you mess up with your phone and for bricked phones and dead sd cards.

Then how can we do this?

Its very simple by modifying the code in vold.fstab file which is present in ext folder of Android's system folder.

This file so called vold.fstab has mounting information for the device to mount the SD cards so change the code to swap the SD cards so that ext_card will be mounted as sdcard and sdcard will be mounted as ext_card.

Note: This will work on any Android phone with internal and external SD cards.

Here is the procedure with an example I have done on Xperia J's vold.fstab file.

1. First of all your phone must be ROOTED, If its not then STOP here and get the Root first.

2. Download Root Explorer or any other such explorer which can explore root directory of device.

3. Navigate to system/etc folder mount it as rw(read/write).

4. There you will find vold.fstab file, copy it to your sdcard.

5. Then in your PC open the file in an Text Editor.

6. Find the lines like these,

7. Replace sdcard with ext_card and ext_card with sdcard in these two lines.

8. Again navigate to system/etc change the name of the current vold.fstab file to vold.fstab.old (backup).

9. Paste the new edited vold.fstab file there and long press on it you will get a menu from there change the permissions to "rw_r_ _r_ _" this is important.

10. Reboot the system.

11. If any thing goes wrong, delete the edited vold.fstab file and rename the vold.fstab.old file as vold.fstab and reboot.

Hi!

If it's not a problem can you modify my vold.fstab for me thanks.

My Device is a Sony Xperia E

Here is the link for my vold.fstab: http://www.mediafire.com/download/3w...673/vold.fstab

edit: tried it manually nothing happens!
12th September 2013, 10:23 AM |#5  
Junior Member
Thanks Meter: 0
 
More
Trying to swap external with internal on Sony Xperia Z
Hi there - I'm very new to this forum - and I have looked everywhere for a solution but cannot find it.

Sony Xperia Z - 6603 with Android version 4.2.2 - Build number 10.3.1.A.0.244

Problem: Want to change internal memory with 64GB external MicroSD card because I use to many applications on my phone and it constantly reports that it is running out of storage when installing more apps.
What have I tried so far: I've rooted the phone - and I've looked at the vold.fstab
Here is what it says in the file:

dev_mount ext_card /storage/removable/sdcard1
auto /devices/platform/msm_sdcc.3/mmc_host
dev_mount usbdisk /storage/removable/usbdisk
auto /devices/platfrom/msm_hsusb_host

What do I have to change in this vold.fstab in directory /system/etc to make is swap my external SD card with the internal memory?
It does not show in the file that there is a /sdcard0 or even a /sdcard

Any help would be appreciated as I'm already been trying loads that all do not work - simply because they either only work with 4.2.1 or another builds.
If there is a thread that has already solved this problem then please direct me to that - again, I could not find it anywhere.

Thanks
25th September 2013, 02:17 PM |#6  
futchy4u's Avatar
Senior Member
Flag Egypt - Cairo
Thanks Meter: 147
 
More
Quote:
Originally Posted by cptnkirk

Hi there - I'm very new to this forum - and I have looked everywhere for a solution but cannot find it.

Sony Xperia Z - 6603 with Android version 4.2.2 - Build number 10.3.1.A.0.244

Problem: Want to change internal memory with 64GB external MicroSD card because I use to many applications on my phone and it constantly reports that it is running out of storage when installing more apps.
What have I tried so far: I've rooted the phone - and I've looked at the vold.fstab
Here is what it says in the file:

dev_mount ext_card /storage/removable/sdcard1
auto /devices/platform/msm_sdcc.3/mmc_host
dev_mount usbdisk /storage/removable/usbdisk
auto /devices/platfrom/msm_hsusb_host

What do I have to change in this vold.fstab in directory /system/etc to make is swap my external SD card with the internal memory?
It does not show in the file that there is a /sdcard0 or even a /sdcard

Any help would be appreciated as I'm already been trying loads that all do not work - simply because they either only work with 4.2.1 or another builds.
If there is a thread that has already solved this problem then please direct me to that - again, I could not find it anywhere.

Thanks

Did you manage to swap storage with 4.2 yet ?
5th October 2013, 05:02 AM |#7  
zohaib0001's Avatar
Senior Member
Flag Lahore
Thanks Meter: 3,579
 
More
Quote:
Originally Posted by cptnkirk


Here is what it says in the file vold.fstab

dev_mount ext_card /storage/removable/sdcard1
auto /devices/platform/msm_sdcc.3/mmc_host
dev_mount usbdisk /storage/removable/usbdisk
auto /devices/platfrom/msm_hsusb_host

What do I have to change in this vold.fstab in directory /system/etc to make is swap my external SD card with the internal memory?
It does not show in the file that there is a /sdcard0 or even a /sdcard

Any help would be appreciated as I'm already been trying loads that all do not work - simply because they either only work with 4.2.1 or another builds.
If there is a thread that has already solved this problem then please direct me to that - again, I could not find it anywhere.

Thanks

I found same line in my Xperia Z1

Please tell us what is the coding for these kind of lines ?????
5th October 2013, 08:35 AM |#8  
Junior Member
Thanks Meter: 0
 
More
i followed the guide but now my device won't lead, android boot screen is on for ages and it wont load up the system.

"11. If any thing goes wrong, delete the edited vold.fstab file and rename the vold.fstab.old file as vold.fstab and reboot."

Well i can't do that since my system wont load up and only thing i can do is go into recovery mode. Any tips how i can swap it back since i can't access the storage from intrnal sd or boot the phone? Did i brick the device?
6th October 2013, 10:03 AM |#9  
justmalhar's Avatar
Junior Member
Flag Nagpur
Thanks Meter: 5
 
More
Quote:
Originally Posted by alscaul

i followed the guide but now my device won't lead, android boot screen is on for ages and it wont load up the system.

"11. If any thing goes wrong, delete the edited vold.fstab file and rename the vold.fstab.old file as vold.fstab and reboot."

Well i can't do that since my system wont load up and only thing i can do is go into recovery mode. Any tips how i can swap it back since i can't access the storage from intrnal sd or boot the phone? Did i brick the device?

Try doing a factory reset, if that doesn't work; flash a new ROM
7th October 2013, 04:36 AM |#10  
zohaib0001's Avatar
Senior Member
Flag Lahore
Thanks Meter: 3,579
 
More
Quote:
Originally Posted by alscaul

i followed the guide but now my device won't lead, android boot screen is on for ages and it wont load up the system.

"11. If any thing goes wrong, delete the edited vold.fstab file and rename the vold.fstab.old file as vold.fstab and reboot."

Well i can't do that since my system wont load up and only thing i can do is go into recovery mode. Any tips how i can swap it back since i can't access the storage from intrnal sd or boot the phone? Did i brick the device?

you need to flash the old vold.fstab file through CWM recovery

just put the file in a flashable zip and flash it with cwm recovery
12th October 2013, 12:25 AM |#11  
Junior Member
Thanks Meter: 0
 
More
Help
Quote:
Originally Posted by Techno'CRACKS'

I have a phone with me Xperia J and it has only 2 GB of Internal memory for apps but data for few HD games like NFSMW is 1.8 GB i.e nearly 2 GB and if I paste the data in external SD then it will not be detected, then how can we install and play these HD games on devices like these?

The only solution to this is swapping Android's external and internal SD cards so that I can get my SD card's size as internal memory.

Discliamer:I am not responsible if you mess up with your phone and for bricked phones and dead sd cards.

Then how can we do this?

Its very simple by modifying the code in vold.fstab file which is present in ext folder of Android's system folder.

This file so called vold.fstab has mounting information for the device to mount the SD cards so change the code to swap the SD cards so that ext_card will be mounted as sdcard and sdcard will be mounted as ext_card.

Note: This will work on any Android phone with internal and external SD cards.

Here is the procedure with an example I have done on Xperia J's vold.fstab file.

1. First of all your phone must be ROOTED, If its not then STOP here and get the Root first.

2. Download Root Explorer or any other such explorer which can explore root directory of device.

3. Navigate to system/etc folder mount it as rw(read/write).

4. There you will find vold.fstab file, copy it to your sdcard.

5. Then in your PC open the file in an Text Editor.

6. Find the lines like these,

7. Replace sdcard with ext_card and ext_card with sdcard in these two lines.

8. Again navigate to system/etc change the name of the current vold.fstab file to vold.fstab.old (backup).

9. Paste the new edited vold.fstab file there and long press on it you will get a menu from there change the permissions to "rw_r_ _r_ _" this is important.

10. Reboot the system.

11. If any thing goes wrong, delete the edited vold.fstab file and rename the vold.fstab.old file as vold.fstab and reboot.

I did exactly what you said with GT-N5110, rooted and running 4.2.2, and now when i boot it it gets stuck at the SAMSUNG glowing logo. I wiped all the data and that didnt work. Any suggestions???
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes