(DEV) storage swap help (setting default sd card) - Motorola Photon 4G

Only tested on stock rooted
tho the topic would indicate a general thread topic and not a development topic i honestly believes it goes here as i am taking it upon myself to figure this out or attempt to. if CM7 allows you to change default storage location to either internal or external storage then i believe it should be easy to figure out how to do it with any rom that is rooted. tho i may be completely wrong on that.
what i believe to be needing is the void.fstab file from the etc folder and the build prop from a cm7 user. basically if somebody could give me a copy of those files when they have the settings in cm7 set to internal and then when they have it set to external i may be able to figure out what needs changed. i remember reading in the cm9 thread that somebody changed line of code in those files to switch them around but i need to compare them. so if somebody could get me those files i would greatly appreciate it and will try to figure this out
Number 1 reason why i want this ability is my android folder for app/game data alone is 8.5gb. my gameloft one is like 5gb. would be a huge PITA to have to move data around all the time.
thanks

If u can figure this out that would be great..I tried changing it around myself but cm9 isn't reading my internal storage no matter what I change around lol there has to be a solution
Sent from my MB855 using Tapatalk

Has anyone seen the sd flip flop mod in the droidx2 development forum wonder if it would work or if it can be modified to work for us
Sent from my MB855 using xda premium

could you provide a link please?
Sent from my MB855 using XDA App

Well just tried that mod and it did flip it but now my actual sd card can't be read. Flip it back and still can't read my sd card. Gonna do a nandroid to see if it will restore it then tonight I'll compare some things and see what's going on
Sent from my MB855 using XDA App

Ok I got then flopped and my phone reads the external as my default sd card but now internal won't show up at all. I'm on mobile so I can't upload the void file and the back up void file. I'll try to go to actual website on phone and upload it there
Sent from my MB855 using XDA App

http://db.tt/CH5IlMwI this is the backup of original void file on rooted stock
http://db.tt/uadyDfcK this is the void file with my edits
Look where it shows the lines about external sd card and internal sd card
Had to post links to dropbox since im on my phone and cant upload files.
This is only done on stock and this change will only read and mount your external sd card as your default card and internal wont be read at all. You will also get and error on boot about not being able to read something.
Any ideas or direction on how to get internal storage to be read would be great.

# external sd card
dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc3 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
# internal eMMC
dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
I think it should look like this in void.fstab hope it helps.
Sent from my Motorola Photon using Tapatalk

Yeah that looks like what it originally should be. I'm trying to get then to swap. A guy named shiffy on here has sent me a pm saying he was able to swap memory around. Was able to get phone to read the actual sd card as sd card but can't get internal memory to read at all as the sd card ext. Thinking it may have to do with being on the latest sbf.
Sent from my MB855 using XDA App

ok still can't access my internal storage and i noticed when trying to install Frontline Comando from the market i get an error that says cant access usb storage or sd card so for now do not do this till i can figure it out. also shiffy if you read this can you try to install frontline commando and see if it goes? pm me if you do. also you on sbf 6 or sbf 7?

IDK bud was mostly just shedding light on the mod never tried it my friend jrtduke has x2 told me about it figured was worth a look sorry it messed you up hope you can get things working again
Sent from my MB855 using xda premium

ok i gave up. sorry guys but i messed up my phone and i dont now diddly. so i'm going to go back to cm7. once shiffy is able to post he may share how he got his to work.

Success! http://forum.xda-developers.com/showthread.php?p=25812182

Related

[MOD]Droid X2 SD Storage flip-flop - SD 2 Internal/Internal 2 SD (Updated 8/22/2011)

