I now regret not buying the 32gb nexus 7, but i have seen that you can "bind" game data on the tablet and run it on a USB drive. I have used Directory Bind, GsScript, Foldermount etc. but none of them have worked for me. A few of the games i play take up 1-2 gb of storage space that i don't want to waste, so i would like to know if there is a way to mount these game folders to my USB drive. My OS is 4.4.2.
Any help would be appriciated.
Thankyou
I can't seem to get Folder-mount to work. Has anyone been able to do this on their Nexus?
ztdroider25 said:
I can't seem to get Folder-mount to work. Has anyone been able to do this on their Nexus?
Click to expand...
Click to collapse
are you using a USB OTG cable?
if you are try to get it to mount using apps on the market.
of you can get it to mount, and can read / write to it you could, in theory could move you game data to the usb, then create a sym link to it.
for example:
game data stored at /sdcard/thegame
your external for example is mounted at /storage/usbotg
mkdir /storage/usbotg/thegame
mv /sdcard/thegame /storage/usbotg/
ln -s /storage/usbotg/thegame /sdcard/thegame
You should backup game data first. I have not tried this myself
userdelroot said:
are you using a USB OTG cable?
if you are try to get it to mount using apps on the market.
of you can get it to mount, and can read / write to it you could, in theory could move you game data to the usb, then create a sym link to it.
for example:
game data stored at /sdcard/thegame
your external for example is mounted at /storage/usbotg
mkdir /storage/usbotg/thegame
mv /sdcard/thegame /storage/usbotg/
ln -s /storage/usbotg/thegame /sdcard/thegame
You should backup game data first. I have not tried this myself
Click to expand...
Click to collapse
I am using an OTG cable. I will try this method fore mounting the folders and let you know how it works.
Thankyou
userdelroot said:
are you using a USB OTG cable?
if you are try to get it to mount using apps on the market.
of you can get it to mount, and can read / write to it you could, in theory could move you game data to the usb, then create a sym link to it.
for example:
game data stored at /sdcard/thegame
your external for example is mounted at /storage/usbotg
mkdir /storage/usbotg/thegame
mv /sdcard/thegame /storage/usbotg/
ln -s /storage/usbotg/thegame /sdcard/thegame
You should backup game data first. I have not tried this myself
Click to expand...
Click to collapse
I tried to execute this command: ln -s /storage/usbotg/thegame /sdcard/thegame, but when i did the tablet came back with: link failed File exists. The busybox drivers are installed on my Nexus.
ztdroider25 said:
I tried to execute this command: ln -s /storage/usbotg/thegame /sdcard/thegame, but when i did the tablet came back with: link failed File exists. The busybox drivers are installed on my Nexus.
Click to expand...
Click to collapse
After getting the files from /sdcard/thegame and copying or moving them to /storage/usbotg/thegame
type
Code:
mv /sdcard/thegame /sdcard/thegame.bak
that is making a backup right now of your files in case stuff breaks.
then type
Code:
ln -s /storage/usbotg/thegame /sdcard/thegame
Then it should link.
Launch game and if all settings are present it worked. as long as /storage/usbotg/thegame has all your files.
userdelroot said:
After getting the files from /sdcard/thegame and copying or moving them to /storage/usbotg/thegame
type
Code:
mv /sdcard/thegame /sdcard/thegame.bak
that is making a backup right now of your files in case stuff breaks.
then type
Code:
ln -s /storage/usbotg/thegame /sdcard/thegame
Then it should link.
Launch game and if all settings are present it worked. as long as /storage/usbotg/thegame has all your files.
Click to expand...
Click to collapse
Thankyou,
This worked for me.
ztdroider25 said:
Thankyou,
This worked for me.
Click to expand...
Click to collapse
Welcome, glad to help, and thank you for clicking the thank you....
:good:
Related
Hi all, I've got a problem with Airsync. I can't tell it to save to my emmc/MP3 folder, which is where i keep all my music on my Incredible. It saves synced music to /sdcard/Music by default. I've tried making a symlink (both through ADB and terminal emulator) to the /sdcard/Music folder by using:
ln -s /emmc/MP3 /sdcard/Music
and it simply does not work. How would I do this correctly? Is there something I'm missing? Thanks!
Rom: CM7
Timmah339 said:
Hi all, I've got a problem with Airsync. I can't tell it to save to my emmc/MP3 folder, which is where i keep all my music on my Incredible. It saves synced music to /sdcard/Music by default. I've tried making a symlink (both through ADB and terminal emulator) to the /sdcard/Music folder by using:
ln -s /emmc/MP3 /sdcard/Music
and it simply does not work. How would I do this correctly? Is there something I'm missing? Thanks!
Rom: CM7
Click to expand...
Click to collapse
It is not possible. I have tried too. I think its because both emmc and sdcard are already linked to /mnt.
that makes sense. oh well, I guess they're releasing an update that will store music on emmc soon anyway.
I feel like of done this before. Instead of symlinking try remounting. In the terminal. Make sure you have an empty /sdcard/Music directory to serve as the mount point for /emmc/Mp3
mount /sdcard/Music /emmc/Mp3
or something like that. Sorry I don't remember more of the details, but It's been awhile and I'm away from my computer. Hope it helps.
[Tweak root] add extra +700mb to Internal memory storage from /cache & +600-900MB from /system folders.
just run terminal with root & paste code
su
chmod -R 777 /cache
mkdir /cache/"your-program-folder"
mount -o bind /cache/"your-program-folder" /storage/sdcard0/"your-program-folder"
add extra +600mb (+900mb if you have LiteRom) from /system folder.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/sharе
before you can write to /storage/sdcard/share mount it RW
su
mount -o rw,remount /system
after every reboot do it again. how add script to startup folder, any Idea?
all work great. I have 4.5GB + 700MB + 800MB internal storage for my music and maps.
But you cant use any OTA updates because your download /cache folder filed now. Remove all data before update
rm -R /system/share/*
rm -R /cache/*
Re: [Tweak root] add extra +700mb to Internal memory storage
Are you sure you got these commands right? And why don't you just make a script to automatically run these commands at boot? You know, so you don't have to keep running the commands over and over? And you have the work "program" spelled wrong. Its spelled with only 1 "m". Program, not programm.
Sent from my XT907 using Tapatalk 2
Re: [Tweak root] add extra +700mb to Internal memory storage
So what happens if you are using your whole internal sd including this 700 megs and you reboot? Does the system freak out?
Sent from my XT907 using Tapatalk 2
Update
sniperkill
absolutely right. And why don't you just make a script to automatically run these commands at boot?
How, do it, init.rc not work.
Clienterror said:
So what happens if you are using your whole internal sd including this 700 megs and you reboot? Does the system freak out?
Sent from my XT907 using Tapatalk 2
Click to expand...
Click to collapse
everything will be fine, just live little more space on /cache (100mb at least)
UPDATE 1st post. add extra +600mb (+900mb if you have LiteRom) from /system folder. Now I have 6GB internal storage for my music and maps.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/share
before you can write to /storage/sdcard/shear mount it RW
su
mount -o rw,remount /system
But you cant use any OTA updates because your download /cache folder filed now. Remove all before update
rm -R /system/share/*
rm -R /cache/*
serraxer said:
sniperkill
absolutely right. And why don't you just make a script to automatically run these commands at boot?
How, do it, init.rc not work.
everything will be fine, just live little more space on /cache (100mb at least)
UPDATE 1st post. add extra +600mb (+900mb if you have LiteRom) from /system folder. Now I have 6GB internal storage for my music and maps.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/share
before you can write to /storage/sdcard/shear mount it RW
su
mount -o rw,remount /system
But you cant use any OTA updates because your download /cache folder filed now. Remove all before update
rm -R /system/share/*
rm -R /cache/*
Click to expand...
Click to collapse
Well, make a new folder on your sdcard, I used root explorer. I called it "67tweaks", I then zipped up the folder, then navigated to my zipped folder and I removed the .zip extension (doing it this way allowed me to make a new text document, but theres prolly an easier way, but this is the way i used) and then I long pressed it so it would let me open it up as a text document. I deleted some jibberish that was inside, I then started with #!/system/bin/sh, then space, then pasted your commands under the space and I then placed the file under system/etc/init.d folder. Now every time I boot up, the script gets run. You can also use an app like "ROM toolbox" and go to scripts and just create a new script and select it to run at boot, or you can use SMmanager and create a script to run at boot.
serraxer said:
sniperkill
absolutely right. And why don't you just make a script to automatically run these commands at boot?
How, do it, init.rc not work.
I'm no dev so I wouldn't be able to make a script to run at boot, but if you don't have init.d support you can add a script to your init.qcom.post_boot.sh file in system/etc folder and it should run at boot.
Sent from my HTCONE using Tapatalk 2
Click to expand...
Click to collapse
Looks right to me.
Thanks for the info. I am learning to love my M more and more.
thinks, I'm going to have a try.
serraxer said:
[Tweak root] add extra +700mb to Internal memory storage from /cache & +600-900MB from /system folders.
just run terminal with root & paste code
su
chmod -R 777 /cache
mkdir /cache/"your-program-folder"
mount -o bind /cache/"your-program-folder" /storage/sdcard0/"your-program-folder"
add extra +600mb (+900mb if you have LiteRom) from /system folder.
su
mkdir /system/share
chmod -R 777 /system/share
mount -o bind /system/share /storage/sdcard0/sharе
before you can write to /storage/sdcard/share mount it RW
su
mount -o rw,remount /system
after every reboot do it again. how add script to startup folder, any Idea?
all work great. I have 4.5GB + 700MB + 800MB internal storage for my music and maps.
But you cant use any OTA updates because your download /cache folder filed now. Remove all data before update
rm -R /system/share/*
rm -R /cache/*
Click to expand...
Click to collapse
I cut and pasted this exactly and it doesn't work. Can you please reply with exact sequences. I keep getting mkdir failed for /cache/your-program-folder, File exists
Will this work on a bionic?
Sent from my DROID BIONIC using XDA Premium HD app
Hi
I'm trying to use a symlink from the internal SD card to the external one so I can use WikiDroyd on a larger disk. I have done this before to map google music to my extSDcard and it works great, using this command
ln -s /storage/extSdCard/googleMusic/ /data/data/com.google.android.music/files/music
but when I try
ln -s /storage/extSdCard/WikiDroyd/ /storage/emulated/0/WikiDroyd
I get Function not implemented. I'm guessing it's because /storage/emulated/0 doesn't support symlinks, is this because of it's disk format? Does anyone know how to find out it's format? Can I reformat it?
Note: I am using omega rom
Questions go in Q&A
Thread moved
Friendly Neighborhood Moderator
metronews said:
Hi
I'm trying to use a symlink from the internal SD card to the external one so I can use WikiDroyd on a larger disk. I have done this before to map google music to my extSDcard and it works great, using this command
ln -s /storage/extSdCard/googleMusic/ /data/data/com.google.android.music/files/music
but when I try
ln -s /storage/extSdCard/WikiDroyd/ /storage/emulated/0/WikiDroyd
I get Function not implemented. I'm guessing it's because /storage/emulated/0 doesn't support symlinks, is this because of it's disk format? Does anyone know how to find out it's format? Can I reformat it?
Note: I am using omega rom
Click to expand...
Click to collapse
Is /storage/emulated/0 the default directory for the app? If so, it may be failing due to trying to replace an existing directory with a symlink (particularly if that pre-existing directory is in use at the time).
If the app's directory setting can be altered, why not try putting the symlink elsewhere? Even if the app doesn't let you set a custom directory, creating your symlink elsewhere would, if successful, narrow down the likely causes of the error (unfortunately, if the app's directory setting is hard coded out otherwise unchangeable, then it would also prove that what you want to do is not possible, at least not through this approach)
Sent from my SPH-L710 using xda app-developers app
Are you sure that ln -s will work on non ext partitions? I don't think this won't work on FAT32/NTFS partitions.
lexridge said:
Are you sure that ln -s will work on non ext partitions? I don't think this won't work on FAT32/NTFS partitions.
Click to expand...
Click to collapse
That's a good point, I thought that certain configurations might work (like placing the link on an ext partition that points to a file on a fat 32 partition, since Linux can read both and Windows would never see the Linux-style link, for example) but I'll double check...
Sent from my SPH-L710 using xda app-developers app
styles420 said:
That's a good point, I thought that certain configurations might work (like placing the link on an ext partition that points to a file on a fat 32 partition, since Linux can read both and Windows would never see the Linux-style link, for example) but I'll double check...
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Just a thought, you might also try busybox ln -s and see if that works.
Hi guys, today i am here to tell you a method only tested on a galaxy y, but i hope it will work for all. this is a method to change the download location for play store.
WARNING!!!
1. WARRANTY IS NOW VOID.
2. NOT MY PROBLEM IF SOME APP FAIL.
3. PLEASE, PLEASE, PLEASE DO A NANDROID BACKUP BEFORE THIS.
This is a simple code but it needs root for sure. now the necessities are as follows:
1. A complete nandroid backup
2. Root Permissions
3. Any terminal emulator. e.g https://play.google.com/store/apps/details?id=hecticman.jsterm
4. You need to know the default download location and the mount point of sd card( if that is where you want the new download location )
Now let's start.
Just know this that mnt/sdcard will have to be replaced by your sdcard mount point and data/app will have to be replaced by the default download location. i underlined them for easy understanding.
NOT MY PROBLEM IF THIS FAILS AND YOUR PLAY STORE CRASHES. JUST DO A NANDROID RESTORE.
THERE WILL ALREADY BE A $ AT START SO U DON'T HAVE TO PUT IT.
$ su
# mkdir /mnt/sdcard/playstore
# cp -r /data/app/* /mnt/sdcard/playstore
# rm -rf /data/app
# ln -s /mnt/sdcard/playstore /data/app
Click to expand...
Click to collapse
what the code does:
1. Grant super user permissions
2. Make a directory in sdcard named playstore.
3. Copy all items (recursively) from data/app to sdcard/playstore
4.Symlink the new location to fake the original.
Hitting Thanks can help.
and once again PLEASE BACKUP BEFORE THIS AND RESTORE IF NOT SUCCESSFUL.
This is based on the code used by link2sd.
Could you please double check your code fragments?
For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.
The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.
Just my 2¢
thanks dude
DThought said:
Could you please double check your code fragments?
For me it looks, like you create a directory "playstore", but then copy to a directory "playstore-temp", which will most like not exist at that moment.
The ln you're using can't realy work as long as the /data/app directory is still in place... so you would first need to delete /rename it.
Just my 2¢
Click to expand...
Click to collapse
looks like i was drunk making so much mistakes . corrected it.
It's not so simple if you use Link2SD. If you link some apps to sdext partition, some files in /data/app are symlinks which cannont be copied to /mnt/sdcard/playstore as it's FAT32. You have to try to symlink /app/data to folder on sdext partition. Create a folder /data/sdext2/playstore, copy /data/app/* there, delete /data/app and symlink /data/sdext2/playstore as /data/app. Sdext partition uses linux filesystem and all symlinks should work properly. I haven't tested it yet, but will do in a minute.
EDIT:
It doesn't work with Link2SD. Phone hangs on boot. It's probably cause Link2SD app must be directly in internal memory (so in real /data/app, not symlinked). I'll try to symlink /data/data or /data/dalvik-cache to save some internal memory but I doubt it'll work.
I am having a weird problem. My USB drive mounts just fine to /sdcard/usbStorage/sda1 and I can browse files, copy to and from the drive no problem. But when I unmount and disconnect, one folder stays in the sda1 directory, and the drive stays listed in StickMount. This happened once before and I just deleted the usbStorage directory but this time when I try to delete it I get "permission denied." I tried with Total Commander, and with Terminal Emulator, using both rm -rf and rmdir after switching to root with "su." I also tried chmod 777 and chown root, to no avail.
Does anyone know how to get rid of this mount?
Nexus 7 2013, stock android 5.1.1, rooted, wth StickMount 3.26 installed. I am using a Patriot 64GB microUSB stick.
Nevermind, I was able to delete it by rebooting into recovery and using adb as root.
lehrin said:
I am having a weird problem. My USB drive mounts just fine to /sdcard/usbStorage/sda1 and I can browse files, copy to and from the drive no problem. But when I unmount and disconnect, one folder stays in the sda1 directory, and the drive stays listed in StickMount. This happened once before and I just deleted the usbStorage directory but this time when I try to delete it I get "permission denied." I tried with Total Commander, and with Terminal Emulator, using both rm -rf and rmdir after switching to root with "su." I also tried chmod 777 and chown root, to no avail.
Does anyone know how to get rid of this mount?
Nexus 7 2013, stock android 5.1.1, rooted, wth StickMount 3.26 installed. I am using a Patriot 64GB microUSB stick.
Click to expand...
Click to collapse