[MOD] Swap Internal SD and External SD - T-Mobile LG G2x

Hey everyone,
Found this mod for the Galaxy S (Or SGSII, not sure what the i9003 is), which switches the Internal and External SD cards, according to the Android OS. Personally, I have a lot more space of my external SD and would like games and such to store their data there, instead of on my smaller internal SD. Some apps like Titanium backup can change their data locations, but Games such as Gameloft games and the like cant have their game data moved to the External SD card atm.
This looks like a great alternative to this issue, could this hack be adapted to the G2x?
http://forum.xda-developers.com/showthread.php?t=1088474

Although I could see how you would think this would be in development, this post should actually go in Q&A.
That being said, this would be a very useful modification.
Edit: My apologies. Apparently you posted in precisely the right forum. My apprehension arose from the fact that so many people say 'BUT WHAT ABOUT THIS MODDD??!?!' and it just clutters things up so my immediate reaction was to motion to have it moved. Good deal bringing it to Krylon and Tweezit's attention

I couldnt decide between Q&A and Development for this topic, as it involves porting or adapting a hack for another phone to the G2x.
MODS: Please move this to Q&A, if necessary.
EDIT: Apparently not, this seems to be a development topic now

Here is a file Be warned I have not tested this. If it messes your phone up I am not held responsible. **Personally I would let another dev look at this to be on the safe side as I am not 100% sure on this.**
You will have to extract it and use root explorer to push to /system/etc/
Oh I needed to clarify this was on 2.2.2 so it may differ on 2.3.

Since we have a little interest, we'll leave it for a day or so and see if anything comes of it.
I've PM'd krylon to take a look at Tweezit's vold. (sounds like a nasty STD).

overground said:
Since we have a little interest, we'll leave it for a day or so and see if anything comes of it.
I've PM'd krylon to take a look at Tweezit's vold. (sounds like a nasty STD).
Click to expand...
Click to collapse
Smart move as I spent all of 2 minutes looking through the file as I am in a rush to leave
Later guys ^^

I'm looking at this now. Your biggest issue is you are going to have to have 3 different versions... well... in reality 2 different versions. CM based and Non-CM Based.
And if someone flashes the wrong one...they are hosed and will have to restore from a backup

ok, after reviewing Tweezits vold, Bionix vold, and CM7 vold, tweezit's would break mounting.
The reason being, with the introduction of Tegra, the vold changed for it.
I'll have to do some testing, but making the internal to external switch should be fairly easy.

krylon360 said:
I'm looking at this now. Your biggest issue is you are going to have to have 3 different versions... well... in reality 2 different versions. CM based and Non-CM Based.
And if someone flashes the wrong one...they are hosed and will have to restore from a backup
Click to expand...
Click to collapse
Eh not bad in my eyes I always do backups
Sent from my LG-P999 using Tapatalk

krylon360 said:
ok, after reviewing Tweezits vold, Bionix vold, and CM7 vold, tweezit's would break mounting.
The reason being, with the introduction of Tegra, the vold changed for it.
I'll have to do some testing, but making the internal to external switch should be fairly easy.
Click to expand...
Click to collapse
Is there a way to have setting like a switch to interchange between the two
Sent from my LG-P999 using Tapatalk

Suprah said:
Eh not bad in my eyes I always do backups
Sent from my LG-P999 using Tapatalk
Click to expand...
Click to collapse
last time I did a backup was when I was testing EXT4/3 restore.

Lol I'm a rom crack addicr
Sent from my LG-P999 using Tapatalk

We need to decide on a standard. Unfortunately some people don't have SD cards but I'm sure most people would that visit here.
I'm for the switch cause i hate crap installing to my internal drive. Cm already made the switch.

player911 said:
We need to decide on a standard. Unfortunately some people don't have SD cards but I'm sure most people would that visit here.
I'm for the switch cause i hate crap installing to my internal drive. Cm already made the switch.
Click to expand...
Click to collapse
I'm with you. Maybe we should put together a poll or something...

Multiple versions just confuse the new guys. Would be nice if there was some priority... Like use SD as first choice then fall back on internal if SD is not present.
That still complicates things as people wont know what's going on.
****best idea****
If CWM flips it by default then you can just streamline everything and make a public service announcement on the CWM download page that they will be flipped and an SD is required for flashing. Makes sense to use a SD for flashing anyway.
Even a 2gb is plenty for some Roms and app storage. Save the internal for personal music and other media. I hope no one rocks less then that these days.
Plus if you use internal storage I can see certain scenarios popping up where they are boot looping and lost their access into the internal files. I can't mount using 3.1.0.1 external. If it werent for my SD I'd be stuck hardcore.