Droid X2 SD Storage Flip-Flop
So what is a SD storage flip-flop? Basically what this mod does is switch SD storage to internal storage, or internal storage to SD storage. Why is this beneficial? Well, on the Droid X2 in its stock form, your actual SD card (the one you put in the phone by hand) is not mounted in the "correct" file system space by default. This screws a lot of things up e.g. trying to install a Gameloft game which ends up installing on the internal MMC, or general system files getting stored on the internal MMC. This mod fixes that issue and puts everything on your actual SD card like usual. Technically, the internal MMC is faster to access than your SD card, so it makes sense why Motorola made it this way, but from a user standpoint it doesn't make much sense, at least, to me.
This can be flashed in BSR recovery. To check if it works, look at your SD storage menu in your Settings. If they flip after flashing the ZIP, it works.
WARNING: This will switch your SD card configuration. Your SD Storage will become your Internal Storage if you flash the zip. You can return to a "normal" configuration by flashing the second links. If you do a factory data reset, REMEMBER that your SD card configuration has been flipped, since there are check boxes allowing you to format your SD card / internal storage - Choose the right one! Also, there are general BLUR application settings that might need to be changed e.g. Blur Camera storage area. Just remember that the storage terminology will be flipped.
Click to expand...
Click to collapse
Apps2SD FIX Update 8/22/2011 - fixed bug with apps2sd feature
SD storage 2 internal storage
Install this to make your SD card mount in the "right" place
DOWNLOAD: http://www.multiupload.com/5NP2UML0QM
MIRROR: http://www.mediafire.com/?av1ihnag7yzcaim
Internal storage 2 SD storage
Install this to return to a "like stock" configuration.
DOWNLOAD: http://www.multiupload.com/ZQPIDP6GV0
MIRROR: http://www.mediafire.com/?tx0micqr4x54wbt
This is something that has bothered me since day 1 of owning an X, thank you so much for this!
I did this in june using some tweaks that were posted on here, and it made my phone reboot when connected to USB mass storage. Have you tested that by chance?
Btw, love all the tweaks you're giving us
Sent from my DROID X2 using XDA Premium App
Just flashed & my storage is switched. Was quick & painless lol Thanks for the goodies you bring us
I have tried this and my phone did not reboot when connected to a computer via Usb mass storage. Works great.
EvoRocker said:
This is something that has bothered me since day 1 of owning an X, thank you so much for this!
Click to expand...
Click to collapse
Yeah it really bothered me too. I was trying to install games to test out the Tegra chip (since it is so awesome), and it kept downloading everything to the phone. Kind of silly, there is only 4gb free there, and one game could be 1gb. That doesn't make much sense. So here we are
Updated SD 2 Internal download links. If you are using this mod then please re-download for the app2sd fix. There was a bug where if you moved an app to sd card it would break on reboot. Now apps move to internal MMC but data is read from the SD card. Best of both worlds
Thank u lots
rsswga said:
Thank u lots
Click to expand...
Click to collapse
This!
Sent from my DROID X2 using Tapatalk
Outstanding, thank you!
Thank you so very much! Nice and easy!
Mind if I use this in the next eclipse?
Sent from my DROID X2 using xda premium
nitroglycerine33 said:
Mind if I use this in the next eclipse?
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Sure, if you think it will be of benefit.
Fantastic Mod! Very happy mattchenzo now!
Sent from my DROID X2 using Tapatalk
When I did the pm setInstallLocation 3 command in terminal emulator, I got an error saying a screen full of possible commands, the most relevant looking part at the end said, basically:
Setinstalllocation:
0: let system decide
1: install to internal
2: install to external
Did I miss something somewhere? How do I make 3 a valid option??
Sent from my DROID X2 using Tapatalk
What about when you backup apps using TiBu? Installed atrix port and i couldn't restore them. So i just downloaded "back to stock" flip-flop. Didn't want to clog up that thread with a stupid question, so i just asked here.
You can also point TiBU to the proper directory in settings.
Sent from my DROID X2 using Tapatalk
mattchenzo said:
When I did the pm setInstallLocation 3 command in terminal emulator, I got an error saying a screen full of possible commands, the most relevant looking part at the end said, basically:
Setinstalllocation:
0: let system decide
1: install to internal
2: install to external
Did I miss something somewhere? How do I make 3 a valid option??
Sent from my DROID X2 using Tapatalk
Click to expand...
Click to collapse
Actually, it was a typo sorry about that guys! I took those options off. The mod file is setup to only allow app installs to the 4gb internal emmc.
navenedrob said:
Droid X2 SD Storage Flip-Flop
So what is a SD storage flip-flop? Basically what this mod does is switch SD storage to internal storage, or internal storage to SD storage. Why is this beneficial? Well, on the Droid X2 in its stock form, your actual SD card (the one you put in the phone by hand) is not mounted in the "correct" file system space by default. This screws a lot of things up e.g. trying to install a Gameloft game which ends up installing on the internal MMC, or general system files getting stored on the internal MMC. This mod fixes that issue and puts everything on your actual SD card like usual. Technically, the internal MMC is faster to access than your SD card, so it makes sense why Motorola made it this way, but from a user standpoint it doesn't make much sense, at least, to me.
This can be flashed in BSR recovery. To check if it works, look at your SD storage menu in your Settings. If they flip after flashing the ZIP, it works.
Apps2SD FIX Update 8/22/2011 - fixed bug with apps2sd feature
SD storage 2 internal storage
Install this to make your SD card mount in the "right" place
DOWNLOAD: http://www.multiupload.com/5NP2UML0QM
MIRROR: http://www.mediafire.com/?av1ihnag7yzcaim
Internal storage 2 SD storage
Install this to return to a "like stock" configuration.
DOWNLOAD: http://www.multiupload.com/ZQPIDP6GV0
MIRROR: http://www.mediafire.com/?tx0micqr4x54wbt
Click to expand...
Click to collapse
I used this mod when I had my Droid X2, and I was wondering if there is any way you could do this for the Droid Bionic? I could provide you with the vold.fstab from my Bionic.
Sent from my DROID BIONIC using XDA App
So, if I don't have any ridiculously large games then this doesn't really do anything functional for me. I understand the outcome, but don't see the real utility. Please let me know if I'm missing something.

