[Q] Linking folders/files? - Galaxy S I9000 Q&A, Help & Troubleshooting

Hi.
I'm curious about how can I link a folder on the external SD to the internal. For example I have a folder "gameloft" on my internal, which consumes quite a lot of space, and I'd like to link it from the external SD rather than having it on the internal. Is it possible somehow?
Thanks in advance.

Best beat is to use busybox to link
Sent from my GT-I9000 using Tapatalk

How to do that? I have busybox installed.

You could try:
ln -s [source] [target]
Please tell me if it worked.

Related

[Solved]apps2sd2 method?!?!?

Hey guys. I just followed the new and improved apps2sd2 method and when I went to apps2sd2 I clicked copy all apps to sd card and now after my phone restarted I have no apps and my sd card seems to be ... wiped. I just looked around and foudn out that my computer is not recognizing the other partition so it thinks my 8gb card is 6 gb. That means my apps may still be there, how can I retrieve them?
Kavin2468 said:
Hey guys. I just followed the new and improved apps2sd2 method and when I went to apps2sd2 I clicked copy all apps to sd card and now after my phone restarted I have no apps and my sd card seems to be ... wiped. I just looked around and foudn out that my computer is not recognizing the other partition so it thinks my 8gb card is 6 gb. That means my apps may still be there, how can I retrieve them?
Click to expand...
Click to collapse
You need to use terminal to type:
$su
#cp -r /system/sd/app /data/app
that's where the apps are usually located on the sdcard. Or you can try using Root Explorer to access that folder and see if they're there. Its probably just missing some symlinks tho which is easy enough to fix. Again, back in terminal:
ln -s /data/app /system/sd/app
should do the trick.
h.nocturna said:
You need to use terminal to type:
$su
#cp -r /system/sd/app /data/app
that's where the apps are usually located on the sdcard. Or you can try using Root Explorer to access that folder and see if they're there. Its probably just missing some symlinks tho which is easy enough to fix. Again, back in terminal:
ln -s /data/app /system/sd/app
should do the trick.
Click to expand...
Click to collapse
I thought the new method used unionfs rather than symlinks :-/
AdrianK said:
I thought the new method used unionfs rather than symlinks :-/
Click to expand...
Click to collapse
Eh, I'm just doing this off the top of my head from when I used the app. Sometimes it wouldn't work, and I would just link it manually cuz at least I could access the partition.

which location android market install apps