player911 said:
Multiple versions just confuse the new guys. Would be nice if there was some priority... Like use SD as first choice then fall back on internal if SD is not present.
That still complicates things as people wont know what's going on.
****best idea****
If CWM flips it by default then you can just streamline everything and make a public service announcement on the CWM download page that they will be flipped and an SD is required for flashing. Makes sense to use a SD for flashing anyway.
Even a 2gb is plenty for some Roms and app storage. Save the internal for personal music and other media. I hope no one rocks less then that these days.
Click to expand...
Click to collapse
I'm kind of with you on this one. I use all of my roms and such for the external SD card and everything else for internal.

player911 said:
Multiple versions just confuse the new guys. Would be nice if there was some priority... Like use SD as first choice then fall back on internal if SD is not present.
That still complicates things as people wont know what's going on.
****best idea****
If CWM flips it by default then you can just streamline everything and make a public service announcement on the CWM download page that they will be flipped and an SD is required for flashing. Makes sense to use a SD for flashing anyway.
Even a 2gb is plenty for some Roms and app storage. Save the internal for personal music and other media. I hope no one rocks less then that these days.
Plus if you use internal storage I can see certain scenarios popping up where they are boot looping and lost their access into the internal files. I can't mount using 3.1.0.1 external. If it werent for my SD I'd be stuck hardcore.
Click to expand...
Click to collapse
Good point however 5gb of internal space is not enough for me since I have 10gbs of music onmy sd card. I wish there was a way to have a switch function that will enable you to choose which sd crd to download to
Sent from my LG-P999 using Tapatalk

I've attached the CWM flashable .zip of the mod I've been running for awhile that will swap your SDcards. Never been able to get it to mount the external card as a folder inside /sdcard/. Didn't really want to release it until I did, but here ya go anyway
BTW, is it just me, or do init.d scripts not work in CM7?
This is for CyanogenMod only!
I don't have the volds from other builds on hand to mod them....