edit solved (Entropy Came Through Again!) $30 bounty for a fix for my issue!!

I am shocked that i cant seem to find any solution to this, even more so i am shocked that i haven't come across users that are even looking for a solution to this isssue. Anyways here is goes..
Our phones have an internal and external sd card. That great! actually it blows in my mind. I wish we didnt have internal sd because it just screws everything up when you are trying to do what i want to do. I have a 32gb external sd that i want to use as the main storage for nandroids, downloads, ti backups, and all or atleast most application external data. I have to keep deleting backups one after another because i my internal sd card is always full, and when it comes to my nandroids its a pain to have to move them from internal to external sd and then back when i want to restore (which it also causes issues for me and i get a md5 mismatch in cwm). There has got to be a way to use your exteral sd card as the main storage, CM7 has a solutions to this but it only works at boot so it doesnt mount the external as internal within recovery, which i can live with because cwmr 5.0.2.7 allows you to backup and restore to either the internal or external. The issue with this is no other rom does this so if i am on another rom besides cm7 then and i want to restore a backup that i did on my external sd with 5.0.2.7, i have to move the nandroid from external to internal to do so, and when you are moving it from one to the other on your phone it takes forever because it is usually 700+mb.
This whole internal sd and external sd is really pissing me off. This phone (which i truly love and is by far the best phone on my market) and my other phone, droid bionic are the only two phones that i have every owned that have had this issue. All other phones of mine (HTC) have never had an internal sd card.
If someone can come up with a fix or point me to a fix that will accomplish what i am looking for I would quickly pay (or donate) $30.00. Its not a lot of money but its enough to buy some accessories and for me, paying $30 is worth it. Again i need a fix that will work in recovery(cmr 5.0.2.7 does this) and at boot.
Edit. Nevermind, it seems the only way to fix this issue the way i need it is if we get the new cwm 5.0.2.7 recovery. Just waiting on entropy to try and get this in his kernal. Once he does that i will be donating again to him instead
Pretty simple, in recovery.fstab swap what internal and external point to, compile, flash, FIXED.
can you provide some instructions? What does this do exactly.
Thanks
Google "fstab" and "linux mounts" and you'll find an answer... but be careful because as there might be unexpected consequences...
Sent from my SAMSUNG-SGH-I777
I'm not an expert, but when I first ran CWM the entire phone storage was unmounted and just internal storage. I had to mount it SD. Couldn't you just go to cwm and reverse that?
Sent from my SAMSUNG-SGH-I777 using xda premium
Shammyh said:
Google "fstab" and "linux mounts" and you'll find an answer... but be careful because as there might be unexpected consequences...
Sent from my SAMSUNG-SGH-I777
Click to expand...
Click to collapse
Well I dont know nearly as much as you, so googling those terms does not help. I appreciate the gesture but i am going to need some more help than that unfortunately.
Does anyone know the block id for sd-external?
did you take a look into fstab? it should be pretty apparent from there. if not, then just issue mount command from console - it prints out all currently mounted devices, including sdcard.
don't forget to send DG $30 for the hint
vladm7 said:
did you take a look into fstab? it should be pretty apparent from there. if not, then just issue mount command from console - it prints out all currently mounted devices, including sdcard.
don't forget to send DG $30 for the hint
Click to expand...
Click to collapse
recovery.fstab? correct not vold.fstab, right? And what is the external sd mount id?
I just want to be clear that i want it to mount the external sd as internatal in recovery not just at boot so vold.fstab will not do that
Entropy just included a fix for this in his new kernel 111311. Just flash it and voila.
Sent from my SAMSUNG-SGH-I777 using XDA App
Romee74 said:
Entropy just included a fix for this in his new kernel 111311. Just flash it and voila.
Sent from my SAMSUNG-SGH-I777 using XDA App
Click to expand...
Click to collapse
Yes i know but thanks.

