Can't run mount script with Link2SD - Sony Xperia L

Any solution for this problem ?
http://forum.xda-developers.com/showthread.php?t=919326
As mentioned in the above link, i hv followed every step but still can't get this to work.
1.) Rooted my Xperia L with Rootkit for Xperia on latest firmware 15.3.A.1.12 (stock kernel).Root successful.
2.)Installed latest version of Link2sd, i.e. 3.1.2
3.)Connected my phone to pc as mass storage device
Formatted external 32gb sandisk card with Minitool in two partitions.First one is 20gb, primary, fat32.
Second 10gb, primary, fat32
4.)Disconnected the phone from pc & rebooted it.
5.)Checked the Storage in settings & it was showing only the second partition of my ext. sd card, i.e. 10gb
6.)Ran Link2sd, it asked for Super User permission which i granted with SuperSu
7.)Then it asked for filesystem for the second partition on ext card.i chose fat32.
8.)In next screen Link2sd said it Mount script error. Mount script cannot be created. mount : No such file or directory.
9.)Again i ran that script from left pane of link2sd.It said to reboot the phone which i did.
10.)From then on the phone goes into bootloop whenever i create two partitions in that external card.
I have to delete both partition and format it again as single one and then put it back into phone and it will normally boot.
Anyone successfully transferred apps, games to ext card with link2sd ? Pls guide me.

If you want to transfer games, GL to SD is the best option available to rooted users to transfer game data to ext.SD Card! You can also transfer apps using that, but it's not recommended. But I believe you must not be having apps that take 4gb+? I have tested GL to SD with my XL - Virtua Tennis, Asphalt 8 all work like charm and occupy no space in my Int.SD Card.

thanks .. i'll try that ...
for apps what i should use ? what about foldermount or apps2sd ?

JOYGR said:
thanks .. i'll try that ...
for apps what i should use ? what about foldermount or apps2sd ?
Click to expand...
Click to collapse
Did not try, will give a go tomorrow and tell you! Perhaps you should also try.. I had a good experience with GL to SD, so did not try them..Heard of Apps2SD Quiet often, but never Foldermount.

ok .. i'll try gl to sd
is there any bug in foldermount ?
if someone solved my link2sd prob, it would have been nice...... if i create a second partition in ext card, the phone goes into bootloop ... i think the mount script can't recognise it during bootup ... is there anyway to clear that mount script ?

can anyone atleast guide me how to do this using Terminal ?
1. Install Link2SD, launch so it makes the mounting script.
2. Remove mount scripts from /etc/init.d using terminal in my device.
Code:
cd /etc/init.d ; rm 05mountsd ; rm 11link2sd
3. transform to system app by moving Link2SD from /data/app to /system/app
Code:
mv /data/app/com.buak.Link2SD-1.apk /system/app/com.buak.Link2SD-1.apk ;reboot

JOYGR said:
can anyone atleast guide me how to do this using Terminal ?
Click to expand...
Click to collapse
What all are the files you are having in /etc/init.d directory?

Related

Apps on SD card + Cache to SD Card

