Titanium backup extSD access issues - T-Mobile LG G4

Hi everyone,
I recently purchased my LG G4 after finding that root had finally been unveiled! I transferred over my microSD from my Galaxy S4, which was running a v4.4 ROM.
Now, Titanium backup can read the card and restore backups, but it states the external_SD cannot be written to! Specifically, "This folder is not writable." This is using the Filesystem storage provider. I can change the "filesystem" over to Documentprovider, which then makes the SD directory writable, but there is NO protect function available on specific backups. Of course, I believe this to be a Lollipop issue.
There should be a way to have both, right? I've tried changing permissions on directories but have not gotten Titanium to recognize the folder, through the standard filesystem, to be writable.

I'm having the same issue that you are. I haven't had time to try these suggestions yet but go to the link below, on the second page they start talking about a script that someone made that will run every time your phone boots that gives proper permissions. Another person said that they had luck with Xposed Module. Unfortunately I won't have time to try any fixes until the weekend:
http://forum.xda-developers.com/showthread.php?t=2349460

I used the SDFIX application by Nextapp and it seems to have worked.

Here's how I granted Titanium Backup permissions to access my sd card.
1) click on menu button
2) click on Preferences...
3) click on Backup folder location
4) click on "Storage provider: External Storage (click to change)"
5) click on DocumentProvider storage
At this point, you may have a menu saying Open from. If so, click on SD card. If you don't see anything, hide the Open from menu (swipe left), click on the menu button at the top right and click on show SD card. At this point, click on SD card and navigate to the folder you want to grant Titanium Backup permission to write to. The select button is at the bottom of the screen. Hope this helps.
--SN

Metalero9389 said:
I used the SDFIX application by Nextapp and it seems to have worked.
Click to expand...
Click to collapse
You are correct! Thanks!
I looked at that app, but was wary because it mentioned KitKat but not Lollipop by name.
Anyway, I ran the app, gave it root permission, and it did its magic. I rebooted. Success!
Now, in Titanium Backup, it will detect the external_sd card as writable now. However, you HAVE to use the "Filesystem" storage provider in order to get the 'protect' function open. The "filesystem storage - Ext SD card" will work (whereas before it would not write to the directory) but you still don't have "protect" functionality.

SuperNu said:
Here's how I granted Titanium Backup permissions to access my sd card.
1) click on menu button
2) click on Preferences...
3) click on Backup folder location
4) click on "Storage provider: External Storage (click to change)"
5) click on DocumentProvider storage
At this point, you may have a menu saying Open from. If so, click on SD card. If you don't see anything, hide the Open from menu (swipe left), click on the menu button at the top right and click on show SD card. At this point, click on SD card and navigate to the folder you want to grant Titanium Backup permission to write to. The select button is at the bottom of the screen. Hope this helps.
--SN
Click to expand...
Click to collapse
This gets it permission to access + write, but I did not see a 'protect' option on my backups when I selected them.

Nextapp worked for me.
Sent from my LG-H811 using Tapatalk

I did this guide some time back to fix the media write permissions when kitkat came out for the first time on CM11 and submitted the fix to cyanogen. This still works with just a line editting. Is you guys like me that prefer to fix the problem editing a file instead of isntalling an app to get it done then this will be the thread to go http://forum.xda-developers.com/showthread.php?t=2524277

TecknoFreak said:
I did this guide some time back to fix the media write permissions when kitkat came out for the first time on CM11 and submitted the fix to cyanogen. This still works with just a line editting. Is you guys like me that prefer to fix the problem editing a file instead of isntalling an app to get it done then this will be the thread to go http://forum.xda-developers.com/showthread.php?t=2524277
Click to expand...
Click to collapse
Thanks for the link. I haven't run stock ROMS in quite a long time, so having limited SD access was a new phenomenon for me despite having been on KitKat for a few years.

"FolderMount" from the play store also fixes this.

thanks

Related

Fixing "Unknown reason 18" market error