WOW! I come back from long day of work and find all this discussion.....awesome!! Thanks for chiming in guys. I def understand there will have to be at least 2 versions cause of CM, but as its a file, couldnt a simple app\script be created to swap it back and forth, after detecting CM or not? It may be a lil beyond my scripting knowledge, for the detection portion at least.
I see a ton of useful reasons for this switch, as the 5GB isnt the 13ishGB that the Galaxy S has and doesn't quite satisfy the requirements of a "primary" sdcard IMO. The 5GB would be useful as an "_InternalSD" folder bind\mount (whatever is being used), with the External SD as the main SD card. I'll list a few useful reasons why.....
Off the top of my head......
If your a serious gamer and you have a TON of games that have downloadable files put to the SD card, that 5GB will go quick (Gameloft I'm looking at you)
External SD can hold WAY more nandroid backups than Internal SD, and ROM Manager would recognize them (I acknowledge the external sd issue is not really an issue w/ the two ext4 recoveries)

hiko36 said:
Although I could see how you would think this would be in development, this post should actually go in Q&A.
That being said, this would be a very useful modification.
Click to expand...
Click to collapse
I humbly disagree.... If anything it would belong in the General or Development. It is a work towards development and there is no "question" being asked. Just because it isn't a ROM, doesn't make it any less important to work on the phone.
Just my .02

Related

[Q] Keep on my SD?

I just recently rooted my Inspire and have been trying out some different roms. My question is what do I need to keep on my SD card? There is a lot of stuff on it and it is almost full.
Easy keep what you want, pictures, music and your clockwork mod folder with your ROM back ups.
But first you said you been flashing a lot of roms, did you delete the downloads? Some roms are over 300 Meg.
Sent from my Desire HD using xda premium
Thats good to know. I have moved all my pictures and music to my PC. So I should just be able to remove everything from the SD card than, correct? I was a little worried about removing certain folders like the .android and other ones that sounded like system files. But I guess all the important ones are stored on the phone not the SD.
Also, thanks for letting me know about the rom sizes. Did not realize that they where so big. I have 6 different ones on there that I am trying out, to find the one I like.
digi-t said:
Thats good to know. I have moved all my pictures and music to my PC. So I should just be able to remove everything from the SD card than, correct? I was a little worried about removing certain folders like the .android and other ones that sounded like system files. But I guess all the important ones are stored on the phone not the SD.
Also, thanks for letting me know about the rom sizes. Did not realize that they where so big. I have 6 different ones on there that I am trying out, to find the one I like.
Click to expand...
Click to collapse
Yeah, I've made it a habit to delete items such as roms,rils,mods and the like off my SD card for space and for the fear I'll mess up and pick the wrong item and flash something I didn't want to. Also, while on the topic, if you do plan on flashing radios in the future always delete the radio PD98IMG off your sd card after you flash it. It will make dealing with bootloader if you softbrick a little easier. Just food for thought!
I only have a 2gb SD card right now and just finished doing a nandroid backup that is about 900mb. So that plus the stuff I already have the card has left me with only 94mb and I want to test the new MIUI rom.
Can I save the nandroid backup to my computer and if something goes wrong take out the sd card plug it in to the computer put the backup back on and restore it?
Or is there a way to reduce the size of the nandroid backup somehow?
Dude, how do you only have a 2 gig SD card? The inspire came with an 8 gig. I have a 32 gig, and it's almost half full. You should get at least an 8, they're pretty cheap.
See the thing is I got it from this guy on the street called satellite jack. Haha just kidding I accidentally messed up my 8gb reversing the cid number on my first time rooting my phone.
Anyway is there some way to solve my problem for right now (I plan on getting a 16gb later) but want to try out the MIUI rom.
P.S. How much was your 32gb SD card?
mudcat242000 said:
See the thing is I got it from this guy on the street called satellite jack. Haha just kidding I accidentally messed up my 8gb reversing the cid number on my first time rooting my phone.
Anyway is there some way to solve my problem for right now (I plan on getting a 16gb later) but want to try out the MIUI rom.
P.S. How much was your 32gb SD card?
Click to expand...
Click to collapse
Yes you can save the nandroid to your PC while you flash the new rom. Just make sure what ever size SD you get that you get a class 4 or better. I have heard and had issues with class 2 cards not wanting to work right like when flashing a radio
Ok thanks!
Why is the nandroid backup so big though? I mean I understand the system backup being 450+ mb because that's about how big the virtuous rom is. But why is my data backup 450+ mb as well. What does the data.ext4 backup?
mudcat242000 said:
Ok thanks!
Why is the nandroid backup so big though? I mean I understand the system backup being 450+ mb because that's about how big the virtuous rom is. But why is my data backup 450+ mb as well. What does the data.ext4 backup?
Click to expand...
Click to collapse
It is so big because it backs up all your apps and settings for the apps you have installed and the apps themselfs along with any and all needed resources for the apps. Not sure what the ext4 backup does other then allow back ups for a data partition that is formatted to ext4
I always delete backups after about a week of sticking with a ROM. It saves space and stops me from picking the wrong backup.
Sent from my HTC Inspire

[Q] How to use APP2SD in asus

hi there...
i am newbie here i want to ask to you, i have an asus slider but i think it has same system with transformer, but it cannot use app2sd, when i click the on sd card tab, it says "The device does not have a real primary external storage, or the external storage is emulated. Moving app to SD function may not be supported by this device"
i don't know how to repair it... please tell me if you know how to make it normal
thanks
Honeycomb doesn't support moving apps to the external sd card. LINK2SD however does allow a symbolic link to apps on an external card, which does look like you moved the app to external. The issue is that if you partition your sd card, you will probably have to reboot to see the second partition. I'm not sure, but you might have yo be rooted to use LINK2SD.
You cold try this
http://forum.xda-developers.com/showthread.php?p=21142499
Why would you want to use app2sd?
Sent from my HTC Desire using xda premium
App2sd
Wouldn't you want to use app2sd because you are running out of space on your internal card and you want to install more apps?
With most of the 16/32 GB available for apps i don't see a need.
i have to highly disagree i outgrew the 32 gb the day i got it ( to the op search there are scripts and such to do what you want its not just install and go and you need to be rooted i believe to do it).
if i install all the apps and games i use on a daily basis i would need 2 tf101's 32gb and the other stuff i use occasionally still would need a external hard drive to store extra stuff on to install when i needed it. and its always made me laugh when this gets ansewered like "theres 16 or 32 gb on the tf101 you dont need apps2sd on a tablet with honeycomb" or anything to that effect. especially considering the games today steadily climbing in size i have seen em with well over a gb installed for one game, and im sorry i dnt digg having to uninstall and install something just to play a different game.
for alot of people it may be plenty but i think people might want to refrain from assuming everyones needs are similar to yours. i and many others do need apps2sd or something similar and i couldnt do without it.
^^^Yeah I see your point.
neofreek01 said:
i have to highly disagree i outgrew the 32 gb the day i got it ( to the op search there are scripts and such to do what you want its not just install and go and you need to be rooted i believe to do it).
if i install all the apps and games i use on a daily basis i would need 2 tf101's 32gb and the other stuff i use occasionally still would need a external hard drive to store extra stuff on to install when i needed it. and its always made me laugh when this gets ansewered like "theres 16 or 32 gb on the tf101 you dont need apps2sd on a tablet with honeycomb" or anything to that effect. especially considering the games today steadily climbing in size i have seen em with well over a gb installed for one game, and im sorry i dnt digg having to uninstall and install something just to play a different game.
for alot of people it may be plenty but i think people might want to refrain from assuming everyones needs are similar to yours. i and many others do need apps2sd or something similar and i couldnt do without it.
Click to expand...
Click to collapse
+1
neofreek01 said:
i have to highly disagree i outgrew the 32 gb the day i got it ( to the op search there are scripts and such to do what you want its not just install and go and you need to be rooted i believe to do it).
if i install all the apps and games i use on a daily basis i would need 2 tf101's 32gb and the other stuff i use occasionally still would need a external hard drive to store extra stuff on to install when i needed it. and its always made me laugh when this gets ansewered like "theres 16 or 32 gb on the tf101 you dont need apps2sd on a tablet with honeycomb" or anything to that effect. especially considering the games today steadily climbing in size i have seen em with well over a gb installed for one game, and im sorry i dnt digg having to uninstall and install something just to play a different game.
for alot of people it may be plenty but i think people might want to refrain from assuming everyones needs are similar to yours. i and many others do need apps2sd or something similar and i couldnt do without it.
Click to expand...
Click to collapse
So, how many apps and games is that? Also...since you use them all on a daily basis...but need two 32GB devices, how do you do it?
SiNJiN76 said:
So, how many apps and games is that? Also...since you use them all on a daily basis...but need two 32GB devices, how do you do it?
Click to expand...
Click to collapse
im not sure i understand your question. i dnt use 2 different 32gb devices,basically just an example of the space requirements i would need.
32gb just isnt enough, and yeah its a bunch of apps i have 200+ apps backed up on titaniumbackup. i use my tf101as a tool as well as a toy and i guess pullin double duty requires some storage space
Need moaaar space too. :/
It's actually not too hard to run out of space while a lot of games nowadays take up to 3GB... Take some Music and some Movies to that and tada...
Also I'm using a lot of emulators and the Roms take theire space too. TF101 + Ps3 Controller + HDMI = FUN everywhere!
(Please don't start to tell people what to put on theire tablet and what not now. You are welcome NOT to use your tablets full potential!)
Anyway... any solutions? Got TF101 4.0.3 Revolver. Android Assistant says: "There are no apps to move blabla". I'm kinda sure there was a time, when I was able to move them. If I remember right, there actually was a "move to SD" button in the native Apps-Menu of Android.
I'm pretty sure that the only solution is to use link2sd along with the DirectoryBind app. You move the apps with link2sd and those huge 3G data files with DirectoryBind.
I have a 64G microSD installed and with both of those apps in use quite a bit of free internal space now.
Warning: As of Android 4.2+ DirectoryBind no longer works because of the file system changes to support multiple users. Just in case you're running a custom ROM.
Sent from my Nexus 7 using Tapatalk HD
Thanks for the info!

Internal SD Card

Hi basic question regarding my internal sdcard.
Im having an issue and was told I should format my sdcard (I dont have an external sd).
I hooked my phone up via USB and opened it with windows explorer. I see my device and see "Internal Storage", which contains every folder within it. I dont see something specific for "sdcard" and Im unsure how to find it. Is the entire "Internal Storage" folder what Im looking for? Is that what I should completely back up on pc, format and then repopulate? Im nervous about bricking the phone so want to confirm this...
Thanks.
The internal memory is the sd card referred to. You will lose all of your data.
Sent from a galaxy far far away.
luc.highwalker said:
The internal memory is the sd card referred to. You will lose all of your data.
Sent from a galaxy far far away.
Click to expand...
Click to collapse
Thanks for the reply. So if I first copy every folder here onto my PC, format it and then put all those folders back, should I expect the phone to restart without any problem and everything fully intact?
lirong said:
Thanks for the reply. So if I first copy every folder here onto my PC, format it and then put all those folders back, should I expect the phone to restart without any problem and everything fully intact?
Click to expand...
Click to collapse
Yup, works just fine.
Sent from a galaxy far far away.
thanks really appreciate this guidance.
i know it seems obvious, but doing it your first time is scary so its really helpful to get affirmation that my understanding of what may seem basic and obvious is correct
Haha I know that feeling, first time I tried to root a phone I almost bricked it probably one of my scariest moments. YouTube helps a lot, there's plenty of step by step guides on how to do pretty much everything to your phone.
Sent from a galaxy far far away.
luc.highwalker said:
Haha I know that feeling, first time I tried to root a phone I almost bricked it probably one of my scariest moments. YouTube helps a lot, there's plenty of step by step guides on how to do pretty much everything to your phone.
Sent from a galaxy far far away.
Click to expand...
Click to collapse
OT: First time i modded a phone (a razr v3i) i did brick it. after a week of research (the v3i scene is a huge mess) i was able to both save it and do some weird stuff like changing imei for fun
as for the topic, luc.highwalker has covered it so you are safe lirong.
I have an issue with my internal storage mount.... Not the ones with my system files but the one were all my program/game files go. I have orthus 8 now and ever sense I don't have it anymore showing up. Can someone help my fix it?
Sent from my SGH-I727 using xda app-developers app

[Q] How do I make my USB Storage and Internal Storage partitions one in the same?

After reading up a bit on how newer Android phones went about fixing the silliness that comes from having external storage, I realized the Nexus S would be a perfect candidate to convert to the newer MTP method of accessing the device's storage while it's on. I'm already doing this with CM10, but I'm not actually getting much benefit out of it because the device still has an "SD Card". How would I go about merging the data and sd-ext partitions? Since it's all technically one internal flash chip, I don't see there being any major issues with this. Could be very wrong though.
I'm using a Nexus S 4G with CM10 Stable, but I don't think that should terribly matter as long as I'm on a 4.X.X ROM with MTP support.
EDIT: Is this the wrong place for this question? Like, is there somewhere more technical I should post this?
atm153 said:
After reading up a bit on how newer Android phones went about fixing the silliness that comes from having external storage, I realized the Nexus S would be a perfect candidate to convert to the newer MTP method of accessing the device's storage while it's on. I'm already doing this with CM10, but I'm not actually getting much benefit out of it because the device still has an "SD Card". How would I go about merging the data and sd-ext partitions? Since it's all technically one internal flash chip, I don't see there being any major issues with this. Could be very wrong though.
I'm using a Nexus S 4G with CM10 Stable, but I don't think that should terribly matter as long as I'm on a 4.X.X ROM with MTP support.
EDIT: Is this the wrong place for this question? Like, is there somewhere more technical I should post this?
Click to expand...
Click to collapse
did you figure out how to make more space for apps?

[Q] Swap File, External Apps Partion, etc.

Hello people,
I got my Xperia L a couple of days ago and I have it running successfully with Vengeance + Clean n Tweaked after a loooot of tries.
This is my first Android phone after HTC Wildfire! Loving it so far [Was uber slow out-of-the-box though]
Anyway I want to know how beneficial it is to create a swap file on the External SD card and use it. Does it make a big difference in performance? If yes how do I achieve this?
Secondly I really want to be able to move user apps to External Storage. I tried moving them from within the Clean Master app and it did work BUT when I restart my phone the Xperia Home(launcher) app keeps crashing(until the SD card is initialized I guess). The easy fix is to open the notification bar or something for a minute before going back into to the Home Screen. So yes this kinda works. Just want to know if there's a better way.
One idea comes to mind is making a separate ext2/3/4 partition on the External SD Card and using that for user apps. Will the home launcher still crash? I really don't want to use a custom launcher. If this is possible how do I do it?
I read about the mod to make External memory as Internal. Does everything work correctly with that? However if partitioning is possible I would prefer that as opposed to using the whole External SD Card as internal memory.
Lastly, since I don't have 10 posts yet I can't post to DEV threads yet so I want to thank people from about 10 to 15 different threads which I referred to in the last 24 hours. lol!
p.s. I have a SanDisk 32GB Class 10 Micro SD Card
Bump!
I think what you searching for is Link2SD
Sent from my HTC Desire X using xda app-developers app
w1040 said:
I think what you searching for is Link2SD
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply. I read all about the app and I think It MIGHT cause trouble at some point so I'm gonna stay away from it for now. Maybe when I want to play a HUGE game I'll use it. Good to know how to!
Anyone wants to shed some light regarding the swap file question?
Bump

Categories

Resources