Internal Storage messed up

Hey there, I think I broke internal storage
Its not mounted...
What I have done
1.) SBF back to defualt
Any ideas?
So on stock 2.3.4 your internal SD is broke not the ext-sd?
Sorry this should of been posted to the Q&A section.
Travisdroidx2 said:
So on stock 2.3.4 your internal SD is broke not the ext-sd?
Sorry this should of been posted to the Q&A section.
Click to expand...
Click to collapse
My bad,
Yes the internal storage shows up as 0gb and is not mounted
DOH!!!
I had it plugged into my computer.
bijan588 said:
DOH!!!
I had it plugged into my computer.
Click to expand...
Click to collapse
Nice.
Sent from my MB870 using xda premium
Any thoughts?
My problem is the same except I am not hooked up to USB. The issue came when I installed CM7DX2 RC0. See below what happened.
Stock settings
/mnt/sdcard (this was the internal card)
/mnt/sdcard-ext (this was the external card)
After CM7
/mnt/sdcard (this is now the external card)
/mnt/sdcard-ext (it shows up but there is nothing there)
/mnt/emmc (this is the internal card and show 0 bytes free; it has my old files but nothing can be added to it; I assume it is read only at this point)
Is there any way to make the internal read/write again or will I have to SBF? I don't get what happened. I love CM7 except for this issue. Thanks.
Leland
Emmc is supposed to be a external card. Its a flip flop. So if emmc is bad its ur removable SD. Get a new one.
Sent from my MB870 using XDA
Or maybe format? Idk.
Sent from my MB870 using XDA
Moved to proper forum.
emmc is what was my internal SD card; all the files from it are still there exactly as they were before the CM7 installation. I already replaced the external card shortly before installing CM7 and it is working flawlessly as sdcard (previously sdcard-ext before installing CM7). That is why I was asking. I was hoping CM7 was the cause of the issue as it was ok at the SBF before flashing to CM7. Is there a specific way to format the internal SD card? Thanks.
Leland
lgwhitlock said:
emmc is what was my internal SD card; all the files from it are still there exactly as they were before the CM7 installation. I already replaced the external card shortly before installing CM7 and it is working flawlessly as sdcard (previously sdcard-ext before installing CM7). That is why I was asking. I was hoping CM7 was the cause of the issue as it was ok at the SBF before flashing to CM7. Is there a specific way to format the internal SD card? Thanks.
Leland
Click to expand...
Click to collapse
If you are planning on staying on CM7, or any other ROM that uses the flip flop mod, and you are wanting to get everything straightened out, I would recommend backing up your app data with Titanium Backup. Back up your External SD card to your computer (If you have anything else from your INTERNAL card you want to save like pictures, music, videos, etc., back them up to your computer as well). Then format both. You can erase both cards in settings/storage. After you format your internal, the apps you have on your phone already should recreate the folders they need. But wont restore your app data. Thats where you use Titanium Backup to restore the data. Then just move everything back from your computer to your external or internal depending on where you want it. You should be good then.
Thanks jsgraphicart for the advice. I will look at this and attempt the repair. However I have a question first. It seems to me that /mnt/emmc should be showing up as /mnt/sdcard-ext if the cards were truly swapped. However in File Expert with root exploring turned on there is nothing there. It seems to me a symbolic link might need to be reestablished. I think the cards themselves are fine. I was hoping someone might have some ideas how to get /mnt/emmc to point to /mnt/sdcard-ext so the swap is complete. Does anyone have some clues to offer to get things in their proper order? I think I will go read the article about swapping the cards to see if I can find the answer myself but if anyone has an answer I would love to hear from you. Thanks.
Leland
lgwhitlock said:
Thanks jsgraphicart for the advice. I will look at this and attempt the repair. However I have a question first. It seems to me that /mnt/emmc should be showing up as /mnt/sdcard-ext if the cards were truly swapped. However in File Expert with root exploring turned on there is nothing there. It seems to me a symbolic link might need to be reestablished. I think the cards themselves are fine. I was hoping someone might have some ideas how to get /mnt/emmc to point to /mnt/sdcard-ext so the swap is complete. Does anyone have some clues to offer to get things in their proper order? I think I will go read the article about swapping the cards to see if I can find the answer myself but if anyone has an answer I would love to hear from you. Thanks.
Leland
Click to expand...
Click to collapse
I think the emmc is an AOSP thing. I'm not 100% though. I dont know the technical answer to that. The emmc IS your external card and works the same. If you use it long enough, you do get used to it. I think it confused a lot of us when we flashed CM7 for the first time.
Sent from my MB870 using Tapatalk