So I was getting unknown reason 18 error when trying to install certain apps from the market.
I've googled and search the forum. The best answer I could get was to wipe and reinstall the ROM, which I did not want to do.
Then I checked the logs and figured out the problem was that all those apps that would fail were trying to install on SD card by default.
The solution: move all the apps back to phone, put your microSD into a card reader and delete .android_secure folder. That's it!
didn't work for me
Worked
That worked for me. For ever I could not update Sky map. When I could not install Angry Birds I went "searching".
Thank you for the fix.
I don't think it'll work for me either.
None of my apps are on my SD. I know this because I can't even do that. When I try to transfer an app to sd it the progress bar just hangs there (doesn't move it just shows the striped pattern)
It worked!
Hey ho, it worked!! Finally the nagging issue is resolved (for me)
I can't find that folder/file! :S
.android_secure is hidden, you need to enable showing hidden files on your file manager. I use ES File Manager and it has such feature.
...or, you can just make sure your app is installed on the phone, then unmount the SD before updating.
Sent from my Nexus One using XDA App
Holy crap! It worked for me. I didn't have anything installed on the SD card either.
when your market chache is moved to the SD then move it back to the internal memory and clear the market data...
Worked for me... Thanks a lot...
i've had this error for quite some time - i realized i need to move the app back to phone in order to update it and then move it back to SD card.
Will try this method!
Thanks for posting
thank god this!!!!! work i'm was getting piss off at is unknown 18 **** it was hunting me in my dreams THANKYOU
Please, I have the same problem but I haven't space in my phone to return the SD apps. Is there another way to solve this?
Simple FIX
Just take out the sd card, install whatever is giving you an error, then pop the sd card back in. No fuss no muss!
Nice SIMPLE solution!
Thank you. Didn't involve rooting the phone, installing adb, saying magic mantras etc. etc.
Thanks
Karolis said:
So I was getting unknown reason 18 error when trying to install certain apps from the market.
I've googled and search the forum. The best answer I could get was to wipe and reinstall the ROM, which I did not want to do.
Then I checked the logs and figured out the problem was that all those apps that would fail were trying to install on SD card by default.
The solution: move all the apps back to phone, put your microSD into a card reader and delete .android_secure folder. That's it!
Click to expand...
Click to collapse
Exellent amigo, now every think is perfect, now i can install all my apps, thank again.
Karolis said:
So I was getting unknown reason 18 error when trying to install certain apps from the market.
I've googled and search the forum. The best answer I could get was to wipe and reinstall the ROM, which I did not want to do.
Then I checked the logs and figured out the problem was that all those apps that would fail were trying to install on SD card by default.
The solution: move all the apps back to phone, put your microSD into a card reader and delete .android_secure folder. That's it!
Click to expand...
Click to collapse
threepwood960 said:
Please, I have the same problem but I haven't space in my phone to return the SD apps. Is there another way to solve this?
Click to expand...
Click to collapse
Ok, so I figured out a solution that is hopefully "better" and "quicker" for all. Simply connect your phone to your computer (as USB Mass storage), browse to the folder '.android_secure' (make sure you can view hidden files/folders in windows) and delete the file 'smdl2tmp1.asec' (I just renamed it 'smdl2tmp1.asec.delete' just in case it didn't work).
Problem solved! Everything updates just fine now and I didn't have to move any apps back from the SD card to the phone.
ultratech23 said:
Just take out the sd card, install whatever is giving you an error, then pop the sd card back in. No fuss no muss!
Click to expand...
Click to collapse
Yea...just this guys.
zero need to delete, move, etc.
Just unmount the SD, instead of taking it out...
Sent from my Nexus One using XDA App

move apps to external stoarge

I am the lucky owner of a new RAZR-i and have practically no real complaints (yet). However, I would like to move certain apps (some games use up huge amounts of storage: Asphalt Heat 7) to my sdcard (labeled "external1" on my razr-i).
That does not seem to be possible. In settings it offers to move stuff to the external card, but only movies etc, not apps. when I go to apps and select the game, it also does not offer any option and finally "App2SD" could not move it either.
There must be a way....Any suggestions?
Thanks!
You can't bay all accounts due to the way Motorola work...
Sent from my XT890 using xda app-developers app
htcmodteam said:
You can't bay all accounts due to the way Motorola work...
Sent from my XT890 using xda app-developers app
Click to expand...
Click to collapse
Hey.... I'm on the same situation... That's my only problem with RAZR i
Is there really no way to transfer apps to SD?
Tks.
hacks should work...
I haven't tried anything like this yet (only just got my RAZR i) but I did a similar thing on a LG C660.
The hack I used was to move /data/app onto the SD card and symlink it back. So the phone could find everything under /data/app but the actual .apks were on the SD card (useful because the internal storage was tiny).
I used an app called Simple2Ext to enable this hack but it was probably designed for older devices and may not handle the different paths used on the RAZR i. It also installed startup scripts (that ensured the SD card was mounted early during the boot so the symlinks were valid when they were first accessed) that are most likely not compatible.
If you want to move only some apps, move /data/app/<app>.apk to the SD card and symlink it back into /data/app. You'll need to manually clean up the .apk on the SD card if you remove the app.
With both of these, you can't boot the phone without the SD card or remove the SD card at any time while the phone is running.
An example of the commands you might use (entered into an ADB shell or terminal):
move all apps to SD card
Code:
$ su
# mv /data/app /external1
# ln -s /external1/app /data
move angry birds to SD card
Code:
$ su
# mkdir /external1/app
# mv /data/app/com.rovio.angrybirds-1.apk /external1/app
# ln -s /external1/app/com.rovio.angrybirds-1.apk /data/app
If you don't understand the above... please don't do this. It's dangerous and you could break your phone.
You can use directory bind for that:
http://forum.xda-developers.com/showthread.php?t=1410262
Need to use the alternate DB (check the settings of the apps), but it works great to "move" folder from the sdcard to external.
This is the only workaround we have until a custom rom let us use external as SDcard.
Direcrtory Bind
Le_Poilu said:
You can use directory bind for that:
http://forum.xda-developers.com/showthread.php?t=1410262
Need to use the alternate DB (check the settings of the apps), but it works great to "move" folder from the sdcard to external.
This is the only workaround we have until a custom rom let us use external as SDcard.
Click to expand...
Click to collapse
I'm using DirectoryBind with my Razr i and works almost perfect, I can't make a Data base backup so if I turn off the Phone I lose all the bind directories and I have to do it again, so I'm not turning off the phone never ever. The rest works perfect and very fast.
good luck!
xopendaz said:
I'm using DirectoryBind with my Razr i and works almost perfect, I can't make a Data base backup so if I turn off the Phone I lose all the bind directories and I have to do it again, so I'm not turning off the phone never ever. The rest works perfect and very fast.
good luck!
Click to expand...
Click to collapse
If you use the alternate db in the settings it will keep the bind directory after reboot
Envoyé depuis mon Nexus 7 avec Tapatalk
xopendaz said:
I'm using DirectoryBind with my Razr i and works almost perfect, I can't make a Data base backup so if I turn off the Phone I lose all the bind directories and I have to do it again, so I'm not turning off the phone never ever. The rest works perfect and very fast.
good luck!
Click to expand...
Click to collapse
You could use init.d scripts to do it automatically at boot.
But first you need to enable init.d (check here)
nrseife said:
I am the lucky owner of a new RAZR-i and have practically no real complaints (yet). However, I would like to move certain apps (some games use up huge amounts of storage: Asphalt Heat 7) to my sdcard (labeled "external1" on my razr-i).
That does not seem to be possible. In settings it offers to move stuff to the external card, but only movies etc, not apps. when I go to apps and select the game, it also does not offer any option and finally "App2SD" could not move it either.
There must be a way....Any suggestions?
Thanks!
Click to expand...
Click to collapse
Not really sure why you need to..... do you have 5Gb of apps????
Reason I ask is I have all my music on sd card, camera can be set to store directly to Sd card and if you've forgpt to do that when you fill phone like I did with a video the other day it asks if you want to transfer all videos and photos to SD card... Problem solved no messing about looking in options
Yes I do have more than 5GB of apps + sd data. and for me the problem is that the application is gonna try to store the data in the Sd card, and our main partition is called sdcard and external1 the sdcard so... all the data of the apps like need for speed, whatsapp, N.O.V.A ... is going to be stored in your internal memory because of that my phone memory was full in 48 hours.
Sent from my XT890 using xda app-developers app
help me!!
xopendaz said:
Yes I do have more than 5GB of apps + sd data. and for me the problem is that the application is gonna try to store the data in the Sd card, and our main partition is called sdcard and external1 the sdcard so... all the data of the apps like need for speed, whatsapp, N.O.V.A ... is going to be stored in your internal memory because of that my phone memory was full in 48 hours.
Sent from my XT890 using xda app-developers app
Click to expand...
Click to collapse
hello I tried using bind directory, but when I link the dorectorios and open a game simply does not recognize the link and I can not play anything that I start to request data, help! How Do I? Does init.d solved? I need an explanation. Also let me know which firmware have
thank you!
Directory Bind
josmel91 said:
hello I tried using bind directory, but when I link the dorectorios and open a game simply does not recognize the link and I can not play anything that I start to request data, help! How Do I? Does init.d solved? I need an explanation. Also let me know which firmware have
thank you!
Click to expand...
Click to collapse
-Open Directory Bind
-Go to menu click Add new entry
-Enter in (data) path where you are gonna place the data en your external sd " /external1/ " where you want save it, the directory should be empty if doesn´t exists you will be asked to create it.
-Enter in mount(target) the path (directoy) of the data that you want to move to external1 , for example " /sdcard/Android/data/directory name "
-check Transfer files from target to data.
-click on Add.
Once the process has finished :
-Check your entry on the main menu by clicking on the check box.
-Click over the diskette on the right side to save it.
-Click on menu - Bind checked.
-Click on More - Backup Database. (I´m stil fighting to make the database backup) use to fail.
After this :
-Go to menu - preferences
- Check Bind on boot.
-Handle USB connection.
-Backup config file.
-use alternate db
Note: If you restart the phone and the database backup failed before, you will lose your bind directory, not the data, you will have to do it all over again, in other thread is explained how to backup the data base, because in my case, even with alternate db checked in directory bind settings, the data base backup is still failing.
Good luck!
xopendaz said:
-Open Directory Bind
-Go to menu click Add new entry
-Enter in (data) path where you are gonna place the data en your external sd " /external1/ " where you want save it, the directory should be empty if doesn´t exists you will be asked to create it.
-Enter in mount(target) the path (directoy) of the data that you want to move to external1 , for example " /sdcard/Android/data/directory name "
-check Transfer files from target to data.
-click on Add.
Once the process has finished :
-Check your entry on the main menu by clicking on the check box.
-Click over the diskette on the right side to save it.
-Click on menu - Bind checked.
-Click on More - Backup Database. (I´m stil fighting to make the database backup) use to fail.
After this :
-Go to menu - preferences
- Check Bind on boot.
-Handle USB connection.
-Backup config file.
-use alternate db
Note: If you restart the phone and the database backup failed before, you will lose your bind directory, not the data, you will have to do it all over again, in other thread is explained how to backup the data base, because in my case, even with alternate db checked in directory bind settings, the data base backup is still failing.
Good luck!
Click to expand...
Click to collapse
excuse me what is your firmware?
---------- Post added at 03:12 PM ---------- Previous post was at 03:04 PM ----------
I did everything I say, and the link is created all very bn!, but when I open the game seems to not link anything, the game asks me sd data again: '(I do not know what to do
stock ics 4.0.4 rooted
are you able to see the sdcard data on your external1 with Astro or other similar file manager? is a original not cracked app?
81.5.32002.XT890.retail.en.Eu
Do you see the files in both sides sdcard and external1?
How do you store the data in the phone? do you copy the data to external1 and then you move it to the sdcard and then you use directory bind? in this way for me it's working
Or you copy the data directly to the sdcard and after taht you use directory bind? in this way for me it' not working
Sent from my XT890 using xda app-developers app
xopendaz said:
stock ics 4.0.4 rooted
are you able to see the sdcard data on your external1 with Astro or other similar file manager? is a original not cracked app?
81.5.32002.XT890.retail.en.Eu
Do you see the files in both sides sdcard and external1?
Sent from my XT890 using xda app-developers app
Click to expand...
Click to collapse
hello
yes! I see them on both sides in external1 and sdcard but when I run a game sd data calls. sd data are always there but the game any game I ask.
How do you store the data in the phone? do you copy the data to external1 and then you move it to the sdcard and then you use directory bind? in this way for me it's working
Or you copy the data directly to the sdcard and after taht you use directory bind? in this way for me it' not working
Sent from my XT890 using xda app-developers app
xopendaz said:
How do you store the data in the phone? do you copy the data to external1 and then you move it to the sdcard and then you use directory bind? in this way for me it's working
Or you copy the data directly to the sdcard and after taht you use directory bind? in this way for me it' not working
Sent from my XT890 using xda app-developers app
Click to expand...
Click to collapse
I did what you told me but I served.
you tell me what version of bind directory you use?
version 0.2.0k
you have root acces right? the root button on directory bind appears green?
Sent from my XT890 using xda app-developers app
I wish Motorola would let you install to the (real) SD card.
I can't really use Spotify, despite having bought a 64GB memory card. I've now had to limit the number of games I can install too.
I expect music and films purchased on Play will also be limited?
In fact, I'd rather use the 64GB card for apps and the internal storage for photos and video recording!!
I will try, hopefully work!

[Q] Whatsapp Media storage location, SDCard0 instead of extSDCard

Hi,
I have a question regarding media storage location of Whatsapp - I don't necessarily expect a solution but would like to at least verify the behaviour on other phones.
My old android device (Sony Ericsson SK17i) saved the Whatsapp media files to the external SDCard.
I bought a S3 mini this week and noticed a difference: Whatsapp media files are not stored on external SDCard anymore, but on the internal storage. I guess that this comes from the internal storage being presented as SDCard0, so maybe Whatsapp thinks that this is in fact the external SD-Card.
Can somebody with S3 mini check how this behaves with his phone? Within Whatsapp I didn't find a way to configure this, can anyone think of a solution to that?
Many thanks in advance.
I bought a S3 mini this week and noticed a difference: Whatsapp media files are not stored on external SDCard anymore, but on the internal storage. I guess that this comes from the internal storage being presented as SDCard0, so maybe Whatsapp thinks that this is in fact the external SD-Card.
Can somebody with S3 mini check how this behaves with his phone? Within Whatsapp I didn't find a way to configure this, can anyone think of a solution to that?
Many thanks in advance. [/QUOTE]
mine saved on phone internal too....and i'am afraid there's no setting from within whatsapp to store in external sd card....however you can reduce space by using directory bind....search around and you will find it.....directory bind or link2sd should do it....
nazri5363 said:
mine saved on phone internal too....and i'am afraid there's no setting from within whatsapp to store in external sd card....however you can reduce space by using directory bind....search around and you will find it.....directory bind or link2sd should do it....
Click to expand...
Click to collapse
ok, thanks for double-checking, I was afraid so. I don't want to link the whole app to sd card, but directory bind sounds like a very good idea, I haven't thought of that.
FolderMount (http://forum.xda-developers.com/showthread.php?t=2192122) did the trick. Thanks!
F157 said:
FolderMount (http://forum.xda-developers.com/showthread.php?t=2192122) did the trick. Thanks!
Click to expand...
Click to collapse
How do you managed to make the default Image preview program to work properly?
I marked the "Media verification" checkbox on the folder mount configuration so that de SD Card folder wouldn't appear on the image preview program, but now I only can see some black thumbs with no image "attached" that points to internal memory.
Did any of this happened to you? Or something similar with the images or how you see them?
in my S4
whenever i open this app , notifications comes saying :
checking for root ......
exit
and nothing happens !
install GL to SD from google play and move the data from sdcard0 to ext and link it
Nothing worked out for my xperia zl
evildog1 said:
install GL to SD from google play and move the data from sdcard0 to ext and link it
Click to expand...
Click to collapse
This seems like a solution to my problem- moved my whatsapp media folder using the manual settings in Gl to SD, but it seems wonky. I took a picture of myself and sent it to someone, and it worked fine. Image is stored in my "sent" folder on the card, which also shows up in internal if I browse there with an explorer. I click on the image in whatsapp, it becomes full screen.
But when someone sends ME an image, it seems to never download. I see the thumbnail, I click it, and then it says that the media is not found on the SD card.
Sure enough, I browsed the folder in explorer (hooked up to my computer as PTP, browsing in windows 7) and the file isn't there. Only the one that I originated. I tried to create a file there, and it actually timed out on me and said device wasn't available. So it seems to sometimes work but not other times? How strange!
Dishe said:
This seems like a solution to my problem- moved my whatsapp media folder using the manual settings in Gl to SD, but it seems wonky. I took a picture of myself and sent it to someone, and it worked fine. Image is stored in my "sent" folder on the card, which also shows up in internal if I browse there with an explorer. I click on the image in whatsapp, it becomes full screen.
But when someone sends ME an image, it seems to never download. I see the thumbnail, I click it, and then it says that the media is not found on the SD card.
Sure enough, I browsed the folder in explorer (hooked up to my computer as PTP, browsing in windows 7) and the file isn't there. Only the one that I originated. I tried to create a file there, and it actually timed out on me and said device wasn't available. So it seems to sometimes work but not other times? How strange!
Click to expand...
Click to collapse
it seems you have root permission problem. you may try to fix permission via custom recovery. GL to SD is working fine and i'm able to download additional data on ext SD.
evildog1 said:
it seems you have root permission problem. you may try to fix permission via custom recovery. GL to SD is working fine and i'm able to download additional data on ext SD.
Click to expand...
Click to collapse
Ah, that might have been it.
In the mean time I gave up, removed it and went with foldermount, linked above. Works just fine out the door, cleaner UI too.
Move WhatsApp Media To External SD Card
This App automatically redirects WhatsApp media to the External SD Card in order to save memory: I cannot post the link, but you can search Nicola Rosada On Play Store and download Photo & File Redirect.
Dishe said:
Ah, that might have been it.
In the mean time I gave up, removed it and went with foldermount, linked above. Works just fine out the door, cleaner UI too.
Click to expand...
Click to collapse
I got foldermount and used it to mount data/obb folders from some apps to my ext SD card. But this is what i get for whatsapp: The data and obb options are greyed out so i cant select them and it says there is no data to begin with (0 B). How did you do it? Thanks
Thanks for saving me to ask this question. My son has a SG Grand Prime SM-G530H and is facing the same problem.
Dishe said:
This seems like a solution to my problem- moved my whatsapp media folder using the manual settings in Gl to SD, but it seems wonky. I took a picture of myself and sent it to someone, and it worked fine. Image is stored in my "sent" folder on the card, which also shows up in internal if I browse there with an explorer. I click on the image in whatsapp, it becomes full screen.
But when someone sends ME an image, it seems to never download. I see the thumbnail, I click it, and then it says that the media is not found on the SD card.
Sure enough, I browsed the folder in explorer (hooked up to my computer as PTP, browsing in windows 7) and the file isn't there. Only the one that I originated. I tried to create a file there, and it actually timed out on me and said device wasn't available. So it seems to sometimes work but not other times? How strange!
Click to expand...
Click to collapse
Got the same Issue - can send Images and theyll get stored on SD via Foldermount, but when i receive images, just got the blurry thumbnail and after i downloaded the image i got that "Media is not found on the SD card" issue.
Anyone knows what i did wrong?

Sony Xperia ZR – Mount ExternalSD2InternalSD

Hi,
This is my first android device, so am pretty much a newbie for android.
Have created this mod to mount external SD card partition as internal partition.
I took pointers from a lot of threads on xda forums to get this working, so I feel bound to share it.
Note: Have only tested it with Android 4.1.
(I'm not responsible for any Damage to your phone. Use at your own risk.)
Note: This will likely result in data loss. Backup!
Required :
1. Root Access
2. init.d support click here
3. Root Browser click here
4. SManager click here
5. An sd card (duh!) (with class 10 SD cards preferable)
6. Some way to partition your SD Card (like MiniTool Partition Manager)
Install instructions:
1. Create two ‘fat32’ partitions on SD card(EDIT: PS: both partitions should be Primary). Your first partition will be mounted as normal extSd card, and your second partition will be mounted as internal SD Card for your apps. (I partitioned my 64GB(10^9 bytes) sd card with ~16 GB 1st partition and ~42 GB 2nd partition)
2. Copy and paste “mountSd” to etc/init.d folder. (If you don’t have such a folder, means you lack init.d support. click here and follow instructions to enable it) This script creates another mount point called ‘sdcard2’ and mounts current internal sd card there. It also tries to mount second partition to ‘sdcard0’ location, but seems to fail some times (as fat32 is not natively supported linux partition it seems, but could be wrong), so step 3 is required.
3. Copy ‘mountSdFailSafe.txt’ to your phone’s ‘/data’ folder. Now with ‘SManager’, register this file as script with ‘su’ and ‘boot’ selected. (click and hold script -> in context menu click ‘Open As..’ -> ‘Script/Executable’ -> Is Script = true, select ‘su’ and ‘boot’ buttons)
4. Restart.
This should do it. Once restarted, second partition will be shown as internal memory.
Note:
You will lose all app data and other app related customizations. You may be able to restore it by simply copy pasting ‘Android’ folder from ‘/storage/sdcard2’ to ‘/storage/sdcard0’. This has not been tested by me but should work theoretically (as I started with a blank phone, and so did not need to back up my app data). Or you could use Titanium Backup.
Some Issues that occur due to this mod:
I have been using this mod since the past 2 weeks, and the phone is quite stable with this mod.
The only issue I have faced is that when connected to PC (Windows 8) through USB, ‘My Computer’ keeps crashing unless and until you disconnect the phone. Otherwise it seems to be working fine. To circumvent this issue I have been using Samba to share files between PC and my phone.
Please share how it works out for you guys.
Other Notes:
I tried to get this working with ext4 partition, which has a +ves that it will not require step ‘3’ of install instructions and supports file sizes >4GB, but there are loads of permission issues happening, which I could not solve.
(Thought of setting “set GID” bit and then finding and adding all users to root group but failed. Also tried to set owner group ‘sdcard_rw’ without much success. May be someone who knows linux better may know how to solve this, Could not find much help on the forums as it seems others are facing a similar problem see more)
Thanks to:
For basic idea (PS: do not use the given method exactly as you will end up in a boot loop. For some reason, ‘sdcard1’ mount point has to be mounted by system only and can’t be mounted any other way, it seems.)
http://forum.xda-developers.com/showthread.php?t=2180733
Edit:
Simplified installation if you do not care for easy accessibility to your orig internal memory:
Use this video tutorial by ashwin123:
The only exceptions are that, you need to partition your card,
and you have to use the file 'mountSdFailSafe.txt' instead of the file in the package mentioned by him.
Nice
Waiting for someone to test it n confirm it successfully works
Still here
N!geR -> E!ch0
NisJ said:
Hi,
This is my first android device, so am pretty much a newbie for android.
Have created this mod to mount external SD card partition as internal partition.
I took pointers from a lot of threads on xda forums to get this working, so I feel bound to share it.
Note: Have only tested it with Android 4.1.
(I'm not responsible for any Damage to your phone. Use at your own risk.)
Note: This will likely result in data loss. Backup!
Required :
1. Root Access
2. init.d support click here
3. Root Browser click here
4. SManager click here
5. An sd card (duh!) (with class 10 SD cards preferable)
6. Some way to partition your SD Card (like MiniTool Partition Manager)
Install instructions:
1. Create two ‘fat32’ partitions on SD card. Your first partition will be mounted as normal extSd card, and your second partition will be mounted as internal SD Card for your apps. (I partitioned my 64GB(10^9 bytes) sd card with ~16 GB 1st partition and ~42 GB 2nd partition)
2. Copy and paste “mountSd” to etc/init.d folder. (If you don’t have such a folder, means you lack init.d support. click here and follow instructions to enable it) This script creates another mount point called ‘sdcard2’ and mounts current internal sd card there. It also tries to mount second partition to ‘sdcard0’ location, but seems to fail some times (as fat32 is not natively supported linux partition it seems, but could be wrong), so step 3 is required.
3. Copy ‘mountSdFailSafe.txt’ to your phone’s ‘/data’ folder. Now with ‘SManager’, register this file as script with ‘su’ and ‘boot’ selected. (click and hold script -> in context menu click ‘Open As..’ -> ‘Script/Executable’ -> Is Script = true, select ‘su’ and ‘boot’ buttons)
4. Restart.
This should do it. Once restarted, second partition will be shown as internal memory.
Note:
You will lose all app data and other app related customizations. You may be able to restore it by simply copy pasting ‘Android’ folder from ‘/storage/sdcard2’ to ‘/storage/sdcard0’. This has not been tested by me but should work theoretically (as I started with a blank phone, and so did not need to back up my app data). Or you could use Titanium Backup.
Some Issues that occur due to this mod:
I have been using this mod since the past 2 weeks, and the phone is quite stable with this mod.
The only issue I have faced is that when connected to PC (Windows 8) through USB, ‘My Computer’ keeps crashing unless and until you disconnect the phone. Otherwise it seems to be working fine. To circumvent this issue I have been using Samba to share files between PC and my phone.
Please share how it works out for you guys.
Other Notes:
I tried to get this working with ext4 partition, which has a +ves that it will not require step ‘3’ of install instructions and supports file sizes >4GB, but there are loads of permission issues happening, which I could not solve.
(Thought of setting “set GID” bit and then finding and adding all users to root group but failed. Also tried to set owner group ‘sdcard_rw’ without much success. May be someone who knows linux better may know how to solve this, Could not find much help on the forums as it seems others are facing a similar problem see more)
Thanks to:
For basic idea (PS: do not use the given method exactly as you will end up in a boot loop. For some reason, ‘sdcard1’ mount point has to be mounted by system only and can’t be mounted any other way, it seems.)
http://forum.xda-developers.com/showthread.php?t=2180733
Click to expand...
Click to collapse
Am interested to try this but before I do, just wanted to check when you say data is lost, is it due to the lost of the original /data partition? Or just due to the sd card's partition?
What's the outcome when this is done, I mean do we have two data partitions one from the original phone's memory and another with the sdcard? And in the settings menu, will we get to choose to send apps over to sd? Thanks
grim_ripper said:
Am interested to try this but before I do, just wanted to check when you say data is lost, is it due to the lost of the original /data partition? Or just due to the sd card's partition?
What's the outcome when this is done, I mean do we have two data partitions one from the original phone's memory and another with the sdcard? And in the settings menu, will we get to choose to send apps over to sd? Thanks
Click to expand...
Click to collapse
Your application data will be lost in a way, as orig internal sd card will be mounted to 'sdcard2' mount point(newly created). All your app data will be installed to your memory card's second partition, which is now the new internal sdcard. To access your orig data, you will have to go to it through a file manager, and apps or media scanner will not be able to access this memory any more.
The scripts provided will not format your internal memory.
Still apk files, dalvik cache etc, will still take up your original internal memory's space.
Partitioning your sd card will probably format it as well unless you take special precaution (ie. through shrink volume).
Hope it makes sense...?
NisJ said:
Your application data will be lost in a way, as orig internal sd card will be mounted to 'sdcard2' mount point(newly created). All your app data will be installed to your memory card's second partition, which is now the new internal sdcard. To access your orig data, you will have to go to it through a file manager, and apps or media scanner will not be able to access this memory any more.
The scripts provided will not format your internal memory.
Still apk files, dalvik cache etc, will still take up your original internal memory's space.
Partitioning your sd card will probably format it as well unless you take special precaution (ie. through shrink volume).
Hope it makes sense...?
Click to expand...
Click to collapse
It makes sense, just am confused on how the system will still recognize the original storage when the sd card's storage is supposingly replacing it. Could you post a screen shot of your storage from settings?
grim_ripper said:
It makes sense, just am confused on how the system will still recognize the original storage when the sd card's storage is supposingly replacing it. Could you post a screen shot of your storage from settings?
Click to expand...
Click to collapse
Here you go....
PS: third image shows that internal storage is still accessible, just not to apps. Only apk files, and other android files go there go there. sdcard2 in 4th image is newly created mount point for your orig internal storage, but is ignored by most of the apps...
NisJ said:
Here you go....
PS: third image shows that internal storage is still accessible, just not to apps. Only apk files, and other android files go there go there. sdcard2 in 4th image is newly created mount point for your orig internal storage, but is ignored by most of the apps...
Click to expand...
Click to collapse
Can u do a tutorial video how to install this script bro?
Cuz the installation steps r bit complicated
Still here
N!geR -> E!ch0
NisJ said:
Here you go....
PS: third image shows that internal storage is still accessible, just not to apps. Only apk files, and other android files go there go there. sdcard2 in 4th image is newly created mount point for your orig internal storage, but is ignored by most of the apps...
Click to expand...
Click to collapse
Phone keeps rebooting now, couldn't copy it to /etc/init.d
I think it has something to do with having data running in the background, now I don't know what to do with my phone
EDIT: Ok, manage to recover from the reboot state, had to deny root access to my file explorer. I think the reboot was caused when I set permission to write for /system. Anyway, everytime I keep trying to copy to /etc/init.d, I get a permission denied so am not sure what I should do now.
grim_ripper said:
Phone keeps rebooting now, couldn't copy it to /etc/init.d
I think it has something to do with having data running in the background, now I don't know what to do with my phone
EDIT: Ok, manage to recover from the reboot state, had to deny root access to my file explorer. I think the reboot was caused when I set permission to write for /system. Anyway, everytime I keep trying to copy to /etc/init.d, I get a permission denied so am not sure what I should do now.
Click to expand...
Click to collapse
When ever you copy something to init.d it will reboot, or does it go into boot loop?
To check if it worked correctly, see if new mount point storage/sdcard2 was created..
EDIT: If it worked correctly, then you could move to next step.
else you could also skip it, and goto the next step of SManager, but in that case you will lose access to your original internal storage as it wont be mounted to sdcard2.
E!ch0 said:
Can u do a tutorial video how to install this script bro?
Cuz the installation steps r bit complicated
Still here
N!geR -> E!ch0
Click to expand...
Click to collapse
Creating a video will take time at least til sat... prob more.
Will see if I can create a simplified install instructions once i reach home.
NisJ said:
When ever you copy something to init.d it will reboot, or does it go into boot loop?
To check if it worked correctly, see if new mount point storage/sdcard2 was created..
EDIT: If it worked correctly, then you could move to next step.
else you could also skip it, and goto the next step of SManager, but in that case you will lose access to your original internal storage as it wont be mounted to sdcard2.
Click to expand...
Click to collapse
What happens is that everytime I try to mount /system as writable, it reboots and hence I can't copy either files to their designated location
EDIT: Also, now everytime I reboot, there's a popup that says USB connectivity has stopped, and if I go under settings->storage, settings fc. I'm thinking this has something to do with two partitions on the sd card so I hope it all goes away when this works or I revert back to as it was.
EDIT 2: So I managed to get all the files to the appropriate place using terminal and managed to get the script to run at boot. Alas, the phone doesn't detect my sdcard at all now and still throws the USB connectivity error at boot. Once I removed the sdcard, everything works alright. Also, I figured the solution to the reboot (haven't tested it yet as I wanted to resolve my sdcard first):
http://forum.xda-developers.com/showthread.php?t=2317432
EDIT 3: Got the reboot solve, but the sdcard can't be read and I tried plugging it into my other phone, the first partition is only read. I can't get minitool to even find the 2nd partition. I am thinking I need to get a card reader to plug it into my laptop. Anyway, I went through your script and open the log file it used, says that there's an invalid argument for mount. Any idea?
Final Edit: Got it working! I had to re-partition my sdcard and made both partitions primary so maybe you might want to add that in OP as MiniTool by default selected the 2nd partition as logical
grim_ripper said:
What happens is that everytime I try to mount /system as writable, it reboots and hence I can't copy either files to their designated location
EDIT: Also, now everytime I reboot, there's a popup that says USB connectivity has stopped, and if I go under settings->storage, settings fc. I'm thinking this has something to do with two partitions on the sd card so I hope it all goes away when this works or I revert back to as it was.
EDIT 2: So I managed to get all the files to the appropriate place using terminal and managed to get the script to run at boot. Alas, the phone doesn't detect my sdcard at all now and still throws the USB connectivity error at boot. Once I removed the sdcard, everything works alright. Also, I figured the solution to the reboot (haven't tested it yet as I wanted to resolve my sdcard first):
http://forum.xda-developers.com/showthread.php?t=2317432
EDIT 3: Got the reboot solve, but the sdcard can't be read and I tried plugging it into my other phone, the first partition is only read. I can't get minitool to even find the 2nd partition. I am thinking I need to get a card reader to plug it into my laptop. Anyway, I went through your script and open the log file it used, says that there's an invalid argument for mount. Any idea?
Click to expand...
Click to collapse
Why are you trying to mount /system as rw?
for getting init.d support you just have to download the apk from mentioned thread and install it, and then fallow instruction in app.
you can mount root as rw with the foll command if you want, and that is exactly what is done in he scripts as well if you will check:
Code:
mount -o remount,rw /
also to check if partition is created on sd card, type the command:
Code:
blkid
and see if
Code:
/dev/block/vold/179:34
is listed
if not post the output and i'll see what i can do.
grim_ripper said:
Final Edit: Got it working! I had to re-partition my sdcard and made both partitions primary so maybe you might want to add that in OP as MiniTool by default selected the 2nd partition as logical
Click to expand...
Click to collapse
EDIT: Correct, you need both the partitions to be primary. got out of my mind when posting the tutorial.
NisJ said:
Why are you trying to mount /system as rw?
for getting init.d support you just have to download the apk from mentioned thread and install it, and then fallow instruction in app.
you can mount root as rw with the foll command if you want, and that is exactly what is done in he scripts as well if you will check:
Code:
mount -o remount,rw /
also to check if partition is created on sd card, type the command:
Code:
blkid
and see if
Code:
/dev/block/vold/179:34
is listed
if not post the output and i'll see what i can do.
EDIT: Correct, you need both the partitions to be primary. got out of my mind when posting the tutorial.
Click to expand...
Click to collapse
For whatever reason, my /etc folder is actually a link from /system/etc
Could you post a way to revert back? I think my apps are acting all funny now and just want to revert back to before. Thanks!
grim_ripper said:
Could you post a way to revert back? I think my apps are acting all funny now and just want to revert back to before. Thanks!
Click to expand...
Click to collapse
The apps are behaving funny because you have lost their data as I had warned in the original post.
To fix do either of the foll:
1. reinstall app, and start fresh.
or
2. restore from Titanium backup if you had created...
or
3. copy paste 'Android' folder from sdcard2 if it is created to 'sdcard0'
To remove and revert, just delete the files from int.d, and stop scheduling it in SManger.
Note: to un schedule it from smanager, you first have to remove memory card, un schedule and then put in your memory card (this is coz when phone boots up, it is in standard way, with 8gb internal but, after script is executed SManager looses its data too.
How complicated will it be to make this compatible with 4.2.2?
grim_ripper said:
How complicated will it be to make this compatible with 4.2.2?
Click to expand...
Click to collapse
Ideally should be possible, unless something has changed majorly, but I haven't tried it, as am waiting for OTA update. If it is not forth coming in 2-3 weeks, may be tempted to flash nordic rom and try.
NisJ said:
Ideally should be possible, unless something has changed majorly, but I haven't tried it, as am waiting for OTA update. If it is not forth coming in 2-3 weeks, may be tempted to flash nordic rom and try.
Click to expand...
Click to collapse
I did try but nothing happened, am guessing it has permission issues or something on those lines
grim_ripper said:
I did try but nothing happened, am guessing it has permission issues or something on those lines
Click to expand...
Click to collapse
Could you be more specific? Like system restarts etc...
Else in terminal try out what I Gave in post no 12 and give me what the output is for both the commands in the terminal.
Note: execute them with super user credentials.
Thanks
NisJ said:
Could you be more specific? Like system restarts etc...
Else in terminal try out what I Gave in post no 12 and give me what the output is for both the commands in the terminal.
Note: execute them with super user credentials.
Thanks
Click to expand...
Click to collapse
on the 4.2.2 update, it doesnt recognize the second partition even if it is formatted to primary and set to active. there r definitely some updates done in that field and plus i cant get the init.d rights on the phone as the test.log file is absent in the data folder..no matter what i do i just cant get it straight with the present procedure. please try it on 4.2 and there r more frequent updates on the nordiac then the local version. so i decided to flash it rather than waiting for ota update

[Q] Restore symlink to external SD after update to 4.1.2 / V20B?

Hi guys, I updated my P880 to V20B and now have problems with using the external SD properly. I found it being mountend to storage/external_SD and I can read/write there. BUT: I can't set a folder on it as the backup location in Super Backup (as I could before), my LG notes aren't backed up automatically to the external SD location (as it was before), and I expect many similar problems to arise with time.
Formerly, the external SD was mounted to mnt/sdcard/external_sd, if I remember correctly. Now this symbolic link (?) is missing. When I performed the update and then first booted the updated device, I had the external SD removed to make sure my backups were safe. Might that be the reason for the missing link? My questions are:
1. Should I flash the kdz again with the SD card inserted? Or at least perform a factory reset?
2. Or could the link be created afterwards, preferrably without rooting my device? Would that solve the problem, at all?
Any suggestions would be greatly appreciated!
Nothing?
How about formatting SD card ? Did you tryed that ? On 20a my card is read as storage/external_SD just fine.
dimi89 said:
How about formatting SD card ? Did you tryed that ? On 20a my card is read as storage/external_SD just fine.
Click to expand...
Click to collapse
Hey dimi, thanks for the suggestion! However, I am afraid you didn't read my post very carefully. I wrote that I actually CAN read/write to my external SD. But I cannot set the path in applications like Super Backup (when I navigate to some folder on storage/external_SD, the button "Select this folder" is inactive). And I suspected it is because it is no subpath of mnt/sdcard anymore. Also, some apps like LG notes don't write/backup to the external SD by default any more, and some of them unfortunately are not configurable.
That's the reason why I thought creating a simbolic link for mnt/sdcard/external_sd (as it was before) might solve the problem. However, I am absolutely not sure of this (plus: how to achive it) and would be happy about an expert's opinion.
pegnose said:
Hey dimi, thanks for the suggestion! However, I am afraid you didn't read my post very carefully. I wrote that I actually CAN read/write to my external SD. But I cannot set the path in applications like Super Backup (when I navigate to some folder on storage/external_SD, the button "Select this folder" is inactive). And I suspected it is because it is no subpath of mnt/sdcard anymore. Also, some apps like LG notes don't write/backup to the external SD by default any more, and some of them unfortunately are not configurable.
That's the reason why I thought creating a simbolic link for mnt/sdcard/external_sd (as it was before) might solve the problem. However, I am absolutely not sure of this (plus: how to achive it) and would be happy about an expert's opinion.
Click to expand...
Click to collapse
In super backup i couldnt set path since first day i downloaded it and today i tryed again with new version of app and it is the same.SMS backup is working fine so i suppoust it is problem with app (maybe in pro version it will work).
dimi89 said:
In super backup i couldnt set path since first day i downloaded it and today i tryed again with new version of app and it is the same.SMS backup is working fine so i suppoust it is problem with app (maybe in pro version it will work).
Click to expand...
Click to collapse
I can set path anywhere on storage/sdcard, but not on storage/external_SD. Also the Notes application doesn't back up to external SD, as it did before. Coincidence? Maybe. I will find out with time using other applications.
Am I right that creating symbolic links without root access is not possible?
pegnose said:
I can set path anywhere on storage/sdcard, but not on storage/external_SD. Also the Notes application doesn't back up to external SD, as it did before. Coincidence? Maybe. I will find out with time using other applications.
Am I right that creating symbolic links without root access is not possible?
Click to expand...
Click to collapse
Idk about creating links but it is not coincidence that you and me cant select any folder on external_SD i guess it is app bug or maybe as i sad premium version requirement.
dimi89 said:
Idk about creating links but it is not coincidence that you and me cant select any folder on external_SD i guess it is app bug or maybe as i sad premium version requirement.
Click to expand...
Click to collapse
It worked on 4.0.3.
Hi again, I made some progress here!
I managed to create a symbolic link to my external SD (I am on a rooted CM10.1.3 now), but that didn't help. I could use it within the ES file explorer for navigation, but not within Super Backup (didn't see it). So I tried to MOUNT the external SD instead. Here is the command I finally used:
mount -t vfat -o rw,umask=000 /dev/block/mmcblk1p1 /data/media/0/extSD
No errors, I can access my SD via this mount point with ES file explorer, and I can navigate into this top folder now with Super Backup and select it as backup location. BUT I can't actually back up here, as Super Backup can't write, I guess ("backup failed").
I was hoping that this "umask" parameter would do the trick, but unfortunately not. Interestingly: when I navigate with Super Backup to this new backup location, all the subfolders of my external SD card appear as files, not folders.
I am pretty sure, it is nearly done and only has to do with setting the right permissions.
Does anyone have an idea what I could try now?
EDIT: I just unmounted, applied "chmod 777 /data/media/0/extSD" and remounted again (this time with "rwx" parameter). No changes.
Ok, I am back to 4.0.3 ICS and everything is fine.

Categories

Resources