Switch internal memory with external memory


Last Updated: 2012-12-12 14:46:17
  1. SinniS

    SinniS Member

    I did not come up with this, MikesTooLz did. i am simply just sharing it BUT there is a problem that i have run into thanks to this. I'll explain at the end.

    [​IMG]
    I hate how the LG Esteem has a fake internal 4GB SD card. Its a small amount of storage and not all apps can find the external SD card storage located in /sdcard/_ExternalSD/

    The last update to the Google Plus app also broke auto upload of photos stored on my external SD card. I have figured out how to make my 16GB SD card show up as the internal memory (or as the Main /sdcard/ directory) and the internal fake SD card storage shows up as external storage.


    To do this your phone must already be rooted.
    Once the phone is rooted its just a matter of replacing a file on the phone with the modified file.

    Download the following file, unzip it on your computer and transfer the vold.fstab to your SD Card. After you have the file on your SD card, use a program like Root Explorer to copy the file to /system/etc/
    When it asks if you want to replace the existing file with this new one, select yes to replace the file.
    Reboot the phone and start enjoying your new increased internal memory.

    http://androidinvasion.us/downloads/vold.zip


    My problem is when i plug into a pc to get to my both memory cards, it wont connect. It says it has dismounted the external SD card but that's all. I then downloaded muti-Mount sd app. it kinda works but i have to enable the original Mass storage and then the muti-mount SD. sadly this will only give me access to the internal memory and not my external. i was thinking that when the original maker of this file was creating or editing it that he left out or deleted some important line of code to make this properly work. Any clues or ideas?

    Advertisement
    hippiegang likes this.
  2. PlayfulGod

    PlayfulGod Well-Known Member Developer

    yea, but it causing other issues too from what I've read. mainly all thats done is changing the order of the 2 in the vold.fstab.

    its a give n take kinda of mod lol
  3. SinniS

    SinniS Member

    Clearly it does, would you or anyone else reading this be able to give me the original file it replace, I stupidly did not back it up. i wanna open them side by side and see if maybe there's something missing or to much added. I'm not to good at stuff like this but i usually find my way around things after some time, also i posted it here in hope that we can all correct this.
  4. PlayfulGod

    PlayfulGod Well-Known Member Developer

    heres what the original has in it:
    Code (Text):
    1.  
    2. dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.2/mmc_host/mmc1
    3. dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/msm_sdcc.4/mmc_host/mmc3
    original file attached to this post too. Just renamed n remove the .txt and then place it in system/etc

    Attached Files:

  5. SinniS

    SinniS Member

    The Replacement.

    dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host/mmc3
    dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/msm_sdcc.2/mmc_host/mmc1
  6. esoomenona

    esoomenona New Member

    Is there any way to just change the partition on the internal memory to allow the entire internal memory to be used as such, for system and data, and to have the SD card be external memory? You know, like a normal phone?
  7. nuttmeg

    nuttmeg Well-Known Member

    no, the phones has 8 gb which is split up in different parts, and the os goes on 1 part of it, and so on.
  8. PlayfulGod

    PlayfulGod Well-Known Member Developer

    actually most mid to high end phones and tablets are the same way and all phones will eventually follow suit. So technically what you are calling normal is technically not. ;)
  9. Ære

    Ære Well-Known Member


    Did this fix your problem from your OP?
  10. PRkid

    PRkid Well-Known Member

    Why can't I view my SD cards Total/Available space? For both, it says "Unavailable". Its been like that since I purchased the phone, about a month ago. It always annoyed me.
  11. revogozoom

    revogozoom Well-Known Member

    Thats not normal especially if it was that way stock. I would have had it replaced.
  12. aaronakm

    aaronakm New Member

    Help me plz, i use that app on my lenovo ideapad a1 and after rebooting my tab, the tab does not detect micro sd card. What should i do? Now i m unable to restore firmware.
  13. kanaida

    kanaida Well-Known Member


    I thought about it too. Maybe it's better to comment out the internal memory, just redirect the real sdcard to /sdcard lol. The space is puny anyways compared to 32gb and all apps would just save to one spot.
  14. p-bOt

    p-bOt Well-Known Member

    That sounds like a good idea lol...I would give up 4GB for 16GB (what I have) or 32GB in your case. But can you just comment it out with forward slashes and stars like in any other regular java code??
  15. kanaida

    kanaida Well-Known Member

    I'm not 100% sure, I mean from the linux point of view, you can edit the vfstab file and save (carefully, backup first). But then there is the internal/external memory differentiation wich may or may not be a part of that file, that just means it should map it to /sdcard and tell android that path is external memory possibly. I'll take a look later tonight cause I really hate having folders scattered all over.
  16. p-bOt

    p-bOt Well-Known Member

    Alright cool...keep us posted
  17. kanaida

    kanaida Well-Known Member

    Make 2 folders on your pc. One called INTERNAL, one called EXTERNAL
    Connect to pc via usb
    backup all the files in the INTERNAL drive, except the folder called _ExternalSD to the INTERNAL folder on your pc.
    Copy all the contents from your sdcard's drive letter to EXTERNAL

    Make a new folder on your pc called MERGED
    In this order:
    copy the contents of the EXTERNAL folder on your pc -> MERGED
    copy the contents of the INTERNAL folder on your pc -> MERGED (overwrite if it asks)

    replace the contents of /etc/vold.fstab with:
    Code (Text):
    1. # Copyright (c) 2010, Code Aurora Forum. All rights reserved.
    2. #
    3. # Redistribution and use in source and binary forms, with or without
    4. # modification, are permitted provided that the following conditions are
    5. # met:
    6. #     * Redistributions of source code must retain the above copyright
    7. #       notice, this list of conditions and the following disclaimer.
    8. #     * Redistributions in binary form must reproduce the above
    9. #       copyright notice, this list of conditions and the following
    10. #       disclaimer in the documentation and/or other materials provided
    11. #       with the distribution.
    12. #     * Neither the name of Code Aurora Forum, Inc. nor the names of its
    13. #       contributors may be used to endorse or promote products derived
    14. #       from this software without specific prior written permission.
    15. #
    16. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
    17. # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    18. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
    19. # ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
    20. # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    21. # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    22. # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    23. # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    24. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    25. # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
    26. # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    27.  
    28. #######################
    29. ## Regular device mount
    30. ##
    31. ## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
    32. ## label        - Label for the volume
    33. ## mount_point  - Where the volume will be mounted
    34. ## part         - Partition # (1 based), or 'auto' for first usable partition.
    35. ## <sysfs_path> - List of sysfs paths to source devices
    36. ######################
    37.  
    38. #[STAR eMMC migration]
    39. # LG_FW_SDCARD
    40. ##dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host /devices/platform/msm_sdcc.2/mmc_host
    41. ##dev_mount sdcard /mnt/sdcard 15 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
    42. ##dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.4/mmc_host/mmc3
    43. #
    44. #Commented out by kanaida
    45. #dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.2/mmc_host/mmc1
    46. #dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/msm_sdcc.4/mmc_host/mmc3
    47. #
    48. #New Values:
    49. dev_mount sdcard /mnt/sdcard/_ExternalSD auto /devices/platform/msm_sdcc.2/mmc_host/mmc1
    50. dev_mount extsdcard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host/mmc3
    51. #
    52. #[STAR eMMC migration]
    53.  
    once that's done,
    reboot your phone. Now the partitions are backwards :) internal is the real sd and external is your internal memory. You can now format them both if you want, connect back to your pc and copy the MERGED folder into the INTERNAL memory on your phone so all data is nice and merged in one place :D
    p-bOt likes this.
  18. kanaida

    kanaida Well-Known Member

    Hmm looks like usb mode doesn't mount the drives correctly, they just make the drive letters but no drive mounted. That's workable for me though. I just use samba to do my dirty work over the network :) didn't ever use usb really anyways when windows shares are so much more convenient. It may have to do with the entries in init.rc but those are kind of a pain to play with, think you gotta flash a zip to modify those.
  19. p-bOt

    p-bOt Well-Known Member

    There is also an app on the market called "airdroid" that allows you to wirelessly transfer files as long as your PC and phone are connected to the same wifi network...it works great and is unbelieveably free :)
  20. kanaida

    kanaida Well-Known Member

    I got airdroid too, but samba actually lets you use the phone identically to as usb storage mode so it's convenient for this purpose.

    just click start, type \\YourPhone'sIP and you're good to go :)
  21. p-bOt

    p-bOt Well-Known Member

    Nice...I'll look into it...does it allow you to reply to text messages from your PC as well? That's my main use for air Droid lol
  22. kanaida

    kanaida Well-Known Member

    lol... it's totally different. it makes your phone pretend to be a windows computer on the same network and shares out your sdcard as if it was a regular folder.

    Airdroid is just a web interface for your phone to do stuff, it's all web browser stuff. A remote control pretty much.
  23. kanaida

    kanaida Well-Known Member

    UPDATE: DO NOT TRY THIS.
    I'm not sure if it's because i tried formatting the internal sd after this (because I was able to reboot and copy stuff ok), but my phone sat there charging for a while, and I just saw a red led, but couldn't turn the screen back on, so I held the power button and nothing. Then I took the battery out and put it back in, nothing turns on at all, no LG logo, vibration... nothing. Tried another battery, same thing. Even though I don't think it makes sense or that it's related, I suggest NOT trying it to be on the safe side. I think it just died on it's own, I will see tommorow if I can exchange it for the other new dual core LG. I know it doesn't have hdmi but I don't use it so this might be goodbye guys as I won't have an esteem anymore.
  24. p-bOt

    p-bOt Well-Known Member

    holy crap...this has happened to alot of people...well in any case let us know if you actually get the connect or not lol...sorry about your phone though :(
  25. rickyyo2

    rickyyo2 Well-Known Member

    Hey guys, i know there are some smart people out there but i need help. Okay, so i updated to zvd and tryed this method. it all worked, however just wouldn't stop media scanning. After all that, i just deleted the vold and did a hard reset....now its saying i have no sd card! :( i know there's gotta be a way to fix it, but its hard to even download anything because it says i have no sd card. Any ideas? This has,happened before, but i just reflashed my ROM and it fixed itself. What should i do?!? Please h
    elp!

Share This Page