Rooted G1 - JF 1.41
I finally broke down and got a 16GB card. I made 3GB ext2 and the rest FAT32. I successfully have apps installing to the ext2 part. I also moved cache for about 50 programs to the ext2 part. I want to keep all system files on the ext2 part and just use the fat32 part for media and personal files. (I actually want to make that a ext2 part so I have nothing M$ in my phone but, compatibility to other computers would just make it too much a pain)
But anyway my main question I trying to figure out is....
If the app has been installed on the SD card, do you still need to sim-link the cache to the SD card? or does it cache in its installed directory, which in now already on the SD card.
And I also want to remove Amazon mp3, myfaves, and other crap pre-installed that I don't use.
And also I'd like to understand the file setup better. Im not a programmer but I am a normal Linux user (M$ free 3+ yrs. - and love it!)
And my next "mod" will be to install Debian
- I plan to install to my ext2 part. any advce?
LucidREM said:
2. you created the FAT32 / EXT2 combo partitions
SPECIAL NOTE:
EXT2 seems to have problems bigger than 2G .. recommended not to exceed 1.5G .. 500M is actually more than enough for most people
MicroSD should be 2G/4G/8G class6 .. without class6 you should not bother moving apps to the SD​
Click to expand...
Click to collapse
,.........
ryanroth said:
Rooted G1 - JF 1.41
I finally broke down and got a 16GB card. I made 3GB ext2 and the rest FAT32. I successfully have apps installing to the ext2 part. I also moved cache for about 50 programs to the ext2 part. I want to keep all system files on the ext2 part and just use the fat32 part for media and personal files. (I actually want to make that a ext2 part so I have nothing M$ in my phone but, compatibility to other computers would just make it too much a pain)
But anyway my main question I trying to figure out is....
If the app has been installed on the SD card, do you still need to sim-link the cache to the SD card? or does it cache in its installed directory, which in now already on the SD card.
And I also want to remove Amazon mp3, myfaves, and other crap pre-installed that I don't use.
And also I'd like to understand the file setup better. Im not a programmer but I am a normal Linux user (M$ free 3+ yrs. - and love it!)
And my next "mod" will be to install Debian
- I plan to install to my ext2 part. any advce?
Click to expand...
Click to collapse
How do you save the caches of specific apps to SD? (Coding-wise)
I did a automated script provided by someone that only did apps like Browser, Maps, Steel, Tunewiki, and a few others.
How do you save the caches of specific apps to SD? (Coding-wise)
basicly I just removed the cache directoy, made new dir on sd, and made link to new cache directory.
cd /data/data/*app name* (something like com.android.**)
rm -R cache (remove existing cache directory)
mkdir /sdcard/cache/*appname* (make directory where you want the cache to go)
ln -s /sdcard/cache/*appname* cache (make a link to cache directoy you made on the sd card)
now the cache directory is just a link to the directory you made on the sd card.
so when it wants to write to /data/data/*appname*/cache it acually writes to /sdcard/cache/*appname*
make sence? Im not good at explaining, buy I'll try.
also be careful not to clear the cache (or "app data") via settings-manage applications, this will delete the apps cache directory that is now a link to the sd card.
LAg
How is the lag when you sym link the cache of certain apps to the ext2 with a class 2 card?
dont remove myfaves, it is tied into other apps such as contacts/phonebook,
i dont think you should try on a class 2 card, as the one of the post say class 6 is recomended
ryanroth said:
If the app has been installed on the SD card, do you still need to sim-link the cache to the SD card? or does it cache in its installed directory, which in now already on the SD card.
Click to expand...
Click to collapse
if you linked /data/app and /data/app-private over to the SD that is just the APK files that run the program .. cache files are stored under /data/data

Solved! How to swap the internal and external SD cards so apps install externally

If you are like me and bought the 16GB version of our beloved SG3, thinking you could always move apps to the external sd card, then this mod is for you. It swaps the internal and external sd cards so apps install on your external card, because your phone is fooled into thinking the external card is the internal card.
I suggest that if you are going to do this, you should probably do it right after installing a new ROM, and before you install any apps. That way everything will get installed onto the external SD card.
I didn't invent this, Zedomax adapted in from mattiadj. But most people haven't been able to get it fully working, probably due to variations in the init.d function of various ROMS. They'd be able to see the External SD card as the internal SD, but the internal SD would disappear. This method avoids using init.d, and instead uses the app Script Manager to load the script on boot.
After much fooling around, I figured out how to do it so the External SD card and the internal cards are swapped, but you can see both with any file Explorer. I got it working on CleanROM 2.0, but it should work on Beans 10 as well.
Here's how to do it: Warning, if you do not understand the following instructions, or don’t have experience doing these things, you probably don’t want to do this hack. I am not responsible if you a) brick your phone, b) delete your data, or c) get very frustrated. That being said, the most likely failure will be that you only see the one card (the External card).
Back everything up that you care about first!!!!
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.
6. Download the mod from here: http://downloadandroidrom.com/file/...ternalsd_gs3_fat32orextfat_US_ZEDOMAXv0.2.zip
7. You’ll see a folder called: 11extsd2internalsd_gs3_fat32orextfat_US_ZEDOMAXv0.2.zip
You need to unzip the folder, then go to System/etc/init.d and copy the 11extsd2internalsd file from there to your phone. Put it into the /data directory. Use Root Explorer, and your phone will need to be rooted.
(https://dl.dropbox.com/u/6305/SD Card Hack SG3/11ext file in data directory.png)
Or you can get just the 11extsd2internalsd file here: https://dl.dropbox.com/u/6305/SD Card Hack SG3/11extsd2internalsd
8. Using Root Explorer, navigate to that file in the /data directory. Press and hold the file name until the menu pops up, and click on permissions.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Permissions.png
(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
9. 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
10. Navigate to the /data directory and choose the 11extsd2internalsd file that is located in /data and click on it. 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.
Wonder if this works on asop roms as well.
Please excuse my Galaxy S III, it's a bit Paranoid.
On my X2, this same mod was done via a flashable zip...not sure how it worked, but it was worked perfectly. At some point the roms incorporated the flip flop as part of the Rom. I like the feature because I wouldnt need to move certain app data to my external sd card. Also, I wouldn't have to show tibu where to look for my backups.
Sent from my SCH-I535 using Tapatalk
Clienterror said:
Wonder if this works on asop roms as well.
Please excuse my Galaxy S III, it's a bit Paranoid.
Click to expand...
Click to collapse
What's the consensus on this? Can this mod as posted above be applied to AOSP/CM9/CM10?
Just flashed this on aokp and both sdcard and external_sd are my physical sd card. The internal card is not showing.
Op, can we get an cm10 ver?
Did a little playing around. Below seems to work on cm10 aokp. Can op confirm this is good?
mount -t vfat -o umask=0000 /dev/block/vold/179:97 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
maniac2k said:
Just flashed this on aokp and both sdcard and external_sd are my physical sd card. The internal card is not showing.
Op, can we get an cm10 ver?
Click to expand...
Click to collapse
Are you actually flashing it, or using the Script Manager? As far as I know, only the Script Manager approach works.
maniac2k said:
Did a little playing around. Below seems to work on cm10 aokp. Can op confirm this is good?
mount -t vfat -o umask=0000 /dev/block/vold/179:97 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
Click to expand...
Click to collapse
Not sure, but take a look at the code from 11ext2internalsd file. If it works, and you can see both sd cards, then you've nailed it.
Yeah sorry, im running the script apk. It seems to work. I just dont understand the exacts of the vold/179:97 or if it should be vold/197:96?
When i go into settings/storage, should my physical sdcard stats be showing under internal memory?
Thanks I got mines to work now. Thanks to your suggestions.
Sent from my SCH-R530U using Xparent SkyBlue Tapatalk 2
Update: ive been using the script below for a littlw while and it is working great on cm10. It is best to enable it after a fresh rom install.
mount -t vfat -o umask=0000 /dev/block/vold/179:97 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
I need to do this.
MODERATOR.
This is not a Q&A Thread. Needs to be moved to appropriate location.
Apps Did Not Move After Internal / External SD Swap for GS3
Well I thought everything went perfectly because as mentioned, when I go to storage my internal shows my 64g card and internal of 12g now shows as external. However the apps are still on my internal which is now called my external and when I go to app manager it shows remaining space 5.9g. So I am not sure what I did wrong because I have reviewed this several times and started right after I installed a fresh rom . I am hoping someone can help me correct this because basically all it did was change the name of the two drives but apps are still getting installed to original location. Thanks in advance for any help you can give me
Swapping internal>external did not work
i followed all steps as stated above but when I go to File Manager (default), long pressing Internal SD>Details show 1.2 MB and External SD shows 1.8 GB which is not true. I have external SD of 8 GB and internal is 2 GB in my micromax a110 phone.
The steps above did not work to swap the memory but it now shows even incorrect size. I installed Root Browser lite but got no way to chck the size of the SD cards.. Please help
Does this work with the new Verizon Jelly Bean which they are now sending out via OTA? Are there other Verizon S3 Jelly Bean Roms that are known to work with this method? Thanks
Its works on the leak so i dont see why it wouldnt work on the actual vz rom
not working
This is not working with my samsung s duos please help
Any cm 10.1 updates for this?
I am unable to change the file permissions to -rwx-rwx-rwx- whenever I try to change it I get an error that the phone is unable to change permissions.
EDIT:
Successfully changed permissions and followed the instructions as given. Still not working on the international S3, my internal memory is still 16 GB and external 32GB

[Q] Link2SD Problem

Hi,
After searching a lot here and other place, I didn't find the solution of my problem.
I have 8gb card.
1st break up
6GB - FAT32 - Primary
rest - FAT32 - Primary.
Link2SD is not able to mount.
Displaying in storage info as - "SD Card 2nd Part." Not Mounted.
------------------------------------------
2nd try, with another breakup.
6GB - FAT32 - Primary
1.2GB - EXT2 - Primary
60MB - L.Swap - Primary
rest - Unallocated.
From Link2SD, I m able to see that sdext2 is mounted.
So for a demo purpose, I installed an application, The auto linking starts but get fails. Not able to create link /bla/bla/ - I/O error.
I did mount that location as RW with root explorer, no luck.
Please let me know what to do and how to resolve it.
Hi
What app did you use to format the sd card?
When i format my sd card using the cwm, i have to format the ext particion using easeus to ext2 particion, witch is the format that the stock rom suports, when i did that, i go to the app, select ext2 and reboot the device, that does the trick
Tell if it works for you
Sent from my HTC ChaCha A810e using xda premium
toniaati spread
psicop said:
Hi
What app did you use to format the sd card?
When i format my sd card using the cwm, i have to format the ext particion using easeus to ext2 particion, witch is the format that the stock rom suports, when i did that, i go to the app, select ext2 and reboot the device, that does the trick
Tell if it works for you
Sent from my HTC ChaCha A810e using xda premium
Click to expand...
Click to collapse
Hi psicop,
Thanks for your reply, I used MiniTool.
Please suggest how/what to do..
I partitioned my sd with CWM and used A2SD, and it works fine.
Maybe you could try to partition it with CWM?
Soeskip said:
I partitioned my sd with CWM and used A2SD, and it works fine.
Maybe you could try to partition it with CWM?
Click to expand...
Click to collapse
Link2SD automatically moves all files in SD. Its seems better that A2SD. Correct me if I m wrong.
Also, please tell how to flash recovery to CWM ? I downloaded 1 click recovery and installed the v5.0.2.8 , at the time of flashing, it display failed.
Please direct me from where you did that...
Please help someone, my phone memory is full now... i can also add person to my gtalk or y! messenger....
Do you have clockworkmod recovery installed?
If so, partition your SD from there, and if I'm correct, go to Link2sd, and choose ext4 as partition format... worked for me after numerous fails with other tools...
Edit: search for a tutorial to install CWM. That's how I installed it...
Sent from my HTC ChaCha with CM9 using XDA app.
This might help: http://www.xperiablog.net/2011/12/12/link2sd-guide-never-worry-about-internal-memory-limits-again/
Apps in SD not working
I dunno if its relevant in this thread, but i couldnt find the answer anywhere else.
I partitioned my 8gb class 10 sd card and installed link2sd and all was fine. I created links for most of my apps and everything was fine, until I had to remove my sd card for some data transfer. Now my apps that were shifted previously are not working. For your information I use CM11 in my Galaxy ace.
Ram Shankar said:
I dunno if its relevant in this thread, but i couldnt find the answer anywhere else.
I partitioned my 8gb class 10 sd card and installed link2sd and all was fine. I created links for most of my apps and everything was fine, until I had to remove my sd card for some data transfer. Now my apps that were shifted previously are not working. For your information I use CM11 in my Galaxy ace.
Click to expand...
Click to collapse
Seems like you have to reinstall them, dunno why but removing the card might have had created problems.
swashie said:
Seems like you have to reinstall them, dunno why but removing the card might have had created problems.
Click to expand...
Click to collapse
The problem got solved, when I mounted the script again and did a reboot. When the phone boots, link2sd has to update all the links. There is an option available for this in the settings. Anyways thanks :good:

App2SD won't move

I executed your instructions from "HOW to root & install cwm recovery by androsamace" of the XDA post with success:
http://forum.xda-developers.com/showthread.php?t=2693049
Then I tried to use the app "Link2SD" and got the error "Failure. App2SD is not supprted by your device. Because your device has a primary external storage which is emulated from the internal storage."
Edit 20 sep 2014 14:28 paris time:
Android version 4.1.2. Samsung Galaxy young duos.
Link2SD
32GB micro SD with partitions as: 1st Primary 25GB FAT32, 2nd Primary about 4GB, 3rd primary Linux swap 900MB
Strange thing is.... Link2SD of 18kb update to PRO results with the error "inefficient storage", but installing the APP clash of Clans, with a wopping 40+ MB is no problem??!!!
I can Link apps with Link2SD.
What can I do to solve this? I can not even install the Links2SD pro update from Google play store.
Many thanks
I tried to call on my Samsung phone --> *#9900#
This will show the Sysdump menu. I pressed the option "Delete dumpstate/logcat". In the post below, it worked for that person, but for me it does not matter. Remove the spaces to get the link... working
www . scarletfire . co . uk / fix-android-insufficient-storage-available-problem /
Anyone more ideas?
Solution I also tried: Install the app "App Cache cleaner 1 tap clean". But It didn't find any cache to clean.
I cleaned everything before, with Link2SD app already.
Funny to mention that this app can be installed too, and that only certain apps display the inefficient storage error....
Ayone more ideas? please!
http :// forum. xda-developers. com/showthread. php?t=2443267
Remove the spaces to make a legal web address.
this post mentions about Odex files. How can I remove them automatically / manually?
I have rooted my phone , but cannot install the app systemcleanup...
chihwahli said:
Solution I also tried: Install the app "App Cache cleaner 1 tap clean". But It didn't find any cache to clean.
I cleaned everything before, with Link2SD app already.
Funny to mention that this app can be installed too, and that only certain apps display the inefficient storage error....
Ayone more ideas? please!
Click to expand...
Click to collapse
this is what you need
https://www.youtube.com/watch?v=tpf0OrI8FNA&list=UUJ9UJTj9e59u0gt1a3aovVg
and ignore the external2internal app part in the video use this new updated guide for that one
http://forum.xda-developers.com/galaxy-young/general/swap-internal-sd-card-external-sd-card-t2817853
First Thanks for the helping, but I still got the error "inefficient storage problem".
So I cannot install "Root External 2 Internal SD" to try swapping internal with external sotrage.
Any ideas how to solve this error?
r2dak said:
this is what you need
https://www.youtube.com/watch?v=tpf0OrI8FNA&list=UUJ9UJTj9e59u0gt1a3aovVg
and ignore the external2internal app part in the video use this new updated guide for that one
http://forum.xda-developers.com/galaxy-young/general/swap-internal-sd-card-external-sd-card-t2817853
Click to expand...
Click to collapse
chihwahli said:
First Thanks for the helping, but I still got the error "inefficient storage problem".
So I cannot install "Root External 2 Internal SD" to try swapping internal with external sotrage.
Any ideas how to solve this error?
Click to expand...
Click to collapse
what is the partition type for the second partition on your card link2sd will only work on ext2 ext3 or ext4
It's ext4 and in the app link2SD I chose ext4 also.
I am using frameroot version 1.9.3 btw...
r2dak said:
what is the partition type for the second partition on your card link2sd will only work on ext2 ext3 or ext4
Click to expand...
Click to collapse
I installed X-sam's Rom. And the error "no efficient storage problem" is no more. Before the app Link2SD plus update would give the error.
But after the ROM update the error is gone. =)
The link to X-sam's Rom's forum thread:
http://forum.xda-developers.com/showthread.php?t=2601838
Going to give Root External 2 Internal SD now my problem is gone.. =)
I installed the APP Root External 2 Internal SD from Android play store.
The steps mentioned in :
http://forum.xda-developers.com/galaxy-young/general/swap-internal-sd-card-external-sd-card-t2817853
At first I did not see a change like my internal memory being swapped with external,if I look into settings/storage.
My internal storage is still about 1GB free and my external is about 24GB.
I found out that I deleberately have to press the checkbox"At boot **" two times!, the box right of the button "External > internal".
The checkbox is default already checked, but is not active!!!!
Only after doing that, I saw in my Android phone settings/storage, that both internal and external are both about 24GB.
That indicates that my Micro SD is being used as internal storage. After another reboot my internal is 24GB and my external is about 1,2 GB. Everything is a-ok!
I tested it with large APP's like "Plants vs zombies 2" which is about 400MB big. The game could be played without problems!
Just AAAWWESome! :highfive: to you r2dak!
Internal storage is used even if the APP internal 2 external is running. Using Link2SD paid version to move extra Megabytes off my precious 1.5GB internal storage towards my Micro SD.
I installed a lot of APPS, and still got 1,1GB internal memory free ! :laugh:
chihwahli said:
I installed the APP Root External 2 Internal SD from Android play store.
The steps mentioned in :
http://forum.xda-developers.com/galaxy-young/general/swap-internal-sd-card-external-sd-card-t2817853
At first I did not see a change like my internal memory being swapped with external,if I look into settings/storage.
My internal storage is still about 1GB free and my external is about 24GB.
I found out that I deleberately have to press the checkbox"At boot **" two times!, the box right of the button "External > internal".
The checkbox is default already checked, but is not active!!!.........
Click to expand...
Click to collapse
im glad that you figured it out
and thanks bro

how to make a autorun script on android 6,and mount tf card,360 qiku n5 cellphone

i want my 360 qiku n5 cellphone to use the tf card as an internalSD card, and also link to the /data/data diretory,so that I can make the storage more sufficient.
i have so many app to install, and the app use much space consuming up the internal space,leaving the tf card empty.
i'd tried making tf card ext4 and mounted to /mnt/sdcard-ext,and maked a link "ln -s /mnt/sdcard-ext/data /data/data",but the apps just crashed as soon as they started.then i deleted the link and cellphone return normal.
after try i found using the "su, mount" script to mount tf card on any directory,the nornal apps which do not use "su" can't read the mount point,I think that's why i link the tf card to /data/data but apps could not start. So how can i solve this problem?I use the supersu as the root and have allready turn off the "Mount namespace separation" option.
And how can i make a startup autorun script on the android6 phone?
Anybody help me please?
This will not work how you want. Apps on SD cards only work with Googles new feature to make the sdcard as internal storage. But even that is buggy due to the sdcard code that has never been made to work for apps on sdcard.

Categories

Resources