New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
bipbop
Old
#1  
Junior Member - OP
Thanks Meter 3
Posts: 20
Join Date: Nov 2008
Location: www
Default [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
__________________
Samsung Galaxy S I9000 (GB) / Hyundai A7HD (ICS)
 
malcho
Old
#2  
malcho's Avatar
Senior Member
Thanks Meter 1953
Posts: 2,400
Join Date: Aug 2010
Location: Sarajevo

 
DONATE TO ME
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.
Check my youtube channel
http://www.youtube.com/user/spale1974?feature=mhee

CIT Computing - Thin client software
http://cit-computing.com/
 
Rubysz
Old
#3  
Rubysz's Avatar
Member
Thanks Meter 5
Posts: 45
Join Date: Aug 2011
http://www.google.com/search?q=gamel...me+external+sd
Coding rule #1: Don't reinvent the wheel if you don't have to.
Rubys.
We could change the world if we had the source code.
 
bipbop
Old
(Last edited by bipbop; 26th October 2011 at 09:46 AM.)
#4  
Junior Member - OP
Thanks Meter 3
Posts: 20
Join Date: Nov 2008
Location: www
Quote:
Originally Posted by Rubysz View Post
http://www.google.com/search?q=gamel...me+external+sd
Coding rule #1: Don't reinvent the wheel if you don't have to.
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 ?
__________________
Samsung Galaxy S I9000 (GB) / Hyundai A7HD (ICS)
 
xxbeanxx
Old
#5  
xxbeanxx's Avatar
Senior Member
Thanks Meter 46
Posts: 295
Join Date: Sep 2010
Location: Conception Bay South
Quote:
Originally Posted by bipbop View Post
should it work with fat32 ?
No. FAT32 doesn't support
symlinking.

Sent from my GT-I9000 using Tapatalk
 
bipbop
Old
#6  
Junior Member - OP
Thanks Meter 3
Posts: 20
Join Date: Nov 2008
Location: www
Quote:
Originally Posted by xxbeanxx View Post
No. FAT32 doesn't support
symlinking.

Sent from my GT-I9000 using Tapatalk
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 ?
__________________
Samsung Galaxy S I9000 (GB) / Hyundai A7HD (ICS)
 
xxbeanxx
Old
#7  
xxbeanxx's Avatar
Senior Member
Thanks Meter 46
Posts: 295
Join Date: Sep 2010
Location: Conception Bay South
Quote:
Originally Posted by bipbop View Post
So, question is, can we make a script to unmount "sdcrad\external_sd" and mount as "sdcard\anything" ??
Have a look at /system/etc/vold.fstab

Sent from my GT-I9000 using Tapatalk
 
bipbop
Old
#8  
Junior Member - OP
Thanks Meter 3
Posts: 20
Join Date: Nov 2008
Location: www
Quote:
Originally Posted by xxbeanxx View Post
Have a look at /system/etc/vold.fstab

Sent from my GT-I9000 using Tapatalk
ok, going deeper
Is it possible to link mount point to another folder ?
__________________
Samsung Galaxy S I9000 (GB) / Hyundai A7HD (ICS)


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more