[GUIDE] Swap external sd card with internal


  1. jokerpks

    jokerpks Well-Known Member

    I figured this out a long time ago but forgot to update this post sorry, here is a easy guide.

    1. Use a file explorer with access to system files such as ROOT EXPLORER
    2. Navigate to /etc directory
    3. Activate Mount R/O
    4. Copy internal_sd.fstab and external_sd.fstab files to a different folder
    5. Rename internal_sd.fstab to external_sd.fstab
    6. Renaming, do the opposite external_sd.fstab to internal_sd.fstab
    7. Copy both files to /etc directory and replace both files
    8. Restart your phone
    9. Enjoy

    Advertisement
    :
    jtintle and Sepero like this.
  2. Sepero

    Sepero Linux Guru Guide

    Post the content of your vold file and I'll see if I can help out.
  3. jokerpks

    jokerpks Well-Known Member

    I will greatly appreciate it if you help me.
  4. Kasman3

    Kasman3 Member

    Im in the same boat it i fig it out ill let you know
  5. elk1007

    elk1007 Well-Known Member

  6. Sepero

    Sepero Linux Guru Guide

    There's nothing I can do unless you post the content of your vold file. It may be called /system/etc/vold.fstab
  7. Spec2nirvash

    Spec2nirvash VIP Member VIP Member

    What is the advantage of swapping cards?
  8. Sepero

    Sepero Linux Guru Guide

    It causes your phone to use your sdcard as primary storage, and stores less files on internal storage

    Rather than "swap" I setup my phone to relocate internal storage to the location /mnt/sdcard/internal_fs. So I decide what gets saved on internal storage and what isn't. Which means-

    1. More free space on internal storage, so I can install more apps.
    2. Also if my device can't boot (smashed screen, water damage, other), all my personal files stored safely on sdcard. Simply pull the sdcard out and put it in another device.
    Spec2nirvash likes this.
  9. Spec2nirvash

    Spec2nirvash VIP Member VIP Member

    Never thought about it that way, 2nd reason you gave is enough for me to do it ;) Thanks Sepero!
  10. jokerpks

    jokerpks Well-Known Member

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

    ## Example of a standard sdcard mount for the emulator / Dream
    # Mounts the first usable partition of the specified device
    #dev_mount external_sd /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
    dev_mount flash /mnt/external_sd auto /devices/virtual/mtd/mtd9/mtdblock9
    dev_mount sdcard /mnt/sdcard auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
    dev_mount udisk0 /mnt/usb_storage/USB_DISK0 1 /devices/platform/usb
    dev_mount udisk1 /mnt/usb_storage/USB_DISK1 1 /devices/platform/usb
    dev_mount udisk2 /mnt/usb_storage/USB_DISK2 1 /devices/platform/usb
    dev_mount udisk3 /mnt/usb_storage/USB_DISK3 1 /devices/platform/usb
    dev_mount udisk4 /mnt/usb_storage/USB_DISK4 1 /devices/platform/usb
    dev_mount udisk5 /mnt/usb_storage/USB_DISK5 1 /devices/platform/usb
    ## Example of a dual card setup
    # dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
    # dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1

    ## Example of specifying a specific partition for mounts
    # dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_
  11. Sepero

    Sepero Linux Guru Guide

    This should swap your internal and external mount locations. First make a backup of your vold.fstab file, then change the following two lines
    Code (Text):
    1. dev_mount flash /mnt/external_sd auto /devices/virtual/mtd/mtd9/mtdblock9
    2. dev_mount sdcard /mnt/sdcard auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
    To this
    Code (Text):
    1. dev_mount flash /mnt/sdcard auto /devices/virtual/mtd/mtd9/mtdblock9
    2. dev_mount sdcard /mnt/external_sd auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
  12. elk1007

    elk1007 Well-Known Member


    I think the file he posted is actually /system/etc/external_sd.fstab
    I changed the values you said to and it changed the mount points...but the OS still sees the actual SD card as an sdcard in settings> storage.

    Here's the contents of the vold.fstab file:

    Also there is a file called internal_fs.fstab. Here's the contents of that:

  13. Sepero

    Sepero Linux Guru Guide

    Well, if it's not working, then I can help get it done in a chat session. I'd need a volunteer though.

    If anyone wants to volunteer, you can meet me on irc.freenode.net channel #sepero

    I'll be in there for a week or so. Obviously I'm not at my computer 24/7, so if I don't answer, then just hang out and I'll eventually be around.
  14. elk1007

    elk1007 Well-Known Member

    So do you understand that the file jokerpks posted wasn't the one you asked for?
  15. Sepero

    Sepero Linux Guru Guide

    I understand that the file jokerpks posted wasn't the one I asked for.
  16. TheEmpathicEar

    TheEmpathicEar Well-Known Member

    As someone who just added a 32gig Micro SDCard, this idea of "swapping" sounds good. But... how many out there have successfully done it on this phone? The "Root External 2 Internal SD" app seems hard to use [based on the description]. And, from what I've read here, other methods seem difficult at best?
  17. jokerpks

    jokerpks Well-Known Member

    I just updated the post with a guide.
    Sepero likes this.
  18. TheEmpathicEar

    TheEmpathicEar Well-Known Member

    I think I know how to do all steps except number 3? What does this means? I'm a noob to Android. [I bricked my first Huawei Premia 4G after 2 weeks. My sad story is told in a rooting thread]
  19. jtintle

    jtintle Well-Known Member

    What step 3 does is make the folder writable, that way you can paste the new files in. In root explorer, it usually has a button at the top, with either rw or ro
  20. TheEmpathicEar

    TheEmpathicEar Well-Known Member

    It seems to me that in step 4,5,6 and 7 could be rephrased:

    1. In "etc", move "A", to another folder - "X".
    2. In "etc", change "B" to "A".
    3. In "X", change "A", to "B".
    4. In "X", move "B" back to "etc"

    Is this sound logic?
  21. jtintle

    jtintle Well-Known Member

    That'll work to
  22. TheEmpathicEar

    TheEmpathicEar Well-Known Member

    [Keep in mind, this is coming from someone who has bricked his first Android phone and now is working with a replacement - same model]

    I have read thru the thread.

    1. What are the overall risks of doing this [if any]?
    2. Can you choose where to install apps after this?
    3. Can you choose where to store stuff after this?
  23. jtintle

    jtintle Well-Known Member

    From what it looks like, it'll tell the phone to use your external SD card as SD card 1 and use the internal SD Card as SD card 2.

    It doesn't change how the phone stores anything, just will give you more room on SD card 1, so you can move more apps to SD card...

    If that makes any sense

    Here are some pics of my storage after I did this:
    [​IMG][​IMG]
  24. TheEmpathicEar

    TheEmpathicEar Well-Known Member

    I think so. :D As long as there is no risk, I will give it a try.

    EDIT: I have "File Manager" by Rhythm Software installed. It has a "Root Explorer" setting which in turn provides access to a "Mount System Folders" option. Is there another tool that is more straightforward to use to "Mount" the /etc folder as writable?
  25. Tokenpoke

    Tokenpoke Well-Known Member

    I got a dumb question.... can't you just tap "default storage location" and switch to sd card?
Loading...

Share This Page