1. Are you ready for the Galaxy S20? Here is everything we know so far!

[GUIDE] Mounting Your Real SDcard to /mnt/sdcard (v2 for LG Motion 4G)

Discussion in 'Android Devices' started by Sepero, Dec 20, 2012.

  1. Sepero

    Sepero Linux Guru
    Thread Starter

    This guide is for moving your REAL sdcard to the location /mnt/sdcard (as GOD INTENDED ;))

    This is VERSION 2 of this guide, using a new method. This method allows for the sdcard to be relocated earlier in the boot process, thereby avoiding many glitches that occur due to late binding. The original guide is here-
    http://androidforums.com/motion-4g-...g-mnt-sdcard-external_sd-back-mnt-sdcard.html.


    REASON:
    I prefer to have all possible files stored on the sdcard, as it is a much safer form of storage. If your device is smashed, burned, or gets wet, the OS won't boot- all internal files are lost. Period. (suck it, iFruit users) If your files are on sdcard, just pull sdcard out and put it in another device. Bingo, fully recovered! Also, it leaves a huge internal storage alone for installing as many apps as you want.


    WARNING:
    Your device must be rooted. If you are using the Directory Bind app to do a similar thing, then you should turn it off. This fully replaces binding multiple directories to the sdcard.


    INSTALL:
    You will need to have BootBuddy installed for boot scripts to run on your device. It can be installed from here: BootBuddy

    After you have Boot Buddy, download the file 50new_remount_sd into your boot_buddy_scripts folder. Then reboot your phone.

    To uninstall it, just remove the 50new_remount_sd file from your boot_buddy_scripts folder.


    VERIFYING IT WORKS:
    The result will show your phones internal files located at /mnt/sdcard/internal_fs/.
    Code (Text):
    1. internal before /mnt/sdcard/
    2. external before /mnt/sdcard/external_sd/
    3.  
    4. internal after /mnt/sdcard/
    5. external after /mnt/sdcard/internal_fs/
    Your former internal location (/mnt/sdcard) will be at the new location /mnt/sdcard/internal_fs. Finish by moving any (all) files and directories from inside /mnt/sdcard/internal_fs/* to your /mnt/sdcard/.


    GLITCHES:
    (Please comment if you discover any glitches not listed.)
    These glitches are a result of using this script-

    • You CANNOT safely unmount your sdcard. To remove it safely, you must turn off your device. Otherwise you risk damaging any files that have been created or changed since you last booted.
    • Files will show twice in apps that automatically search your storage (like mp3 players, or picture viewers).
     

    Advertisement

  2. sammyz

    sammyz LG Whiz Kid

    Thread stickied. Nice work Sepero! :thumb:
     
    Rampage1, Sepero and adanmex like this.
  3. Krlypumaa

    Krlypumaa Android Expert

    Nice wrk.. I did it.. Safe wrk
     
    Sepero and adanmex like this.
  4. Can someone make a video of this...I want to do it correctly and make sure that at the end app2sd is functional on your phone I'm a visual learner as well
     
  5. pl4life52

    pl4life52 Android Enthusiast

    Your the man, thank you!
     
    Sepero likes this.
  6. icyboyice

    icyboyice Well-Known Member

    Great work,Do you know by any chance if this will work on a galaxy tab 2 , with similar file structure?
     
  7. Xieon

    Xieon Well-Known Member

    Some good work.

    I had a lot of different questions, and edited this a lot of times, but I think I have it down to this.

    Essentially what you did was just wrote a script that is the same as the app directory bind, and you set it to bind the directories specifically for the metro lg 4g and set it so everything should be on your SD card.

    All that really is doing, however, is creating a mirror isn't is? If I go to /sdcard and delete a picture, that picture a /mnt/sdcard will be deleted. So how can you copy you're files all over to your SD card?

    I try to copy all my internal files to the /mnt/sdcard/interal but that's just a mirror directory that doesn't really exist, so how do I go about doing this?

    I have confirmed that the scripts have worked, and deleting something in one section, will delete it in the other. There only appears to be two files, but it's just mirroring them. So how exactly all the files, when they are already in their correct location? Coping will make it easier to navigate, but it's still just a mirror?
     
  8. sammyz

    sammyz LG Whiz Kid

    Running those 2 other scripts helps get rid of some glitches that are in version one of the script.

    I was mistaken. :eek:
     
  9. Sepero

    Sepero Linux Guru
    Thread Starter

    You're correct. All you need is to have Boot Buddy installed. The other scripts on the Boot Buddy guide aren't necessary for this guide. (sammyz!!! :eek:)

    For someone that doesn't understand what's happening in the script, your description is very close to what is happening. So yeah, pretty much.

    You're sdcard is at /mnt/sdcard
    You're internal storage is now located at /mnt/sdcard/interal_fs
    Copy files from inside /mnt/sdcard/interal_fs to /mnt/sdcard

    The location /mnt/sdcard/external_sd is a mirror of /mnt/sdcard

    (/sdcard is a mirror of /mnt/sdcard also, but that was always that way and not affected by this script)
     
    Xieon likes this.
  10. Sepero

    Sepero Linux Guru
    Thread Starter

    I've updated the guide to reflect that App2SD and Links2SD have been tested and do not work. They do not seem to work, even though the sdcard has been moved to the location /mnt/sdcard. If anyone finds a way to get these working please let us know.

    Hopefully the 5GB internal storage will be enough for your apps until we can find a solution.
     
  11. Xieon

    Xieon Well-Known Member

    I understand a bit, I know some java, c++, VB, HTML, perl, python, etc. Dual boot with windows, and linux. I only got my first android this summer, on my second now, and just haven't got up with all the tools, and lingo and everything otherwise I'd be helping people get stuff done.
     
  12. Sepero

    Sepero Linux Guru
    Thread Starter

    I <3 Python

    You can do a some cool stuff with SL4A my friend. I'd say the downfall of most independent developers is non-ergonomic user interface. If you (or anyone reading this) are ever interested in some development tips or advice, don't hesitate to message or email me :smokingsomb:
    sepero 111 @ gmail . com
     
  13. pl4life52

    pl4life52 Android Enthusiast

    I did this and its good because I can kinda put more on "internal" but it sucks because i have 5gbs of movies but its really 10gb any way of fixing it
     
  14. I get a syntax error can you help me out
     
  15. sammyz

    sammyz LG Whiz Kid

    Thread unstuck, replaced by what can be flashed in recovery. There's nothing wrong with this guide.

    Sorry for any inconveniences.
     
  16. Potentially work on an optimus m?
     
  17. sammyz

    sammyz LG Whiz Kid

    No. Optimus m has no internal "sd card" like what the motion has.
     
    Sepero likes this.
  18. Sepero

    Sepero Linux Guru
    Thread Starter

    If the Optimus m has no internal "sd card", then sammyz is absolutely right. But if that's the case, then shouldn't the sdcard already be mounted in the correct place?
     
  19. sammyz

    sammyz LG Whiz Kid

    He means so that the default location for apps is the sd card instead of the optimus m's /data memory.
     
  20. HarunATL

    HarunATL Newbie

    Now that the sdcard is where it always should have been how can we install apps to sdcard. Seeing as all the app2sd apps thimk we dont exist???
     
  21. MotoTriumphant

    MotoTriumphant Android Enthusiast

    Am I supposed to see the the"internal_fs" folder cause I'm not seeing it in /mnt/sdcard.

    Edit: ok nvm I didn't read ur first thread

    Ok now how can I move apps to sd?
     
  22. Sepero

    Sepero Linux Guru
    Thread Starter

    I don't know that Apps2SD can be done. I used to have it in the OP, but upon further testing, it doesn't seem to work. It may require a second partition on the SDcard? I don't know?

    If anyone uses App2SD or Links2SD, let us know how it's done. Currently, the device appears to just report insufficient space no matter what.

    EDIT:
    After moving folders from /mnt/sdcard/internal_fs to /mnt/sdcard, you will have more space on your phone internal storage for apps.
     
  23. pl4life52

    pl4life52 Android Enthusiast

    what about duplicate videos and music
     
  24. Sepero

    Sepero Linux Guru
    Thread Starter

    This is listed under Glitches in the first post. It is necessary so that all Apps retain access to any files they store on the sdcard. The duplicate files located at /mnt/sdcard/external_sd are actually just a mirror of your sdcard, so they do not take any extra space on your sdcard.

    As discussed in the previous thread, if a person is sufficiently skilled enough, they can eliminate this problem by removing the last line of the remountsd.sh script. Though, doing this may introduce other unidentified problems.
     
  25. Xieon

    Xieon Well-Known Member

    Ok, so I still cannot get this to work corrrectly.

    I have the boot buddy installed, and the 50 script inside that folder. I've ran the file manually as well and the directories are in fact created. I still get insufficent memory when trying to install new apps, and it takes about 10 minutes for it to scan my internal memory, and then my sd card.


    So I've got /mnt/sdcard and I copied all the files from /mnt/sdcard/internal_fs to /mnt/sdcard/

    /sdcard/ should just be a mirror of /mnt/sdcard/ and likewise /sdcard/externalsd should be a mirror of /mnt/sdcard/externalsd.

    I just set up everything again, and am in the process of copying all of the internal_fs files to the /mnt/sdcard/
     

LG Motion 4G Forum

The LG Motion 4G release date was August 2012. Features and Specs include a 3.5" inch screen, 5MP camera, 1GB RAM, Snapdragon S4 Plus processor, and 1700mAh battery.

August 2012
Release Date
0
Reviews
Loading...
Similar Threads - GUIDE Mounting Real
  1. tnprabhuar
    Replies:
    1
    Views:
    60
  2. Samsung
    Replies:
    1
    Views:
    661
  3. Rob
    Replies:
    7
    Views:
    1,522
  4. Cyberdev
    Replies:
    4
    Views:
    519
  5. Rob
    Replies:
    7
    Views:
    35,755
  6. dontpanicbobby
    Replies:
    8
    Views:
    302
  7. dontpanicbobby
    Replies:
    4
    Views:
    557
  8. Cyberdev
    Replies:
    0
    Views:
    324
  9. hsnchk
    Replies:
    3
    Views:
    435
  10. aio developers
    Replies:
    2
    Views:
    2,702
Tags:

Share This Page

Loading...