hello can somebody tell me which location does android market install applications. SD Card o phone memory?
cyilmaz10 said:
hello can somebody tell me which location does android market install applications. SD Card o phone memory?
Click to expand...
Click to collapse
It installs in phone memory in "/data/app"...
- Kiljacken
Can we change it to SD Card? Is the phone has a setting for it? Or an other way?
does anyone know how to install the apps int the micro sd? it's really important 'cause I've no space to install anything more...
...app2sd but doesn't work on tattoo for now..we all are waiting
I tried to let app2sd work on my tattoo installing busybox on the device and following this guide:
w ww.androidworld.it/wiki/Apps2SD
but when I paste this on the prompt:
busybox df -h
I don't have any line with /system/sd on the console...
I'm scared
(excuse me for my english...I'm italian)

[Q] Link between folders possible ?How to make auto-script ?

Hello,
As I have a problem with not enough internal memory for gameloft titles, I`ve inserted my 8GB Sd card into my I9000, just to find out it is attached as "external_sd" folder.
I was thinking about using my external card as "gameloft" folder.
So my question is: how to make a link between "gameloft" folder on internal sd memory so that it links directly to inside of the"external_sd\gameloft" folder ? I know it can be done- I did smthg like this when playing with app2sd (moving dalvik cache, app and other folders to ext partition on my SD card on my previous phone).
I also need some proposal on how to automate the process of making this link - for example: how to create some script and put it in auto-startup, so every time I reboot my phone, the link persists.
I think this way many people would be able to increase their space with external SD cards
If you know how to make script put it in /system/etc/init.d folder and it will execute at every startup.Give full permission on script.
http://www.google.com/search?q=gameloft+game+external+sd
Coding rule #1: Don't reinvent the wheel if you don't have to.
Rubysz said:
http://www.google.com/search?q=gameloft+game+external+sd
Coding rule #1: Don't reinvent the wheel if you don't have to.
Click to expand...
Click to collapse
Coding rule #2: Square is a square, but inventing a wheel is something that runs the civilization forward
Really, you thought that I didnt check all the possibilities ? Using somebody simple program, wchich only changes settings inside of apk is not what I`m interested for, especially this works only for gameloft games, and I`d like to have the feature without digging in any apk file.
I was thinking about this - I also came up to conclusion, that dynamic links work only under linux partitions (for ex: ext2,ext3,ext4) and not on fat32 system, which we have on our internal memory and sd cards.
My second thought was that I remember in the times of good-old dos it was possible to make a link between folders, but in this case we have a mix - linux os + fat32 partitions.....
I have to digg how to make a auto-link script cause I dont remember too much of linux scripting/command line.
edit: do You think that using this command is enough: ln -s /sdcard/gameloft /sdcard/external_sd/gameloft
could it be so simple ? should it work with fat32 ?
bipbop said:
should it work with fat32 ?
Click to expand...
Click to collapse
No. FAT32 doesn't support
symlinking.
Sent from my GT-I9000 using Tapatalk
xxbeanxx said:
No. FAT32 doesn't support
symlinking.
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
ok, but what about mount command (mnt) ??
As I understand, Android = linux.
If so, we have internal memory mounted as "sdcard" folder and our external micro sd mounted as "sdcard\external_sd" , right ?
So, question is, can we make a script to unmount "sdcrad\external_sd" and mount as "sdcard\anything" ??I think this would be great , as we could mount the sdcard as any folder - for example as "Android" or "Gameloft", thus increasing available space very much .
Anybody can make this kind of simple auto-start script ?
bipbop said:
So, question is, can we make a script to unmount "sdcrad\external_sd" and mount as "sdcard\anything" ??
Click to expand...
Click to collapse
Have a look at /system/etc/vold.fstab
Sent from my GT-I9000 using Tapatalk
xxbeanxx said:
Have a look at /system/etc/vold.fstab
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
ok, going deeper
Is it possible to link mount point to another folder ?

Solved! How to swap the internal sd storage with the external one

Hello everybody.
I'm searching for a way to swap between the internal sd storage and the external one on my Galaxy S3 Mini because the internal storage is not enough big to install games and other big apps. I've seen there is a way for the S3, but I don't know if it's possible for the Mini too...
So, please, if anyone can help me...
EDIT: I've found a way to do that, and it only needs to have a Galaxy S3 Mini i8190 rooted.
Okay let's go.
I took the method from this thread: http://forum.xda-developers.com/showthread.php?t=1886091
But it's not exactly the same on the Mini.
The following quote is the instructions taken from the thread with the improvements ( in red ) for the i8190.
NB: I can't answer to questions since I'm not expert at all, I got it working so I give you the solution, that's all I can do.
1. First, I'd recommend making a Nandroid backup of your phone.
2. Next, just to be extra safe, I would backup your internal SD card to your PC. While you are doing that, if you have data on the external SD card, back that up too.
3. Next, I would format your external SD card to fat 32. (You could probably use Ext format too, but I didn’t test that.)If you already have it in that format, and have content on it, this won't affect the content, but back it up just to be safe. It’s probably better to have the Ext SD blank to begin with, you can always copy back its content from your pc.
4. Next copy the contents of the internal SD to the External SD card. This is to avoid confusion about apps and such.
5. Next install script manager free from the play store:
https://play.google.com/store/apps/...anager&feature=nav_result#?t=W251bGwsMSwyLDNd
It will show up on your phone as S manager ads.
You MUST install BusyBox too!! https://play.google.com/store/apps/details?id=stericson.busybox
6. Download the mod from here: https://dl.dropbox.com/u/6305/SD Card Hack SG3/11extsd2internalsd
( save as ) And put it into the /data directory of your phone
7. You must edit this script for it to work on Mini. Change /mnt/sdcard to /storage/sdcard0 and /mnt/extSdCard to /storage/extSdCard
(This vary depending of your phone, so check where is located internal storage, it was /storage/sdcard0 for me, and the external SD, it was /storage/extSdCard for me.)
8. Open the script manager app, and select Browse as Root in the config screen. Tell it to remember this setting.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Script manager browse as root and save.png
9. Using Script Manager, navigate to that file in the /data directory. Press and hold the file name until the menu pops up, and click on properties.
(Unix geeks set them to 777, and everyone else copy the picture below. Click OK.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Permission settings 777.png
10. Click on the scipt now.. Click on the “Is script” button.
11. Now tap on the buttons that say Su, Boot, and Save. The file name will come up in yellow after the save.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Script manager setting after save.png
12. Reboot your phone and you should see the swap working and be able to access both internal and external SD cards. The external card will show up as sdcard, and the internal card will show up as extSDCard. Your apps should now install to the external card, since your phone will think it's the internal card. Is that confusing? It was to me too!
Good luck and please share your experiences specifying which ROM you used, so that others can avoid frustration.
Thank you’s always appreciated.
Click to expand...
Click to collapse
Try this it might solve you're solution. http://forum.xda-developers.com/showthread.php?t=1410262
Sent from my GT-I8190 using xda premium
No, sorry, I've already seen that but it's not a way to swap the internal with the external sd storage..
Jalubyc said:
Hello everybody.
I'm searching for a way to swap between the internal sd storage and the external one on my Galaxy S3 Mini because the internal storage is not enough big to install games and other big apps. I've seen there is a way for the S3, but I don't know if it's possible for the Mini too...
So, please, if anyone can help me...
Click to expand...
Click to collapse
for big apps or games you need to put a additional "external" sdcard in your galaxy s3 mini..... for example i have installed the game "Need for Speed - Most Wanted" 1,8GB of the game is on my additinal "external" sdcard and the rest (40mb) are installed on device.....
enox.co said:
for big apps or games you need to put a additional "external" sdcard in your galaxy s3 mini..... for example i have installed the game "Need for Speed - Most Wanted" 1,8GB of the game is on my additinal "external" sdcard and the rest (40mb) are installed on device.....
Click to expand...
Click to collapse
I've an external sdcard, I bought one of 32GB, but I can't use it as I wanted to because there is no way to install apps into the sd card. So I'm searching for a way to let know the phone that the external sd is the internal storage and that the internal storage is the external sd card.
I've found a way!
Well what is it then.
Sent from my GT-I8190 using xda premium
kicker63 said:
Well what is it then.
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
Please take a look at my first post. I edited it with the solution.
Hi Jalubyc
I've just tried your solution above and my phone is showing under storage
Device memory Total space 4.54GB
Available 378Mb
SD Card Total Space 29.71GB
Available 27.12GB
So it looks like my first attempt didn't work
Problems I found were firstly at step 6, I couldn't download the mod on phone. I was using chrome and there is no (save as) option. I can only save the link. On PC I saved the page as a text doc and edited the sdcard and extsdcard bits before saving the script. Where is the /data directory? Am I supposed to create a "data" folder in the root of my internal sdcard or copy to the data folder in the android folder? I put it in the android/data/ folder and it didn't work.
Once this is working is it safe to delete the contents of sdcard0 to get my 4.54gb back. I also take it any ROM updates would revert everything back
jazzzy786 said:
Problems I found were firstly at step 6, I couldn't download the mod on phone. I was using chrome and there is no (save as) option. I can only save the link. On PC I saved the page as a text doc and edited the sdcard and extsdcard bits before saving the script. Where is the /data directory? Am I supposed to create a "data" folder in the root of my internal sdcard or copy to the data folder in the android folder? I put it in the android/data/ folder and it didn't work.
Once this is working is it safe to delete the contents of sdcard0 to get my 4.54gb back. I also take it any ROM updates would revert everything back
Click to expand...
Click to collapse
Oh no you're totally out of the solution. The /data directory is at root of the phone, so not in a sdcard. Use chrome from your PC to save as and put in into your sdcard before putting it into the /data directory with ES Explorer or another file explorer that's supporting root.
For the ROM updates I don't know because I've never tried.
I still cannot save the script using 'save as' as I don't have the option. I have 'save link as' which saves it as a text document. Edited it as stated.
I've found the data folder but ES explorer wouldn't allow me to copy my script to it and is showing the folder as blank.I got root browser lite from the play store which worked okay in allowing me to copy to the data folder. I used s manager lite to do its stuff and rebooted. No success - .
I'm using Android version 4.1.2/ Build number JZO54K.I8190DXALL3 .
Are you positive about the /storage/ change to the script as I remember when using directory bind it was /mnt/extSdCard/ and /sdcard/.
There is a /mnt/sdcard/ too which contains the same files as other location so possibly script can run unchanged. Getting a bit frustrated now as I have an old HTC Desire with over 300 apps (70+ games) with internal memory of 137Mb out of 148Mb and 10Gb free on sdcard out of 32gb
---------- Post added at 02:20 PM ---------- Previous post was at 01:42 PM ----------
Ok working now. Your script changes were correct. Device memory total space 29.71GB with 27.12GB free. Sd card total space 4.64gb with 800Mb free.
Now to get my full 4.64Gb back which folder contents do I delete? I think deleting the contents of extsdcard in my files. Thanks you've changed my phone from a very limited phone to something much better.
It is a bit strange way to solve free space problems.
I have 8GB version with 4.5GB free the box. When I installed all games and apps that I needed there was something about 800MB free.
My solution is simple:
1. install Directory Bind
2. Make link: mount="/sdcard/Android/", source="/storage/extSdCard/Android/" with "Transfer Files" option
3. Wait till the end of process (can take alot of time depends from your data)
4. Enjoy!
After this simple manipulations I got 3.6GB free in internal memory, installed 2 additional games (including Need for Speed Most Wanted with huge data) and it shows 3.4GB now.
You can make as much links as you want, of course. But moving "/sdcard/Android/" to external SD is enough
I tried directory bind and it just copied the contents of my internal sdcard to my external sdcard. It didn't move the contents as it was supposed to. I ended up with a copy of the files on both sdcards. If I tried to delete from my internal sdcard it also deleted the contents of my external sdcard. I couldn't for the life of me figure out what I had done wrong as I'd followed the instructions as far as I could tell. Now my phone is seeing a massive internal sd card and a 4Gb external sd card. I still can't get spiderman total mayhem to work though it throws up an error while downloading the game data
you should not bind root folders via directory bind. And it makes symlinks so it will looks like content does not deleted from internal SD but it shown from external SD already.
flashable zip
Hi!
Do you think that is possible to install the mod via a flashable zip?
Many thanks!
Yes it is possible. Take a look of the post for the galaxy s3, it is explained. But you must edit the script to make it working.
plvigo said:
Hi!
Do you think that is possible to install the mod via a flashable zip?
Many thanks!
Click to expand...
Click to collapse
Not possible, we do not have a unlocked kernel, therefore we cannot load unsigned zips.
dolar4ik said:
you should not bind root folders via directory bind. And it makes symlinks so it will looks like content does not deleted from internal SD but it shown from external SD already.
Click to expand...
Click to collapse
Sorry I don't understand what you've written. What do you mean do not use to bind root folders? What's a symlink?Are you saying the folders I'm seeing on sdcard0 are dummy folders and the contents have been moved to extsdcard? I've swapped my sdcards over using the script now so no longer using directory bind.
Jalubyc said:
You MUST install BusyBox too!! https://play.google.com/store/apps/d...ricson.busybox
6. Download the mod from here: https://dl.dropbox.com/u/6305/SD C...tsd2internalsd
( save as ) And put it into the /data directory of your phone
7. You must edit this script for it to work on Mini. Change /mnt/sdcard to /storage/sdcard0 and /mnt/extSdCard to /storage/extSdCard
Click to expand...
Click to collapse
i have two questions:
1: What do i have to do with this data:
#!/system/bin/sh
#extsd2internalsd is a modification that allows to switch internal sd to external sd and viceversa. With this you can use default internal sd only for app storage #and the external sd to store all apps resource and all others stuff. The resut is a very big increase of installable apps on gs3
#All credits to Mattiadj of xda forum for the idea and script and to mike1986 for the cmw zip.
#xda thread url at
#Script Modified for U.S. Galaxy S3s by Zedomax at GalaxyS3Root.com to be compatible when sdcard is not inserted.
busybox mount -o remount,rw /
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
if busybox mount | busybox grep vold/179:97; then
busybox mount -o bind /data/media /mnt/extSdCard
fi
Click to expand...
Click to collapse
And 2: how do i edit what is on step 7?
jazzzy786 said:
Sorry I don't understand what you've written. What do you mean do not use to bind root folders? What's a symlink?Are you saying the folders I'm seeing on sdcard0 are dummy folders and the contents have been moved to extsdcard? I've swapped my sdcards over using the script now so no longer using directory bind.
Click to expand...
Click to collapse
Symlink
symlink in human words is just a folder redirect.
For example, you have symlink that links folder "/storage/mydata/" to folder "/sdcard/mynewdata/"
When some application, system or user will try to get data from folder "/storage/mydata/", the data data from "/sdcard/mynewdata/" will be shown but folder path will be not changed.
You should not link root folders such as "/sdcard/", "/" ... coz it may prevent problems.

[Q] FolderMount Compatibility

Hi,
My phone has been running low on internal space and I wonder if using FolderMount will eventually help. I've read some articles and it seems it only mentioned "internal sd card", I need help whether it supports adding /data/app folder as the source.
Samsung Galaxy Ace - JB 4.1.2 (Custom ROM Jellaxy)
cliffflip said:
Hi,
My phone has been running low on internal space and I wonder if using FolderMount will eventually help. I've read some articles and it seems it only mentioned "internal sd card", I need help whether it supports adding /data/app folder as the source.
Samsung Galaxy Ace - JB 4.1.2 (Custom ROM Jellaxy)
Click to expand...
Click to collapse
LOL! I've never heard it... well that you want is to increase the internal memory space isn't it? If I were you, I'd use int2ext script, to avoid troubles It also is easier, so you'll only need and sd-ext partition and to flash the script
Thanks for your reply,
Is there any tutorial link about it?
Oh how about a command "adb shell pm getInstallLocation" via adb, will this work too? I mean to change the default installation folder to external sd card?
cliffflip said:
Thanks for your reply,
Is there any tutorial link about it?
Oh how about a command "adb shell pm getInstallLocation" via adb, will this work too? I mean to change the default installation folder to external sd card?
Click to expand...
Click to collapse
Here it is:
http://forum.xda-developers.com/showthread.php?t=1716124

Categories

Resources