Extended Rom & Storage Card Access - MDA II, XDA II, 2060 ROM Development

I've been playing around with the extended rom and config.txt all pretty straight forward. I've now filled my extended rom and as a way around this I thought I'd put the extra applications in a directory on the storage card.
Should this work? The syntax I've used is:-
CAB: \Storage Card\TomTom\ENGF.CAB
The boot process seems to ignore lines referring to the storage card, is this because it is not possible ie the storage card is not mounted at boot time, or is it something to do with the space in the name 'Storage Card'?
Would quotes solve this?
Cheers

Related

miniSD detected as 'StorageCard2'

Hi,
For some reason my miniSD card is now shoing up as StorageCard2, which isn't a big problem in itself, but TomTom can no longer find any maps on my device. Is there a way to change it back to StorageCard1?
Thanks
Use this search
mcwtrekkie said:
Hi,
For some reason my miniSD card is now shoing up as StorageCard2, which isn't a big problem in itself, but TomTom can no longer find any maps on my device. Is there a way to change it back to StorageCard1?
Thanks
Click to expand...
Click to collapse
You can use the google search "configured for xda-developers"
http://forum.xda-developers.com/showthread.php?t=318538
Look for "rename sd card" somewhere in the prophet section (can't really remember, but it is in this forum, with some reg editing)
If u hv resco explorer, then delete the storage card, then remove yr card and put it back..
Thanks a lot guys.
It's still named as Card2, but TomTom can see the maps now for some reason :S .. but I'll keep your suggestions in mind if it goes funny again
Thanks again
That happened to me when I updated to a larger SD -- apparently the Athena remembered my first SD card and named the second one Storage Card 2 -- I ended up hard resetting (for another reason) so now it's back to being the only Storage Card.
mcwtrekkie said:
Hi,
For some reason my miniSD card is now shoing up as StorageCard2, which isn't a big problem in itself, but TomTom can no longer find any maps on my device. Is there a way to change it back to StorageCard1?
Thanks
Click to expand...
Click to collapse
Yes. It does this if you are storing mail attachments on the SD card and the SD card is not available when it needs it (eg if using WM5torage when a new attachment comes in). It therefore creates the Storage Card subdirectory in the main memory and renames the SD card to Storage Card 2.
To remedy it, change pocket outlook so it is storing attachments in main memory. Soft reset. Delete the Storage Card subdirectory. Soft reset. Set pocket outlook back to storing attachments on the SD card.
Hope that helps.

Another SD question(s).

I currently have a 2G miniSD card residing in my device. Its contents (a few albums worth of mp3's and an AVI) are found by file explorers and my media players variously play and don't play them as I've come to expect. Anyhoo, the card is there.
So I go to the "settings" menu to unmount the card before removing it, then to "SD card and device storage." There I see no mention of SD2 or microSD as I expected, just the plain SD card. Do I need to unmount the microSD before removal and if so where/how do I do that?
Secondarily, "on the SD card and device storage," there's a menu entry reading "Unmount in Progress." Is that a command I'm meant to invoke when necessary or is there unmounting going on? It seems to refer to the SD card. Why should I ever need to unmount that?

Installed on Micro SD card only?

I have searched and I have not been able to find my answer. I have looked in the settings and I have changed the settings.
But it doesn't matter how I set it up it always install the files onto the internal memory .
I have a Micro SD card that I would like to install most of the programs
Is there a way to install the programs onto the external Micro SD card or a move them there after you download them ?
I remember reading a thread or two about moving apps to the SD card ... have you tried searching on "move apps to SD card"?
Heh! The grass is always greener on the other side isn't it?
The easiest solution to your problem would be for you to install CyanogenMod. It likes to install everything on the external SD card--so much so that people resort to hacking /system/etc/vold.fstab to get it to use the internal SD card instead.
You might care to look at that file on your ROM (I'm assuming its VEGAn-5.1.1 or one of the other Froyo-based ROMs). The vold program uses that file to determine where disks should be mounted. You can switch only the device paths in that file to get vold to mount it the way you want it--external SD card as /sdcard and the internal SD card as /sdcard2.
If you just want to manually move files from place to place, use Root Explorer.

[Q] app install location

I have a few questions about app install locations for the g-tablet. There are three places where apps can go: 1. internal memory, 2. internal sd card, 3. external sd card.
For internal memory, I can see the installed apps (the apk files) at /data/app. I cannot find any evidence of any apps installed on the internal sd card (do they stay packaged in the apk file or get exploded out). What directory do they get put into on the internal sd card? In case you're wondering, according to App 2 SD Pro, I have 10 apps installed on the sd card.
Is there a way to install apps on the external sd card? Everything that I've read about and the sd card app managers that I've tried only work between the internal memory and the internal sd card.
Hmmm...nothing but crickets. Not even a question for more information? Well, here is a little more anyway. The tablet is rooted and I have tnt-lite 4.4.0 installed. I'm using Root Explorer to browse around in the file system.
This discussion might help, somewhat.
Yes, that other post was somewhat helpful. I can see the apps that have been moved to the "internal" SD card are at /mnt/asec with Root Explorer (I didn't have to unmount either...but the .android_secure folder did show as empty).
A couple of other questions for you:
1. Are you using a remote Linux machine to do those find commands or is there a way to get to that command line on the g tablet? I only have Windows so I may be stuck there.
2. Unmounting the SD card in the Settings will unmount the "external" SD card, right? not the "internal" SD card?
3. Do you know anything on my other original question about the "external" SD card? Can we move apps there some how? If not, I'd be game to try to write an app that will do it but my guess is that if there isn't an app that does it already, its probably harder than it seems that it should be.
Puhn said:
(I didn't have to unmount either...but the .android_secure folder did show as empty).
Click to expand...
Click to collapse
If you unmount the SD card (internal or external -- depends on the ROM), you will see stuff in /mnt/sdcard/.android_secure/.
1. Are you using a remote Linux machine to do those find commands or is there a way to get to that command line on the g tablet?
Click to expand...
Click to collapse
I use a telnet session into the gTablet, but, you can run the commands either inside a Terminal emulator or via adb. It usually doesn't matter how you run the commands.
2. Unmounting the SD card in the Settings will unmount the "external" SD card, right? not the "internal" SD card?
Click to expand...
Click to collapse
Depends on the ROM. In CyanogenMod, the SD card is the removable SD card. The internal non-removable one is called "emmc" (mounted under /mnt/emmc). Other ROMs have /mnt/sdcard and /mnt/sdcard2 (Froyo/GB) or /mnt/sdcard and /mnt/external_sd (Honeycomb ROMs).
3. Do you know anything on my other original question about the "external" SD card? Can we move apps there some how? If not, I'd be game to try to write an app that will do it but my guess is that if there isn't an app that does it already, its probably harder than it seems that it should be.
Click to expand...
Click to collapse
CyanogenMod does what you want by default. As I mentioned above, for it /mnt/sdcard is always the external removable SD card. So, everything "moved to SD card" ends up on the external SD. If you want other ROMs to behave this way, you'll have to change some of the /init*.rc files and the /system/etc/vold.fstab file and change what gets mounted as /mnt/sdcard (ie, which device is assigned the "sdcard" label). Look around, the changes are fairly obvious.
My recommedation, however, is to just install CyanogenMod and avoid the /init*.rc and vold/fstab hackery.
Good information. Huge THANKS !
One last question (hopefully)...if the SD card in CyanogenMod is the external SD card, I guess I have the reverse question for it. Can/how do you move apps to the non-removable SD card?
I guess what I'm getting at is I have a 16 GB internal, non-removable SD card and a 16 GB removable SD card that I'd like to maximize the use of. I'm not stuck with only being able to put apps on one or the other depending on the installed ROM am I?
Puhn said:
I guess what I'm getting at is I have a 16 GB internal, non-removable SD card and a 16 GB removable SD card that I'd like to maximize the use of. I'm not stuck with only being able to put apps on one or the other depending on the installed ROM am I?
Click to expand...
Click to collapse
Heh. What started as a simple question about App install locations has now progressed to low-level mucking about with the system. What next--RAID using the SD cards?
To answer your question, with the standard, unmodified ROM you are stuck with only using either one or the other. But, since Android is based on Linux, (and since we have the source code for most of the programs on the system), it can be made to do a lot of non-standard things.
I'm pretty sure that the system can be modified to use both the internal and external SD cards for App installations, but, this will need a fair bit of customization of the ROM. Which means that if you switch ROMs or even upgrade the current one, the setup will have to be redone again.
Therefore, my recommendation, is that you use one of the SD cards solely for app installs and the other only for storing media/books/whatever. 16GB only for apps is a fair bit of space, I feel.
rajeevvp said:
Heh. What started as a simple question about App install locations has now progressed to low-level mucking about with the system.
Click to expand...
Click to collapse
Well, I had hoped to avoid the mucking about part and that one of the available ROMs already had the ability to put apps anywhere but it sounds like that is not the case. I guess I wasn't clear with my original question.
Anyway, thanks for all of the answers. I'll stick with what I've got for now. At some point I may play around with some things and see how thoroughly mucked up I can get it.

[Q] Move CoPilot Live EU maps to SD card

I had RAZR XT910 IT.
I need to move CoPilot's maps to external micro SD (I had 32 GB), but I don't know how.
Can I move only maps or CoPilot app too?
Thank you for answer.
Bye.
veleno
I removed the entire application: maps took over 6 GB.
How can I install the maps on SD card? Is it possible?
veleno
Sent from my XT910 using Tapatalk
Hiya I recently faced this problem. Luckily I have a solution for you!
Solution
Modify the file "user.cfg" in "Internal storage/copilot" (in my case I've just copy the file to my sd card and modify in my desktop)
and change the value from sdcard(internal storage) to sdcard-ext (external sd card path may be different check in my files to see what path external sd is it may be external_sd or sdcard-ext)
Change wherever you see the letters "EU"
The result should look like this:
[Directories]
"AddonDir"="/mnt/sdcard-ext/copilot/EU/eu/addon/"
"AudioDir"="/mnt/sdcard/copilot/audio/"
"CitiesDir"="/mnt/sdcard-ext/copilot/EU/eu/cities/"
"GlobalAddonDir"="/mnt/sdcard/copilot/addon"
"GPSDemoDir"="/mnt/sdcard/copilot/gpstracks/demo"
"LRGeoDir"="/mnt/sdcard-ext/copilot/EU/eu/places/"
"LRGlobalSaveDir"="/mnt/sdcard/copilot/save"
"LRGPSSaveDir"="/mnt/sdcard/copilot/gpstracks"
"LRGridDir"="/mnt/sdcard-ext/copilot/EU/eu/data/"
"LRInfoDir"="/mnt/sdcard/copilot/info"
"LRSaveDir"="/mnt/sdcard-ext/copilot/EU/eu/save/"
"PolyDir"="/mnt/sdcard-ext/copilot/EU/eu/polygons/"
"RazorCacheDir"="/mnt/sdcard/copilot/save/razor_cache"
"RegionDir"="EU"
"RootDir"="/mnt/sdcard/copilot/"
"SkinDir"="/mnt/sdcard/copilot/skin/"
"SpeechDir"="/mnt/sdcard/copilot/speech"
"UIConfigDir"="/mnt/sdcard/copilot/uiconfig/"
(veleno) said:
I removed the entire application: maps took over 6 GB.
How can I install the maps on SD card? Is it possible?
veleno
Sent from my XT910 using Tapatalk
Click to expand...
Click to collapse
This is one ****ed up problem Motorola has not dealt with yet...you cant remove apps to external SD card
Yes the app will stay on the internal memory. What we are doing is changing the configuration file paths to look for the maps on the external sd card. I have just managed to get this to work. You simply copy the maps to the external sd and change the paths in the cfg file to point to the maps on the external sd wherever you you see EU in the path on the cfg file. works 100%
dbreloaded said:
Hiya I recently faced this problem. Luckily I have a solution for you!
Solution
Modify the file "user.cfg" in "Internal storage/copilot" (in my case I've just copy the file to my sd card and modify in my desktop)
and change the value from sdcard(internal storage) to sdcard-ext (external sd card path may be different check in my files to see what path external sd is it may be external_sd or sdcard-ext)
Change wherever you see the letters "EU"
Click to expand...
Click to collapse
I've tried this on Copilot Live EU 9.3.0.173 and my phone which has "Phone storage" and "SD card"
My original user.cfg file looks like:
[Directories]
"AddonDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/EU/addon/"
"AudioDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/audio/"
"GlobalAddonDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/addon"
"GPSDemoDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/gpstracks/demo"
"LRGlobalSaveDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/save"
"LRGPSSaveDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/gpstracks"
"LRInfoDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/info"
"LRSaveDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/EU/save/"
"RegionDir"="EU"
"RootDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/"
"SkinDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/skin/"
"SpeechDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/speech"
"ThemesDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/themes/"
"UIConfigDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/uiconfig/"
"UpdateDir"="/mnt/sdcard/com.alk.copilot.eumarket.premiumeupan/save/update"
And whatewer I change, Copilot always want to download new maps to the phone storage :crying:I don't know what to do
EDIT:
I foun the solution I was a little to stupid before...
My external sdcard name is sdcard2 so I did this:
[Directories]
"AddonDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/EU/1/"
"AudioDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/audio/"
"GlobalAddonDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/addon"
"GPSDemoDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/gpstracks/demo"
"LRGlobalSaveDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/save"
"LRGPSSaveDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/gpstracks"
"LRInfoDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/info"
"LRSaveDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/EU/save/"
"RegionDir"="EU"
"RootDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/"
"SkinDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/skin/"
"SpeechDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/speech"
"ThemesDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/themes/"
"UIConfigDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/uiconfig/"
"UpdateDir"="/mnt/sdcard2/com.alk.copilot.eumarket.premiumeupan/save/update"
I shange every sdcard to sdcard2...I don't know is that correct but it works fine on my phone...When I change this in user.cfg file on phone storage, I have deleted some directories from phone storage (audio, gpstracks, info, save, speech, themes, uiconfig) becouse I thought I don't need them if after my changes in .cfg file....
When I start copilot again he creates this directories again on my phone storage, and now I have these Directories on my phone storage: audio, gpstracks, info, log, maps, pic, save, skin, speech, tablet, themes, uiconfig. But now Copilot uses only 36,2 MB of my phone storage...and I have map of whole Europe
I copy text in previous message but I cant delete this...
Here's the easy way to do this
Move the larger folders from any app to your external SD using Directory Bind:
http://forum.xda-developers.com/showthread.php?t=1410262
This may be a dumb question but please bear with me.
I edit the file changing sdcard to external_sd and save the file then reopen the file and it seems to be saved but when I launch the app it changes the entry back to sdcard. How do I get the edit to stick?
A.J.
moving maps on sdcard
area1509 said:
This may be a dumb question but please bear with me.
I edit the file changing sdcard to external_sd and save the file then reopen the file and it seems to be saved but when I launch the app it changes the entry back to sdcard. How do I get the edit to stick?
A.J.
Click to expand...
Click to collapse
Hello area1509,
I've exactly the same problem as you...
Did you find any solution ??
Ricky
this is how i got mine to work off the ext sd card.
my phone is a galaxy s2 i have 16gb internal and a 16gb sd card
you should have installed the APK and opened it 1 time.
you might have to download maps
after you are done and you have started the app and it worked
exit the app and connect USB to PC and read your internal you should see the folder
com.alk.copilot.eumarket.premiumeupan
you will have to copy this whole folder to your ext sd card
now open your user.cfg file
i changed my user.cfg to the following
[Directories]
"AddonDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/NA/addon/"
"AudioDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/audio/"
"GlobalAddonDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/addon"
"GPSDemoDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/gpstracks/demo"
"LRGlobalSaveDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/save"
"LRGPSSaveDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/gpstracks"
"LRInfoDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/info"
"LRSaveDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/NA/save/"
"RegionDir"="NA"
"RootDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/"
"SkinDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/skin/"
"SpeechDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/speech"
"ThemesDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/themes/"
"UIConfigDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/uiconfig/"
"UpdateDir"="/storage/extSdCard/com.alk.copilot.eumarket.premiumeupan/save/update"
now save your file user.cfg and put it in the com.alk.copilot.eumarket.premiumeupan folder
you can then delete the map out of the com.alk.copilot.eumarket.premiumeupan folder on the internal sd card
after you have done that you can open the app and wait for it wait for it bam it worked
copilot maps
Finally succeeded getting copilot maps to work from the external sd card of Samsung Galaxy S Blaze. First tried to modify user.cfg as described in this thread. When attempting to download the North America map, copilot would change the user.cfg back to the original with all the original locations pointing to what is the internal sd card for the Blaze. Copilot would then deliver a 'not enough space' error message as the internal sd portion of the blaze memory is under 2 gb. Then tried directory bind. This also did not work and the same out of space error popped up when downloading the large map file.
What finally did work was to download the copilot maps on another device and then transfer the maps to the Blaze external sd card. Having previously used directory bind, the copilot folder was already copied from the internal sd to the external sd on the Galaxy Blaze. Directory bind must still be used in order for copilot to access the larger map. To determine where to put the NA map file, first download a small state map like Alaska. Look in the copilot directories for this file and put the NA maps in the same location.
I assume that if the internal sd memory were large enough to accept the NA map file, directory bind would be all that is needed. I did not try to change the user.cfg file after putting the maps on the external sd and not using directory bind.
Ricky074 said:
Hello area1509,
I've exactly the same problem as you...
Did you find any solution ??
Ricky
Click to expand...
Click to collapse
Rickey I don't remember what script it was but it switched the internal memory with the SD card so the phone believed the SD card was the internal memory so I had 32GB internal but the phone is long gone.
Hope this helps a little.
Try doing it on your computer and deleting the original file and replace. If it still reverts back to default use DirectoryBind to move the data to your external_sd
read more about directory bind here - DirectoryBind
Use DIrectoryBind to map folders on the USB Storage to the external sd card. I done it now and got many large game data files installed on the external_sd of my Note including Gameloft games.
I found this thread looking for a solution for LG Optimus F3. Still can't believe the app developers haven't provided a simple checkbox yet (like most apps these days) to specify saving large amounts of static data on the SDCARD.
Anyway Directory Bind app is a bit finnicky, it loses the binds DB sometimes, plus it depends on SU working, and runs a background service that umounts and remounts SDCARD whenever the device connects to a USB. The simple solution I've used is to just modify the file /sdcard/com.alk.copilot.mapviewer/user.cfg & change every reference to '/storage/sdcard0/' to '/storage/sdcard_SD/' and then just save the NA/ and speech/ subdirs (which take up most of the space) on the sdcard, the rest of the app & data reside on the internal memory like default.
For those who cannot activate the "save maps to external SD Card" in CoPilot, here is a method to install CoPilot data including maps to external SD card.
Install the app CoPilot (fi. 9.6.x.x)
Start it, login to check license, but do not download maps
Exit app and force close app to be sure app is closed
Give CoPilot access to the external SD Card (needed on Kitkat and above!)
Either using rooted explorer or if phone is not rooted using file manager of TWRP (this can manage files as root):
Edit /system/etc/permissions/platform.xml (fi. using notepad++ on windows, be sure to keep unix file format (for LF))
Find android.permission.WRITE_EXTERNAL_STORAGE and android.permission.WRITE_MEDIA_STORAGE lines. These are XML sections. You need to make them look exactly like the strings below:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Save the platform.xml file.
It’s necessary to set the file permissions to 644 (rw-/r–/r–)
Reboot phone!
Copy folder com.alk.copilot.mapviewer to external SD card
Edit on internal SD card: com.alk.copilot.mapviewer/user.cfg and replace all references to internal SD to point to external SD:
Example (your external SD folder may have a different name!):
Code:
[Directories]
"AudioDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/audio/"
"GlobalAddonDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/addon"
"GPSDemoDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/gpstracks/demo"
"LRGlobalSaveDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/save"
"LRGPSSaveDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/gpstracks"
"LRInfoDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/info"
"RootDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/"
"SkinDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/skin/"
"SpeechDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/speech"
"ThemesDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/themes/"
"UIConfigDir"="/mnt/sdcard2/com.alk.copilot.mapviewer/uiconfig/"
Important: Copy this modified file (user.cfg) to external SD folder com.alk.copilot.mapviewer
Now start CoPilot and download your map.
You will see that the map will be downloaded on the external SD.
Optional: Now you can delete the internal SD folder com.alk.copilot.mapviewer
CoPilot data is now fully installed on the external SD card including your maps!

Categories

Resources