[Q] how to switch internal sd (currently sd card) back over to internal sd (emmc)????

how do i switch the interal sd card(emmc) to external sd card(sdcard) back to normal? currently its ext sdcard(emmc) and internal(sd card)...i believe thats the reason why my external files arent visible on my phone because my phones external sd card is emmc (took out my microsd and in cwm said cant mount emmc) and my internal sd is sd card aka ext sd. if that makes sense... is that better that way with the vibrant? is it rom related? i do know its been like that since i switched to miui. im running docs ics v12 now. is there a way to create a path to the ext card(mounted as emmc) on the sd card root path? so if my internal sd is set to be extsd it thinks its its saving on the extsd but isnt so it wont have a external sd path? and my external is set to be internal so i cant save anything on it with my phone though i wonder if when i flash a rom those files are saved to my ext.. so if i were to format my emmc (extsd) would that mess my phone. f-it im about to try it now lol.. formated, done, reboot... well i dont think it hurt anything and i know my extsd is completly wiped now but im still stuck with the problem on not being able to transer anything from my internal sd to extsd because there is no path for it in the file browser, i dont really want to go through the trouble of backing up my internal sd card, formatting that hoping it doest brick my phone like ive read b4, putting what files i want back on it, just to be stuck with same problem an hour later. seems like there are many post on this but ive yet to find an easy solution. i know someone has had to of come up with a fix for this... thanks
I'm running with internal sdcard only, but used to use external. Cyanogenmod handles both fine. I tried AOKP build 35 and had no sdcard, and tricks I tried with symlinks or mount -bind had no effect. So one fix is to find a good rom. There may be other ways around it.
I flashed aokp build 36 a few days ago and my internal and SD was switched too. I found this file posted by Mr. Physco and flashed my memory back to normal. I'll try to find link and repost
Sent from my SGH-T959 using XDA
saseekutz said:
I flashed aokp build 36 a few days ago and my internal and SD was switched too. I found this file posted by Mr. Physco and flashed my memory back to normal. I'll try to find link and repost
Sent from my SGH-T959 using XDA
Click to expand...
Click to collapse
This commit has been reverted. Next build should return it to normal.
Sent from my SGH-T959 using Tapatalk 2
so does anyone know of a good ics ROM that supports both sd cards? Last ROM I used that supported both sd cards I think was bionix v. I guess it's really not that big of deal since I can stream my music with google music, but I would like to use the empty 16GB memory card I have in my phone for game data or movies. So Akop build 36 has a fix for that? I'll have to check it out, thanks
Sent from my SGH-T959 using XDA
I cant get my phone to boot into recovery or any roms
CLockwork cant mount the sd card for some reason. happen after i flashed AOKP build 36 it would read the sd card now i cant do anything with my phone. would an external sd card work perhaps? this problem never happend before
saseekutz said:
I flashed aokp build 36 a few days ago and my internal and SD was switched too. I found this file posted by Mr. Physco and flashed my memory back to normal. I'll try to find link and repost
Sent from my SGH-T959 using XDA
Click to expand...
Click to collapse
Yes thank you!
---------- Post added at 07:50 PM ---------- Previous post was at 07:46 PM ----------
djphillyphil101 said:
so does anyone know of a good ics ROM that supports both sd cards? Last ROM I used that supported both sd cards I think was bionix v. I guess it's really not that big of deal since I can stream my music with google music, but I would like to use the empty 16GB memory card I have in my phone for game data or movies. So Akop build 36 has a fix for that? I'll have to check it out, thanks
Sent from my SGH-T959 using XDA
Click to expand...
Click to collapse
Try CM9. That one supported both my SD's (Galaxy Player 5.0). But, beware of directory changes. The external SD is now under "mnnt/emmc/".

Storage & camcorder issues on jb roms?

I've tried getting an answer on this before. How do I fix the internal and SD card storage problems? For some reason everything goes right to external and it never uses my sdcard. Ex; Titanium Backup goes right to internal, everything I download goes to internal, pictures too(pics go to int & sd) etc. I have a 64gb card and I'd like yo use it. Can some please explain what each folder means? There are so many paths to external and sd. Also, I went into "manage apps" and to the "on sdcard" tab. I checked each one. Does that mean every app that is checked marked is now using the sdcard for space? I'm just really confused with all this lol. I attached some screenshots of my external/scard. Any help is appreciated.
Thanks
Sent from my ADR6425LVW using Tapatalk 2
xXezmacXx said:
I've tried getting an answer on this before. How do I fix the internal and SD card storage problems? For some reason everything goes right to external and it never uses my sdcard. Ex; Titanium Backup goes right to internal, everything I download goes to internal, pictures too(pics go to int & sd) etc. I have a 64gb card and I'd like yo use it. Can some please explain what each folder means? There are so many paths to external and sd. Also, I went into "manage apps" and to the "on sdcard" tab. I checked each one. Does that mean every app that is checked marked is now using the sdcard for space? I'm just really confused with all this lol. I attached some screenshots of my external/scard. Any help is appreciated.
Thanks
Sent from my ADR6425LVW using Tapatalk 2
Click to expand...
Click to collapse
JB AOSP roms behave the same way Sense does, sd card is considered internal.
Check to see if you can change your storage location in the apps in question. People have gotten away with swapping the mount points to make external the sd card also.
mjones73 said:
JB AOSP roms behave the same way Sense does, sd card is considered internal.
Check to see if you can change your storage location in the apps in question. People have gotten away with swapping the mount points to make external the sd card also.
Click to expand...
Click to collapse
Is there a post on here about making the ext the SD card also?
Sent from my ADR6425LVW using Tapatalk 2
I forgot, does that camcorder not work on all jb roms atm? Is going back to sense my best bet? If so can I just go ahead and flash any sense rom coming from cm? Or do I need to follow other steps first?
Sent from my ADR6425LVW using Tapatalk 2
Camcorder works and has been fixed for awhile...as for making your external read as internal is darn near impossible....the 4.1 and 4.2 SD card layout was caused by a bug....I bricked my last rezound trying to make a mod for you guys...so be warned about trying...there is an app somewhere that merges the 2 SD cards together but causes errors for future flashing
Sent from my Rezound using xda app-developers app
xXezmacXx said:
Is there a post on here about making the ext the SD card also?
Sent from my ADR6425LVW using Tapatalk 2
Click to expand...
Click to collapse
The process changed in CM10.2, they did away with the vold.fstab file. It looks like the mounts are defined in fstab.vigor and/or fstab.goldfish now. I haven't tried modifying them personally.
It would be easier re pointing any apps you can, any changes you make to the above files would be lost every time you flash a new nightly.

Categories

Resources