anyone know what is the xperia series external sdcard directory in full path?
in samsung devices, the directory is like: "/mnt/extSdCard/"
External storage is /storage/sdcard1/
Internal storage is /storage/sdcard0/, there also is /storage/emulated/0/ and /storage/emulated/legacy/. They all lead to the same directory.
Usbdisk storage is /storage/usbdisk/
If you go to the directory /mnt/ext_sdcard/ this will work too but this is displayed as a shortcut to /storage/sdcard1/
The same is for internal storage /mnt/sdcard/ is a shortcut to /storage/emulated/legacy/
And also usbdisk storage is /mnt/usbdisk/ is a shortcut to /storage/usbdisk/
SÜPERUSER said:
External storage is /storage/sdcard1/
Internal storage is /storage/sdcard0/, there also is /storage/emulated/0/ and /storage/emulated/legacy/. They all lead to the same directory.
Usbdisk storage is /storage/usbdisk/
If you go to the directory /mnt/ext_sdcard/ this will work too but this is displayed as a shortcut to /storage/sdcard1/
The same is for internal storage /mnt/sdcard/ is a shortcut to /storage/emulated/legacy/
And also usbdisk storage is /mnt/usbdisk/ is a shortcut to /storage/usbdisk/
Click to expand...
Click to collapse
Don't forget /Removable/sdcard1/
3mL said:
Don't forget /Removable/sdcard1/
Click to expand...
Click to collapse
I don't have that directory. What rom are you on? I would assume that this would be the same even with stock rom
Im running the latest CM10.2 nightly
SÜPERUSER said:
I don't have that directory. What rom are you on? I would assume that this would be the same even with stock rom
Im running the latest CM10.2 nightly
Click to expand...
Click to collapse
I'm on stock.
Hey All,
Just bought the pro version of Root Cleaner to show some developer luv!
[Q] Can you help me find the path to my external storage for cleaning.
I have tried:
/storage/sdcard1/
/storage/removable/sdcard1/
/sdcard1/
Sadly all the above have failed.
In terminal I did a mount and it pointed to: "/storage/sdcard1/" but this still is not working.
I'm on a Sony Xperia Z Ultra running 4.4.2
T.I.A
PamelaGirl said:
Hey All,
Just bought the pro version of Root Cleaner to show some developer luv!
[Q] Can you help me find the path to my external storage for cleaning.
I have tried:
/storage/sdcard1/
/storage/removable/sdcard1/
/sdcard1/
Sadly all the above have failed.
In terminal I did a mount and it pointed to: "/storage/sdcard1/" but this still is not working.
I'm on a Sony Xperia Z Ultra running 4.4.2
T.I.A
Click to expand...
Click to collapse
Is the sdcard mounted? Go to system settings>Storage and look if you can see the sdcard. If its mounted you should a field with amount of free storage.
If not then there's a field that says "Mount SD card".
You can also look with a terminal.
$df
Are you sure you also have busybox installed?
selinux could also be bugging you. Set it to permissive and see if it does anything.
Thanks SUPERUSER for the response!
Yes, the SD card is mounted and I see it at system settings>Storage. I photos and music and TWP backups without any problems.
Busybox pro is installed at /system/xbin
Terminal sees it at: /storage/sdcard1
I see in terminal: /mnt/media_rw/sdcard1: Permission denied
"selinux could also be bugging you. Set it to permissive and see if it does anything." not sure how to follow you on this one.
T.I.A.
PamelaGirl said:
Thanks SUPERUSER for the response!
Yes, the SD card is mounted and I see it at system settings>Storage. I photos and music and TWP backups without any problems.
Busybox pro is installed at /system/xbin
Terminal sees it at: /storage/sdcard1
I see in terminal: /mnt/media_rw/sdcard1: Permission denied
"selinux could also be bugging you. Set it to permissive and see if it does anything." not sure how to follow you on this one.
T.I.A.
Click to expand...
Click to collapse
Download this file:
https://forum.xda-developers.com/attachment.php?attachmentid=3774130&d=1465207418
Open the app and set to permissive
edit:
reboot after setting to permissive
Have you granted root explorer root access?
Nice!
Thanks for the download!
I installed and set to permissive.
Yes Root Explorer has root access.
I notice no difference, do I need to reboot my device?
T.I.A
PamelaGirl said:
Nice!
Thanks for the download!
I installed and set to permissive.
Yes Root Explorer has root access.
I notice no difference, do I need to reboot my device?
T.I.A
Click to expand...
Click to collapse
oooh... I misread the app title. I thought you purchased a copy of "Root explorer"
I downloaded root cleaner.
Upon first start the "External storage" is empty.
I went to settings and scrolled down to "External SD location" and filled in "/storage/sdcard1". Closed the app and reopened it.
Clicked the "info" tab and "External storage" is showing.
(picture in Attached files)
Do you have that setting filled in the same?
Sweet SUPERUSER!
I followed the steps and it worked. You helped!
While I still have your ear what exactly is the Selinux apk I installed?
T.I.A
PamelaGirl said:
Sweet SUPERUSER!
I followed the steps and it worked. You helped!
While I still have your ear what exactly is the Selinux apk I installed?
T.I.A
Click to expand...
Click to collapse
selinux is a thing nsa invented. And came to action in android kitkat due to the new feature that allows mutiple user accounts.
selinux is used to secure your data so that the other user can't access your data from their accounts. And probably used for many other things in android.
One negative thing is that the external sdcard was now only "read only".
I remember setting selinux to permissive was one way to enable full system read write to external sd card. And then there are some apps that change some string to enable write access for those who don't have root.
If you don't need selinux you can remove the app.
Thank you for the quick responses, it got my three week issue resolved quickly and I got an education lesson too! Very much appreciate your help!
SUPER THANKS to SUPERUSER!
Related
I have started using Cyanogen 7.1 and everything is great, except I would prefer to have the internal storage set to the SD card as in previous ROMS. I constantly change SD cards for Music and Movies and this the current way this is set up, screw up my apps.
Is there a way to modify the settings? Any help would be appreciated.
unzip this file and using root explorer, drop the file (vold.fstab) in /system/etc/ and change the permissions to rw-r--r--
then reboot
permissions should be:
Owner: Read, Write
Group: Read
Others: Read
I also have a flashable zip that swaps out the vold.fstab file in my sig.
strra said:
unzip this file and using root explorer, drop the file (vold.fstab) in /system/etc/ and change the permissions to rw-r--r--
then reboot
Click to expand...
Click to collapse
Thanks for the quick rely. It seems to work Great!
maxdamage2122 said:
I also have a flashable zip that swaps out the vold.fstab file in my sig.
Click to expand...
Click to collapse
Thanks, The DSP fix would have been handy last night and this morning. It will help others as well
I also have this problem. But when I follow your steps I end up with no SD card at all. Not even my extern 32gb card is available.
Then there is no other option for me to re-install the Cyanogenmod to get my external SD card back.
But the internal SD card is visible in the settings for storage, it says: Extra storage:/mnt/emmc Total: 5,51gb Available: 0,97gb
Back in my Ghost Commander, File Explorer or Root Explorer there nothing.
Can you please help me out?
Thanks in advance,
Remco
I am not sure I am at the right place, I am talking about my phone.
LG P990 ....
Use one of the new cyanogenmod nightlies or my repacked cyanogenmod ROM... there is a setting to switch Internal Storage to /sdcard...
CyanogenMod Settings -> Application > Use internal storage
craigacgomez said:
Use one of the new cyanogenmod nightlies or my repacked cyanogenmod ROM... there is a setting to switch Internal Storage to /sdcard...
CyanogenMod Settings -> Application > Use internal storage
Click to expand...
Click to collapse
I have this option to, but when I select it and reboot my phone both cards are gone.
So then I unselected it again and after a reboot my external SD is back.
I don't know... the rest of the phone is working great at the moment... oh and the strange thing is, I use Mantano Bookreader for reading books and my books are still on the internal SD but after some scanning Mantano finds the books. I can read them and all, but then again when I search in Ghost Commander or something like that, I still can not access my internal SD.
I just don't get it, it is not gone or formatted in a unknown format.
But anyway, thanks very much for your respond.
Remco
Hi,
I recently rooted my galaxy s2, GT i 9100 that was running with ICS 4.0.3 with CF root kernel SGS2-XX_XEO_LPQ-v5.4-CWM5, and installed Resurrection and remix 2.6.1 ROM.
However, now my external secure storage data are not accessible, though there is a file "external_sd" under the "sd card" in the OI file manager. I used some other file managers like X-Plore, ES file manager ect but for no avail.
And, the external sd card is not shown under "storage" option in the phone too. Phone galary, music players etc also don't recognize any of the videos or photos saved in the external sd card. Please somebody help me solve this issue..
Regards
Anuruddha:crying:
Look for your external in /mnt/emmc/.
have a look at this thread: http://forum.xda-developers.com/showthread.php?t=1536568
But if you bind external SD from /mnt/emmc -> /sdcard/external_sd you will not be able to save photos on external by stock camera app.
Create an folder on your internalSD for mounting your external
Open up Root explore & find the location of externalSD in root (usually it ll be in /mnt/ folder)
open terminal emulator on your device
Type this code
PHP:
su
PHP:
busybox mount --bind <location in root> <location you need to mount>
i created a folder named 00ExternalSD so that it would stay on top
My ExternalSD mount location is /mnt/extSdCard
And the location am gonna mount is /mnt/00ExternalSD
So mine look like this (first you have to be superuser so type SU & then this code )
HTML:
busybox mount --bind /mnt/extSdCard /mnt/sdcard/00ExternalSD
przemcio510 said:
Look for your external in /mnt/emmc/.
Click to expand...
Click to collapse
Hi,
it is not there, I have checked every folder..
thanks
rajaspidey said:
Create an folder on your internalSD for mounting your external
Open up Root explore & find the location of externalSD in root (usually it ll be in /mnt/ folder)
open terminal emulator on your device
Type this code
PHP:
su
PHP:
busybox mount --bind <location in root> <location you need to mount>
i created a folder named 00ExternalSD so that it would stay on top
My ExternalSD mount location is /mnt/extSdCard
And the location am gonna mount is /mnt/00ExternalSD
So mine look like this (first you have to be superuser so type SU & then this code )
HTML:
busybox mount --bind /mnt/extSdCard /mnt/sdcard/00ExternalSD
Click to expand...
Click to collapse
Hi, where can find Root explore?? Is it an Applicaton that should be downloaded from google play?
Yes, from GPlay.
anu7113 said:
Hi, where can find Root explore?? Is it an Applicaton that should be downloaded from google play?
Click to expand...
Click to collapse
I am using ES file manager and X-Plore file managers and OI file managers. And I can see a folder "external_sd" in /mnt/sdcard (/mnt/sdcard/external_sd). However, when I open up external sd, it is empty and no data available, it is just an empty folder.
One more thing is, earlier(before root and new ROM), when I opened the "Phone Storage", the external sd card was visible with available memory space etc, but now there is nothing to be seen as such
Also, how to find terminal emulater? I have no idea about it
If you have any data on card, copy it to PC and then format it to FAT32.
Terminal = adb.
przemcio510 said:
If you have any data on card, copy it to PC and then format it to FAT32.
Terminal = adb.
Click to expand...
Click to collapse
Excuse me, this a " micro external sd", and cannot mount on any of the slots in the computer...and cannot accesses using USB also, as any of the file explorers does not read the data in the memory card..
You don't have any adapter?
I will try for an adapter..and try your way also...
thanks
It is a bug with some cf root kernels
Flash your stock kernel, then either use a fixed cf root or better root with method 1 in my signature
Sent from my GT-I9100 using Tapatalk 2
Be careful: FACTORY RESET can delete your data in the external memory card too.
Phil3759 said:
It is a bug with some cf root kernels
Flash your stock kernel, then either use a fixed cf root or better root with method 1 in my signature
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Hi,
I got a memory card reader and mounted the external memory card and browsed the folders, but to my amazement it has no data, and that is why the videos and images were not shown in the gallery.
I think this is what has happened;
On the day I rooted the phone and installed the new ROM, the phone was not getting GPRS and then I did a factory reset on the new ROM. However, before this reset, all the images and videos were available and accessible. While doing this reset the phone got dead and then I removed the battery and re booted after some time, the phone re booted with the loss of some applications, and after this incident the I didn't see the images and videos stored in the external memory card. I never thought that a factory reset would destroy my secure data in the external memory card, but unfortunately it had happened. Can anybody believe this??? However, I re flashed the new ROM again and searched for the data in my external memory card as I never thought that the factory reset had deleted the data in my external memory card too.
Now, I am clear there is nothing wrong with the phone, ROM and kernel, it is the FACTORY RE SET that deleted all my data in the external memory card, now I can see that external memory card is already there but all blank.
I thought that this is a problem of not reading the external memory card,but that is totally wrong. Since there was no data, I was mistaken that data was not accessible(because, who believes that external sd card will be deleted by a factory reset).:crying:
Need a program to open .sbu files(Samsung Back up)
Hi,
Anybody know a freeware to open samsung back up "sbu" files???
anu7113 said:
Hi, where can find Root explore?? Is it an Applicaton that should be downloaded from google play?
Click to expand...
Click to collapse
ROOT EXPLORER is an paid app can be found in google play
Use ES File explorer / Solid explorer , its free & does the same work (do much more than root explorer)
rajaspidey said:
Create an folder on your internalSD for mounting your external
Open up Root explore & find the location of externalSD in root (usually it ll be in /mnt/ folder)
open terminal emulator on your device
Type this code
PHP:
su
PHP:
busybox mount --bind <location in root> <location you need to mount>
i created a folder named 00ExternalSD so that it would stay on top
My ExternalSD mount location is /mnt/extSdCard
And the location am gonna mount is /mnt/00ExternalSD
So mine look like this (first you have to be superuser so type SU & then this code )
HTML:
busybox mount --bind /mnt/extSdCard /mnt/sdcard/00ExternalSD
Click to expand...
Click to collapse
+1 :good:
it has perfectly and instantly worked for me...
UPDATE:
I now recommend using FolderMount instead of the scripts below.
Forum Link: http://forum.xda-developers.com/showthread.php?t=2192122
Market Link: https://play.google.com/store/apps/...251bGwsMSwxLDEsImNvbS5kZXZhc3F1ZS5mbW91bnQiXQ..
Click to expand...
Click to collapse
PART 1: obb "Game Data" to external_sd
Simple script that binds the internal obb folder to an external Gamedata folder on your sd to save space on Internal SD Card.
Use at your own risk.
1. Create a folder on the external_sd called "Gamedata"
2. Move all folders located in sdcard/android/obb to the newly created folder "Gamedata" (This takes a long time using Root Explorer, be patient. I recommend using Solid Explorer so that you can see the progress.)
3. Download the txt file and rename the extension to .sh OR Create a new script using:
Stock ICS:
Code:
mount -o bind /mnt/sdcard/external_sd/Gamedata /mnt/sdcard/Android/obb/
SnowJB (may or may not work on other JB ROMS) - Credit:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
4. Download Smanager from the playstore.
5. Find the script you created and set it to run with SU, make sure to save.
6. You can run it now to see if it worked. (If it did, make sure to edit the script to run at boot)
Notes:
I reclaimed about 6GB+ and was able to download several new games after doing this.
Occasional a folder called /Android/data/ gets created in Gamedata but it stays empty and doesn't effect anything. Just ignore it.
Newly downloaded game data will automatically be downloaded to the Gamedata folder. (As long as the addition data is downloaded through Google Play)
Works with Link2SD
This should work on every device that has an external sd card, however you might have to edit the paths to make sure they match up with how your device has the external sd card implemented (emmc, sdcard1, extSdCard). You may also have to edit the internal sd path for 4.2 and above to because of multi-user support.
Thanks to DeathmonkeyGTX! His music cache script gave me the idea to do the same for obb game data. They could probably be combined into one script, should you want to.
PART 2: Link2SD Info - for even more space saving
You can also use Link2Sd (found on the market) to store apps on the external sd card.
I formatted my external sd into two partitions. One 55 GB partition (For user data) and another 4 GB partition (for Link2SD).
Notes:
The highest app that I linked only saved about 50 MBs. Not really saving that much space, but after I linked several 50 MBs and under apps, I recovered about 1.2 GBs of space on the Internal.
The second partition can only be used for Link2SD.
To Set Up:
Backup your SD, format it to Fat32, use MiniTool to resize the first partition, then create a second partition (FAT 32 and make sure it is Primary) using the remaining space. You should now have two partitions. Now just launch the Link2SD app and create the start-up mount scripts. Reboot, launch the app once more, and finally start linking apps to your external sd card.
More info here: http://www.link2sd.info/home
I recommend reading the description and FAQ.
Both "PARTS" can be used together or separately just fine on ICS. However, I was not able to get Link2Sd working on SnowJB.
Seems to be working great! We now have so much more room for activities!
This is what I call a WIN: http://imgur.com/a/WBtHP
as far as I know I did everything I was supposed to but I went and deleted the files on my internal sd card and it deleted the ones on external sd card. I downloaded the app again and it saved the files in both locations and I deleted the internal one and it deleted both again. What could be causing this?
mws1986 said:
as far as I know I did everything I was supposed to but I went and deleted the files on my internal sd card and it deleted the ones on external sd card. I downloaded the app again and it saved the files in both locations and I deleted the internal one and it deleted both again. What could be causing this?
Click to expand...
Click to collapse
You have to delete the files before you set the script to run at boot. Otherwise you will be deleting the files on the external sd since the script tricks the system into thinking they are on the internal. I'm also think that your misunderstanding when you say they are on both. If you look at the total space when tapping the obb folder on your internal you will notice it goes from 11GB to whatever size you external sd card is. The two folders are binded so it would appear that they are on both but they are only on your external.
Joecascio2000 said:
You have to delete the files before you set the script to run at boot. Otherwise you will be deleting the files on the external sd since the script tricks the system into thinking they are on the internal. I'm also think that your misunderstanding when you say they are on both. If you look at the total space when tapping the obb folder on your internal you will notice it goes from 11GB to whatever size you external sd card is. The two folders are binded so it would appear that they are on both but they are only on your external.
Click to expand...
Click to collapse
I just noticed this today, I ran this correctly (thank you for adapting it btw) and saw that I had "duplicates" on my internal. Then I saw that the total space was listed as 32 gigs... and it clicked, lol.
For a little clarification, you will see the folder in both places, the one on the internal card is just a link, it shouldn't actually take up any room on the internal card.
I was also able to get this to work for another folder created by a game that didn't put the files in obb folder.
(Just make a copy of the script and edit the pathways in it and run as root at boot.)
bleached45 said:
I just noticed this today, I ran this correctly (thank you for adapting it btw) and saw that I had "duplicates" on my internal. Then I saw that the total space was listed as 32 gigs... and it clicked, lol.
For a little clarification, you will see the folder in both places, the one on the internal card is just a link, it shouldn't actually take up any room on the internal card.
I was also able to get this to work for another folder created by a game that didn't put the files in obb folder.
(Just make a copy of the script and edit the pathways in it and run as root at boot.)
Click to expand...
Click to collapse
Yeah it bugs me big time that some apps download files to different places. I noticed some apps that download additional files through the play store, download the data to the /android/data/ folder instead of /android/obb/. Google really needs to make that uniform, where all additional game data get downloaded to one place. I did, however, adapt my script to link the whole /android/ folder to the external sdcard.
I won't release that one because there is way more things that can go wrong. The /android/data folder is used for so much more than just games and if it's not set up just right you could get force closes and blank widgets on boot. But just FYI, it is possible and is working well for me.
Worked! Thanks a lot for the script man helped save a lot of data!
Sent from my LG-E970 using xda app-developers app
Well, I can't get this post deleted, but I was able to figure out my problem!
Thanks for posting this solution! So happy to have it!
Re: obb "Game Data" to external_sd and Link2Sd Info
I used both methods here, obb and links2sd and it helped me out tremendously. Nice work and thanks for posting this.
Sent from my LG-E970 using xda premium
Hey Joecascio2000,
Do you know how one would modify this script to work on the Stock 4.1.2 Jelly Bean LG-E973/1/5/0 CANADA / ATT / INTERNATIONAL rom?
I've read in that thread that the sdcard locations are different for Jellybean.
I've tried the following path to no avail.
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
Using that path will have smanager error out stating the following:
card0:/AndroidObbSwap.sh'
mount: No such file or directory
Any input would be greatly appreciated.
Yoreo said:
Hey Joecascio2000,
Do you know how one would modify this script to work on the Stock 4.1.2 Jelly Bean LG-E973/1/5/0 CANADA / ATT / INTERNATIONAL rom?
I've read in that thread that the sdcard locations are different for Jellybean.
I've tried the following path to no avail.
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
Using that path will have smanager error out stating the following:
card0:/AndroidObbSwap.sh'
mount: No such file or directory
Any input would be greatly appreciated.
Click to expand...
Click to collapse
I don't have JB installed yet so I don't know exactly how the sd card and external sd card are mount. I'm assuming your paths are correct. But I suggest making sure that the script is running from the internal SD card. Also, I would add a "sleep" line just to make sure the external sd is mounted properly before running the bind.
Try:
#start
sleep 30
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
#end
Joecascio2000 said:
I don't have JB installed yet so I don't know exactly how the sd card and external sd card are mount. I'm assuming your paths are correct. But I suggest making sure that the script is running from the internal SD card. Also, I would add a "sleep" line just to make sure the external sd is mounted properly before running the bind.
Try:
#start
sleep 30
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
#end
Click to expand...
Click to collapse
I gave that a shot, and it's still kicking out the same error. I think I'm going to post in that thread and see if anyone there can tell me if my path names are incorrect.
Well Joecascio2000, I figured it out after getting a good nights sleep. My paths weren't correct.
Anyhow, the correct path/command is as follows:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
Feel free to update your OP to notify anyone who may be using that rom to use the above script for things to work properly.
What would be the code to get this working with the new cm 10.1 conversion?
I tried
mount -o bind /storage/sdcard1/Gamedata /storage/emulated/0/Android/obb/
and a few others
Yoreo said:
Well Joecascio2000, I figured it out after getting a good nights sleep. My paths weren't correct.
Anyhow, the correct path/command is as follows:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
Feel free to update your OP to notify anyone who may be using that rom to use the above script for things to work properly.
Click to expand...
Click to collapse
Thanks. I updated to OP to include your code and put a link to your post.
whoamanwtf said:
What would be the code to get this working with the new cm 10.1 conversion?
I tried
mount -o bind /storage/sdcard1/Gamedata /storage/emulated/0/Android/obb/
and a few others
Click to expand...
Click to collapse
Again, not really sure how CM10.1 handles the external sd. Did you try the code directly above your post? It works for the JB port so it may work for the CM10.1 ROM.
EDIT:
Try:
mount -o bind /storage/sdcard1/Gamedata /storage/sdcard0/Android/obb/
That is what I have on my Captivate running CM10.1.
Re: obb "Game Data" to external_sd and Link2Sd Info
I'm not 100% for sure on this but doesn't cm10 handle the external sd as emmc?
Sent from my LG-E970 using xda premium
Re: obb "Game Data" to external_sd and Link2Sd Info
tmease1 said:
I'm not 100% for sure on this but doesn't cm10 handle the external sd as emmc?
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
I know they used too on my Captivate but with the multiple users in 10.1 I think they might have changed it. And again it could be different for every device. I recommend using solid explorer to just search around. If you tap the little android icon in the top left it gives you the exact path of the folder you are in.
Sent from my LG-E970 using xda premium
Joecascio2000 said:
I know they used too on my Captivate but with the multiple users in 10.1 I think they might have changed it. And again it could be different for every device. I recommend using solid explorer to just search around. If you tap the little android icon in the top left it gives you the exact path of the folder you are in.
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
Yeah it is weird I found the exact paths and changed the script but it still doesnt work, even got it to where it looked like it worked, went green and no mount error but no data
whoamanwtf said:
Yeah it is weird I found the exact paths and changed the script but it still doesnt work, even got it to where it looked like it worked, went green and no mount error but no data
Click to expand...
Click to collapse
Did you add the sleep line? Some ROMS take longer to mount the sd card than others. If the sd card isn't mounted before the script runs nothing will happen.
Code:
#start
sleep 30
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
#end
This will wait 30 seconds before running the script. If the paths are correct, I don't see why it wouldn't work. Under smanager, click menu>more> advanced>configuration, and turn on "Show On Boot Script Log". That should give you an idea as to what is happening.
I have a LG Optimus L3 II, and since it has less than 2 GB of total ROM, I have bought an external SD card. I have some experience with Linux desktop systems, but not really with Android. On a Linux desktop, if I lack disk space, I can mount /home to the device I want using /etc/fstab, so all my personal files are transparently saved to the specified device.
I have noticed that my user files on the LG Optimus are all saved to /storage/sdcard0. Also, that there is a symlink from /sdcard to /storage/sdcard0.
What I would like to accomplish is to transparently have all my personal files on /storage/external_SD, but I'm not sure if I can just change /sdcard to point to the new location, or if I would need to change mount points somewhere, etc. I have searched on Google about this, but found nothing clear, and it seems this may vary from device to device. Also, I haven't tried anything yet, because I don't really think I would be able to recover if anything goes bad.
Thanks for your attention!
teresaejunior said:
I have a LG Optimus L3 II, and since it has less than 2 GB of total ROM, I have bought an external SD card. I have some experience with Linux desktop systems, but not really with Android. On a Linux desktop, if I lack disk space, I can mount /home to the device I want using /etc/fstab, so all my personal files are transparently saved to the specified device.
I have noticed that my user files on the LG Optimus are all saved to /storage/sdcard0. Also, that there is a symlink from /sdcard to /storage/sdcard0.
What I would like to accomplish is to transparently have all my personal files on /storage/external_SD, but I'm not sure if I can just change /sdcard to point to the new location, or if I would need to change mount points somewhere, etc. I have searched on Google about this, but found nothing clear, and it seems this may vary from device to device. Also, I haven't tried anything yet, because I don't really think I would be able to recover if anything goes bad.
Thanks for your attention!
Click to expand...
Click to collapse
You can't just replace /sdcard to point to a new location, as Android is always expected to run from the internal storage, and this can cause mayhem. Now, the first question you should answer to yourself is what you mean when you say "personal files": if you just need to store songs, pictures, movies etc., you can store them on the external SD without any issues.
However, the main problem with Android in this aspect is the applications (apps and their data). The best thing would be if you could natively install them on the SD. But this is not always possible, since SD cards are usually formatted with non native Linux file systems (such as FAT) ,in order for them to be mounted on Windows, meaning that they lack the infrastructure to run apps from within (like file permissions or symlinks).
Solution here is the following: Format your SD card to be either all or partially of an ext3/4 file system type (so it can at least hold all apps and their data), then install the Link2SD app, which moves the application to this SD partition and creates all links from the internal drive to this partition. The paid version of this app (Link2SD+, which costs $1) allows you to link also the application data to the SD card (not only the app itself). I have used this solution on many low end devices I had in the past (like yours basically), and it solved this issue perfectly.
Digdis said:
You can't just replace /sdcard to point to a new location, as Android is always expected to run from the internal storage, and this can cause mayhem. Now, the first question you should answer to yourself is what you mean when you say "personal files": if you just need to store songs, pictures, movies etc., you can store them on the external SD without any issues.
However, the main problem with Android in this aspect is the applications (apps and their data). The best thing would be if you could natively install them on the SD. But this is not always possible, since SD cards are usually formatted with non native Linux file systems (such as FAT) ,in order for them to be mounted on Windows, meaning that they lack the infrastructure to run apps from within (like file permissions or symlinks).
Solution here is the following: Format your SD card to be either all or partially of an ext3/4 file system type (so it can at least hold all apps and their data), then install the Link2SD app, which moves the application to this SD partition and creates all links from the internal drive to this partition. The paid version of this app (Link2SD+, which costs $1) allows you to link also the application data to the SD card (not only the app itself). I have used this solution on many low end devices I had in the past (like yours basically), and it solved this issue perfectly.
Click to expand...
Click to collapse
Thanks for your answer, Digdis! What I'm really looking for is not to have applications installed on the external SD card, since 2GB is more than enough for applications for me. What I really want is to have stuff that generally goes to /storage/sdcard0 in /storage/external_SD, because this is where my personal files and settings goes to. For example, if I download something, no matter what size, or record videos, I would expect them all to go directly to the SD card. I know a few applications, not all, can be directly configured to use the external card, but it would be a rather unintelligent way, unless Google has decided to throw basic Linux design out of the window.
Also, what you are telling me is that applications will fail to run if Android/data/ is on an external SD card? Because if I just install applications on SD card, it won't really solve my problem, because I have few applications installed, but data on /storage/sdcard0 tends to grow a lot.
teresaejunior said:
Thanks for your answer, Digdis! What I'm really looking for is not to have applications installed on the external SD card, since 2GB is more than enough for applications for me. What I really want is to have stuff that generally goes to /storage/sdcard0 in /storage/external_SD, because this is where my personal files and settings goes to. For example, if I download something, no matter what size, or record videos, I would expect them all to go directly to the SD card. I know a few applications, not all, can be directly configured to use the external card, but it would be a rather unintelligent way, unless Google has decided to throw basic Linux design out of the window.
Also, what you are telling me is that applications will fail to run if Android/data/ is on an external SD card? Because if I just install applications on SD card, it won't really solve my problem, because I have few applications installed, but data on /storage/sdcard0 tends to grow a lot.
Click to expand...
Click to collapse
OK understood. First of all 2GB seems a bit low for both ROM and apps, but if you say it works for you...
Now, regarding automatic download of pics etc. to SD. You can try Xposed module Downloads2SD . Didn't try it, but you can give it a try.
You can actually do that by telling the system to mount them differently but LG handles that by initiation not fstab. I can try and help you.
Didn't explain it very well. Mount the External SD as sdcard0 and sdcard0 as External_sd so the phone will safe on sdcard0 which we just made the external_SD. There can be problems with pictures recognition or music stuff like that but it should work.
Thanks a lot, @Digdis, I'll keep everything you said for reference.
@christi9503 OK, please, let's try it!
teresaejunior said:
Thanks a lot, @Digdis, I'll keep everything you said for reference.
@christi9503 OK, please, let's try it!
Click to expand...
Click to collapse
Are you rooted with a custom recovery? We need root for this and also you need to give me some files.
christi9503 said:
Are you rooted with a custom recovery? We need root for this and also you need to give me some files.
Click to expand...
Click to collapse
Yes, it is rooted, but what do you mean with "a custom recovery"?
teresaejunior said:
Yes, it is rooted, but what do you mean with "a custom recovery"?
Click to expand...
Click to collapse
CloworkMod(CWM) or TWRP recovery. So you can flash flashable zip.
christi9503 said:
CloworkMod(CWM) or TWRP recovery. So you can flash flashable zip.
Click to expand...
Click to collapse
Are both supported on this device?
teresaejunior said:
Are both supported on this device?
Click to expand...
Click to collapse
Search around the forum a guy around ported all from what I know. Anyway install one of the recoveries to get ready.
What I want you to do now is this:
Check in storage path (with a root explorer) what folder you have like sdcard0, external_sd etc. Tell me all and what is the address (where it links)
EX: sdcard0 -> internal storage.
Also go in system/etc/ and copy me with a root explorer to sd card and then upload it on forums this file : init.qcom.post_boot.sh
christi9503 said:
Search around the forum a guy around ported all from what I know. Anyway install one of the recoveries to get ready.
What I want you to do now is this:
Check in storage path (with a root explorer) what folder you have like sdcard0, external_sd etc. Tell me all and what is the address (where it links)
EX: sdcard0 -> internal storage.
Also go in system/etc/ and copy me with a root explorer to sd card and then upload it on forums this file : init.qcom.post_boot.sh
Click to expand...
Click to collapse
Installing will probably take me some time, because Android is refusing to install anything now saying I don't have enough free space (although I have 199MB, but maybe it thinks is too little). The information you have requested I have already:
There is /sdcard/, which is just a symlink to /storage/sdcard0/.
/storage/sdcard0, which is the internal memory, is mounted like:
Code:
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
And there is also /storage/external_SD/, which is mounted like:
Code:
/dev/block/vold/179:33 /storage/external_SD vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
init.qcom.post_boot.sh is attached.
teresaejunior said:
Installing will probably take me some time, because Android is refusing to install anything now saying I don't have enough free space (although I have 199MB, but maybe it thinks is too little). The information you have requested I have already:
Click to expand...
Click to collapse
This is why I urged you to start moving apps to the SD card. Android will refuse to install anything on your internal memory unless you have at least 10% free space.
teresaejunior said:
Installing will probably take me some time, because Android is refusing to install anything now saying I don't have enough free space (although I have 199MB, but maybe it thinks is too little). The information you have requested I have already:
There is /sdcard/, which is just a symlink to /storage/sdcard0/.
/storage/sdcard0, which is the internal memory, is mounted like:
Code:
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
And there is also /storage/external_SD/, which is mounted like:
Code:
/dev/block/vold/179:33 /storage/external_SD vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
init.qcom.post_boot.sh is attached.
Click to expand...
Click to collapse
Well install recovery by adb with dd (in shell).
---------- Post added at 06:43 PM ---------- Previous post was at 06:31 PM ----------
@teresaejunior
Under /mnt (on the root I think) you will have some folder like sdcard, external_SD etc inside that folder. Tell me what folders are there and the one that gets you in internal and the one that gets you in external pls.
CWM is installed!
In /mnt there are:
Code:
asec
obb
sdcard -> /storage/sdcard0
secure
teresaejunior said:
CWM is installed!
In /mnt there are:
Code:
asec
obb
sdcard -> /storage/sdcard0
secure
Click to expand...
Click to collapse
Ok gonna give you a flashable zip in a second that will replace your post boot script. If it goes into bootloop we got a backup don't worry.
teresaejunior said:
CWM is installed!
In /mnt there are:
Code:
asec
obb
sdcard -> /storage/sdcard0
secure
Click to expand...
Click to collapse
Flash this and tell me if they are swapped. Through CWM.
View attachment SwapL32.zip
christi9503 said:
Flash this and tell me if they are swapped. Through CWM.
View attachment 3082829
Click to expand...
Click to collapse
I think it swapped, but now many applications are crashing or failing to open files. I copied all files from sdcard0 to external_SD and rebooted, but it still doesn't seem to help. Maybe I should have formatted the external SD to ext*?
teresaejunior said:
I think it swapped, but now many applications are crashing or failing to open files. I copied all files from sdcard0 to external_SD and rebooted, but it still doesn't seem to help. Maybe I should have formatted the external SD to ext*?
Click to expand...
Click to collapse
Nope you do not need to format it in order to work. Just make a clean install and use this swap. Maybe you copied them wrong. If the swap worked all is fine my friend.
christi9503 said:
Nope you do not need to format it in order to work. Just make a clean install and use this swap. Maybe you copied them wrong. If the swap worked all is fine my friend.
Click to expand...
Click to collapse
OK, thank you so much, now _this is_ going to take a good time!
Hi,
I succesfully root my cubot p7. I've only a strange issue. the root user has no access to sdcard.
I explain better:
If for example i open a terminal and move to /mnt/sdcard i can read and write the file into it. If i type SU and switch to root user i see the folder empty.
Neither root explorer or root browser can access sd card.
has someone solved this problem?
Thanks
I did some other test.
In root explorer mount r/w button seems to be ineffective...
tatanka77 said:
Hi,
I succesfully root my cubot p7. I've only a strange issue. the root user has no access to sdcard.
I explain better:
If for example i open a terminal and move to /mnt/sdcard i can read and write the file into it. If i type SU and switch to root user i see the folder empty.
Neither root explorer or root browser can access sd card.
has someone solved this problem?
Thanks
Click to expand...
Click to collapse
tatanka77 said:
I did some other test.
In root explorer mount r/w button seems to be ineffective...
Click to expand...
Click to collapse
It sounds like your internal memory might be dying. I've seen it before.
Try an fsck on the SD card location from TWRP or CWM
Which option i've to use to launch fsck from recovery? I tried from terminal and it say "unable to find /etc/fstab"
I did a fsck from recovery / adb terminal but no error show in all blocks device i checked...