• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

Sepero

Linux Guru
Aug 26, 2010
963
594
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:
internal before /mnt/sdcard/
external before /mnt/sdcard/external_sd/

internal after /mnt/sdcard/
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).
 
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?
 
Upvote 0
Nice work.

I'm assuming that you just need the one script you put in this thread, and not the two scripts from the other thread?

Can someone verify that it worked liked that? I'm going to go ahead, and delete those two scripts, and give it a shot right now. Restarting.....

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

I was mistaken. :eek:
 
Upvote 0
I'm assuming that you just need the one script you put in this thread, and not the two scripts from the other thread?
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:)

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

So how can you copy you're files all over to your SD card?
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)
 
  • Like
Reactions: Xieon
Upvote 0
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.
 
Upvote 0
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.
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.
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
Rodger That.
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)
 
Upvote 0
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
 
Upvote 0
Ok now how can I move apps to sd?
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.
 
Upvote 0
what about duplicate videos and music
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.
 
Upvote 0
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/
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones