This is a simple mod to make the external SDcard mount as the primary/internal (/sdcard)
and the internal is mounted as the secondary (/sdcard-ext)
This should work on most (all?) roms but is only tested on MIUIv4 with a GSM RAZR
Just flash the switchSD.zip
To revert the effect, flash reswitchSD.zip
Requested by lukas77 external sd mounted in folder of internal (/sdcard/sdcard-ext)
Some problems though, after each boot you will have to remove and insert SD for it to mounts.
It is safe to remove SD because it isn't mounted but it's a bit of a hazzle.
Flash SDinFolder.zip to revert, just flash reswitchSD.zip as above.
make shore before flashing that you don't have any file or folder named sdcard-ext on internal sdcard.
EDIT:
I have been away for a while and came back to a thread full of pproblems and a bunch of PMs.
Unfortuneatly I don't have time to ivestigate the problems or fix for newer builds.
My recomendations for everyone is: Do Not Use It unless you'r realy know what your doing and can fix it for your build.
work perfect eclipce 1.3 via GSM
Sent from my XT910 using Tapatalk
what is the advantage of doing this?
therazrguy said:
what is the advantage of doing this?
Click to expand...
Click to collapse
Some apps doesn't support external SD (Very noticeable on MIUI as music can't find music on external and file explorer only browses internal).
Some people (me) prefer a storage that is easily movable.
If you always have a larger SD inserted you'll probably find yourself a bit limited with the original mounting options.
pajn said:
Some apps doesn't support external SD (Very noticeable on MIUI as music can't find music on external and file explorer only browses internal).
Some people (me) prefer a storage that is easily movable.
If you always have a larger SD inserted you'll probably find yourself a bit limited with the original mounting options.
Click to expand...
Click to collapse
Can this be done without damaging currently installed programs?
And what does this do? Symbolic links?
sletta said:
Can this be done without damaging currently installed programs?
And what does this do? Symbolic links?
Click to expand...
Click to collapse
If you have programs (or games, mostly games) that is installed on your internal SD they will break. I guess games that download extra data to SD just will have to download it again though...
The good thing is that you can test and then just flash reswitchSD.zip if it didn't work.
This tells vold (the program responsible for mounting the storages) to mount external on /mnt/sdcard and internal on /mnt/sdcard-ext instead of the reverse.
No links.
pajn said:
If you have programs (or games, mostly games) that is installed on your internal SD they will break. I guess games that download extra data to SD just will have to download it again though...
The good thing is that you can test and then just flash reswitchSD.zip if it didn't work.
This tells vold (the program responsible for mounting the storages) to mount external on /mnt/sdcard and internal on /mnt/sdcard-ext instead of the reverse.
No links.
Click to expand...
Click to collapse
Works great! Thanks!
it this just a edited vold.fstab file? or is there more to it?
Boomer187um said:
it this just a edited vold.fstab file? or is there more to it?
Click to expand...
Click to collapse
Just vold.fstab. That is all that is needed
Will we need to reflash this after flashing any roms or are we all set until we undo it manually?
qoncept said:
Will we need to reflash this after flashing any roms or are we all set until we undo it manually?
Click to expand...
Click to collapse
You will for a ROM that erases the whole system partition but won't for a patch. But it doesn't seem like there are that many ROMs that provides patches so you probably will.
can we mount external sdcard as folder inside /sdcard/? (phone memory)
Wysłane z mojego XT910 za pomocą Tapatalk
lukas77 said:
can we mount external sdcard as folder inside /sdcard/? (phone memory)
Wysłane z mojego XT910 za pomocą Tapatalk
Click to expand...
Click to collapse
Great idea! However my testing found out that it wasn't the easiest thing to do as vold will try to mount the external SD before the internal is mounted and the folder present.
It works but after every boot you will have to remove SD (safe as it isn't mounted) and reinsert it. May work better on other ROMs (did some Googeling and found that CM7 on O2X did have problem while stock didn't whit exactly the same thing)
Adding to first post now!
Would it be possible to mount SD as an expansion of your internal? i.e., treating them as the same memory unity?
Haloman800 said:
Would it be possible to mount SD as an expansion of your internal? i.e., treating them as the same memory unity?
Click to expand...
Click to collapse
No, if so we would have to raid them but I have never heard of some raid utilities built for Android.
Even if it's theoretically possible to build the Linux utilities for ARM and run them on Android it would probably be loads of work and customization for each ROM as Android have very bad possibilities of running scripts at boot.
Anyone tried this on stock 2.3.6 ROM?
Szadzik said:
Anyone tried this on stock 2.3.6 ROM?
Click to expand...
Click to collapse
Not tried but should work.
Szadzik said:
Anyone tried this on stock 2.3.6 ROM?
Click to expand...
Click to collapse
I have it working on stock 2.3.6.
pajn said:
Just vold.fstab. That is all that is needed
Click to expand...
Click to collapse
Hey would it be possible for you to edit this vold from a epic 4g touch so i can do this on my phone? Heres the link to my vold file if you can thanks... http://db.tt/2E1QAqVe
iUseJuGGZz said:
Hey would it be possible for you to edit this vold from a epic 4g touch so i can do this on my phone? Heres the link to my vold file if you can thanks... http://db.tt/2E1QAqVe
Click to expand...
Click to collapse
It's actually really simple.
Ofc. this isn't tested so if it doesn't work just let me know.
If you want to push it manually just extract the vold.fstab from the zip.
Related
Hey everyone, i prefer stuff saved on my external sd and im to lazy to keep editing apps to save to /sdcard2 (if they even let you!) instead of the usual /sdcard, so i made a zip to flash in recovery that swaps mount points. internal mounts at /mnt/sdcard/ext_sd and external is at /mnt/sdcard.
enjoy this guys! it took me like a day solid to figure out how to swap it and then learn how to make a flashable zip be nice to me i had never done this before yesterday/part of today
This has been tested on Ineffabilis (gb version) with dsb OC kernel. should work on any GB rezound rom, and unless something changed that i didnt notice it should work on ICS roms. ill edit this as soon as i check, but it will be tomorrow night before i get a chance
flash SwtichMount.zip to switch
flash RestoreMount.zip to restore to original settings
theoretically this should work on some other phones, shoot me a pm with your phone model and any rom for it (or even better the vold.fstab file in
/system/etc) and i can tell you if it should work/edit it to work for you!
Changelog:
v2.1: adds support for some roms
I have done this as well by editing the vold.fstab file and rebooting. The only problem I had was that after making the change I was unable to mount the internal storage as USB drive. The SDcard mounted fine however. So what I have been doing is copying over the original file that I saved on the SDcard if I needed to copy files over to the internal.
Does your method allow for the internal storage to be mounted as a USB drive?
yea it shows up, it seems to take an extra minute or 2.
i had a different way to do it that mounted internal on /mnt/sdcard2 but it had to do with editing ramdisk and was a pain in the a$$
So the internal ram is mounted as sdcard/ext_sd? Is there any way around this? Does the name ext_sd have some significance? I mean you have a mnt/sdcard which is sdcard dir and mnt/sdcard/sd_ext which is sdcard2 dir. Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
maniac2k said:
Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
Click to expand...
Click to collapse
+1!
10char
maniac2k said:
So the internal ram is mounted as sdcard/ext_sd? Is there any way around this? Does the name ext_sd have some significance? I mean you have a mnt/sdcard which is sdcard dir and mnt/sdcard/sd_ext which is sdcard2 dir. Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
Click to expand...
Click to collapse
If you go to the root directory of the phone you will see sdcard and sdcard2. sdcard2 is the exact same folder as mnt/sdcard/sd_ext. The folder mnt/sdcard/sd_ext is basically like having a shortcut to that sdcard2.
---------- Post added at 04:32 PM ---------- Previous post was at 04:29 PM ----------
By the way pwnwolf117.... I flashed your zip and the changes did not stick. I still had to use my method of copying over an edited vold.fstab file that I created to the /etc folder. I am running BAMF gingerbread ROM.
I understand that and explained that in my original post so I wouldn't get an answer like yours. Please reread my previous post again. My point is, why should internal ram (in this case, ext_sd which isn't external sd) be mounted inside the sdcard folder?
maniac2k said:
.Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
Click to expand...
Click to collapse
I'm working on getting that but I need yo figure out a script that will create /mnt/Sdcard2 on bootup. I know where to put the script but something isn't mounting properly. I'll try to finish it tonight but since I originally posted I've been taking midterm exams or at robotics practice or a competition which im on my way home from now (8pm here) and I left at 5am so I'm exhausted but I'll see what I can throw together. if anybody understands how to add a script to /etc/init.d/ please pm me or reply! and so you all realize this is my first Android phone EVER which I've had for obit a couple months as well as I have no programming experience. so this was a personal project that I released for those who want to try it.
Sent from my sexy otterboxed ADR6425LVW using Tapatalk
maniac2k said:
I understand that and explained that in my original post so I wouldn't get an answer like yours. Please reread my previous post again. My point is, why should internal ram (in this case, ext_sd which isn't external sd) be mounted inside the sdcard folder?
Click to expand...
Click to collapse
because that was the one place I KNOW it will mount on the system correctly, but also will mount as USB correctly. /mnt/Sdcard/ext_sd is the default mount point for the external so I just swapped the internal and external mount points
Sent from my sexy otterboxed ADR6425LVW using Tapatalk
maniac2k said:
.Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
Click to expand...
Click to collapse
I'm working on getting that but I need yo figure out a script that will create /mnt/Sdcard2 on bootup. I know where to put the script but something isn't mounting properly. I'll try to finish it tonight but since I originally posted I've been taking midterm exams or at robotics practice or a competition which im on my way home from now (8pm here) and I left at 5am so I'm exhausted but I'll see what I can throw together. if anybody understands how to add a script to /etc/init.d/ please pm me or reply! and so you all realize this is my first Android phone EVER which I've had for obit a couple months as well as I have no programming experience. so this was a personal project that I released for those who want to try it.
maniac2k said:
I understand that and explained that in my original post so I wouldn't get an answer like yours. Please reread my previous post again. My point is, why should internal ram (in this case, ext_sd which isn't external sd) be mounted inside the sdcard folder?
Click to expand...
Click to collapse
because that was the one place I KNOW it will mount on the system correctly, but also will mount as USB correctly. /mnt/Sdcard/ext_sd is the default mount point for the external so I just swapped the internal and external mount points
mrcrusha829 said:
the way pwnwolf117.... I flashed your zip and the changes did not stick. I still had to use my method of copying over an edited vold.fstab file that I created to the /etc folder. I am running BAMF gingerbread ROM.
Click to expand...
Click to collapse
hmm im wondering if its a permissions thing, im dling BAMF gb and ill install it and see what i can do as soon as i have a chance!
maniac2k said:
I understand that and explained that in my original post so I wouldn't get an answer like yours. Please reread my previous post again. My point is, why should internal ram (in this case, ext_sd which isn't external sd) be mounted inside the sdcard folder?
Click to expand...
Click to collapse
I am not tying to be rude but what does it matter. You can get to SDcard2 from both points... it isn't taking up space on the SDcard.
installed bamf cubed rezound 1.0.1 and got it to work. heres the zip
mrcrusha829 said:
I am not tying to be rude but what does it matter. You can get to SDcard2 from both points... it isn't taking up space on the SDcard.
Click to expand...
Click to collapse
Yeah i know it just doesn't make sense to have it this way. No big deal i guess but if someone could fix it, it would be nice. I also wonder if this mod will mess up recovery wipes.
maniac2k said:
Yeah i know it just doesn't make sense to have it this way. No big deal i guess but if someone could fix it, it would be nice. I also wonder if this mod will mess up recovery wipes.
Click to expand...
Click to collapse
im in process of making that work, might be a couple days before i get it all working
Is it possible to use the sd card with fspe? Because when I try to load an iso I can't find it.
And if not what the hell am I supposed to do? Put my psx roms on my internal memory what a joke.
What's the point of a quad phone if it doesn't have enough storage to hold the big bad ass games it should be running.
I am now getting put off games because they require large downloads and that shouldn't be the case.
Is this something I could fix with a custom Rom?
Sent from my GT-I9300
First off - that's an app-related issues. Many developers seem to think the location of the external SD is universally the same just because their phone(s) have it that way. Many phones use /mnt/<FOLDER> for external SD and not the old cumbersome format (/mnt)/sdcard/external_sd
If you're rooted, it's easy to solve, just use the free APK "Directory Bind".
For it to work, create a folder named 'external_sd' on your internal SDcard, then bind-mount the /mnt/extSdCard on /mnt/sdcard/external_sd.
Thanks for your quick reply.
If I understand what your saying, will that make my external sd show up as a folder on my internal sd?
If so can I then install games and apps on my external sd?
Sorry I'm pretty dense lol
Sent from my GT-I9300
-josh- said:
Thanks for your quick reply.
If I understand what your saying, will that make my external sd show up as a folder on my internal sd?
If so can I then install games and apps on my external sd?
Sorry I'm pretty dense lol
Sent from my GT-I9300
Click to expand...
Click to collapse
Just keep pressing up until you see a list of USB drives and select extSdCard and click on there to find your Roms.
will that make my external sd show up as a folder on my internal sd?
Click to expand...
Click to collapse
Yes.
Just keep pressing up until you see a list of USB drives and select extSdCard and click on there to find your Roms.
Click to expand...
Click to collapse
I assumed the app wouldn't let him go higher up than /mnt/sdcard. Some do that which is quite stupid.
Maybe if he's running an older version but the last few versions at least can find external and any USB drive.
Well I only bought it yesterday off Google play so I am assuming I got the newest version. And no it doesn't let me go any higher.
I'm gonna check out what version it is.
Edit: version 0.11.29 and when I search for bios or iso it does start at system but only shows the internal sd card not the external one
Edit 2: yeah it's in the mnt folders lol, I was tired at the time
Sent from my GT-I9300
So, I just updated to CM10.1 (Deck's 4-6-13 Build) over the weekend. This may apply to any AOSP ROM though. I was coming from a Sense ROM previously so the external SD card was "mounted" or symlinked(?) to /sdcard/ext_sd/
Now it appears that directory is empty and I have to navigate to /mnt/external_sd to get at those files. This usually isn't a problem except for some applications that don't want to let me navigate away from the /sdcard directory.
Hopefully this isn't too much of a newb question for you folks.
Thanks in advance!
I use this on my tablet, should work on the phone
http://forum.xda-developers.com/showthread.php?t=1410262
detcup4evr said:
I use this on my tablet, should work on the phone
http://forum.xda-developers.com/showthread.php?t=1410262
Click to expand...
Click to collapse
That looks to be exactly what I need. Would be nice if this just came built into CM10.1, but hey beggars can't be choosers. Many thanks for the post!
So, I make apps for android, and if anyone is familiar with it, the proper way to write to the storage is using Evironment.getExternalStorageDirectory(); this will return with the internal sd card location on devices with internal sd card.
Well, i decompiled the system files and found the method that is "getExternalStorageDirectory" and found how it creates it.
So, i can change it to return with the path to the ACTUAL external sd card. This means that every app that uses getExternalStorageDirectory will place EVERYTHING onto the actual EXTERNAL sd card. Thus freeing up the internal sd card AND the data partition allowing for more apps to be installed.
What are your guy's thoughts about this? I feel like it might work. However, if one doesn't have an external sd card, things could go very hay wire.
Yep, it will work for apps relying to this function.
There is such mod for Xperia Z for quite some time. You can look to that mod to simplify modding process
Be great to have looking for a switch mount script like I had on S2 and S3.
Sent from my SGH-M919 using Tapatalk 2
Miami8906 said:
Be great to have looking for a switch mount script like I had on S2 and S3.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
This isnt a script. This is a smali edit which is a lot better. I don't like scripts
elesbb said:
This isnt a script. This is a smali edit which is a lot better. I don't like scripts
Click to expand...
Click to collapse
Cool is it available yet or are you still working on it?
What path are you using to designate the external sdcard or how are you determining it?
The Thanks button is just to avoid "THANKS" posts in threads. Nothing more. Don't defeat the purpose of why it was introduced.
CNexus said:
What path are you using to designate the external sdcard or how are you determining it?
The Thanks button is just to avoid "THANKS" posts in threads. Nothing more. Don't defeat the purpose of why it was introduced.
Click to expand...
Click to collapse
The mount point for the external sd card is /mnt/extSdCard
And there is another method that I can use to test for if it's mounted or not, and if it's not mounted, then revert to internal sd card. I'm hoping it works lol. Still haven't had time to mess with it though.
Sent from my SGH-M919 using Tapatalk 2
My Internal SD card has broken,and all swapping solutions are not work in android 4.4
obenzorro said:
My Internal SD card has broken,and all swapping solutions are not work in android 4.4
Click to expand...
Click to collapse
Have you tried formatting it to restore it first? It will delete everything on there, but will keep you an SD card
wkenworthy10 said:
Have you tried formatting it to restore it first? It will delete everything on there, but will keep you an SD card
Click to expand...
Click to collapse
I tried to formatting internal SD card in recovery mode,but it can't be mounted.
obenzorro said:
I tried to formatting internal SD card in recovery mode,but it can't be mounted.
Click to expand...
Click to collapse
There is hope. I can link all the files to you later because I'm busy now, but I can tell you the way. I'm assuming you already have Odin and all the stock .pda and .tar files. So first flash the .pit and .tar and then flash the .pit and a file called dbdata which should be everywhere if you look for it. The dbdata file should mount your system and fix that problem. Also make sure you have re-format checked. If I remember right just playing around with those helped me with the same problem. I think the dbdata didn't work the first few tries then I tried something else and it worked
Click to expand...
Click to collapse
Someone in another thread had close to the same problem, this method might wipe your sd, it might not I can't remember, but I don't think it should.
Here is where you can find all the stock files
Here is the dbdata file
EDIT: You should probably also know this will put you one pure-unrooted-straight from the factory-stock.
Did you solve your problem? Share it!!
wkenworthy10 said:
Someone in another thread had close to the same problem, this method might wipe your sd, it might not I can't remember, but I don't think it should.
Here is where you can find all the stock files
Here is the dbdata file
EDIT: You should probably also know this will put you one pure-unrooted-straight from the factory-stock.
Click to expand...
Click to collapse
I tried to flash JFD & dbdata.rfs(use odin3) without external SD card,it doesn't work.When it restart ,there is a error: Can't mount /dev/block/mmcblk0p1
I think my Internal SD card has broken,so the only way is swapping external and internal SD card. Now the question is i don't konw how to swap them in Android 4.4,all the old ways have failed.
In android 2.3~4.2 ,I swap them by edit /system/etc/vold.fstab
In android 4.3,vold.fstab has gone,I swap them by edit /system/build.prop
But in android 4.4, it also doesn't work
obenzorro said:
In android 2.3~4.2 ,I swap them by edit /system/etc/vold.fstab
In android 4.3,vold.fstab has gone,I swap them by edit /system/build.prop
But in android 4.4, it also doesn't work
Click to expand...
Click to collapse
can you point me to how you did the swap for 4.3. Thanks in advance!