Project

General

Profile

Internal/External storage cannot be used

Added by K KL over 7 years ago

I have installed Replicant 4.2 on I9100 and the apps cannot use the internal storage, so for example I cannot save what the photos from the camera.
Moreover it seems that every external SD card is recognised as "Damaged SD card", and when I am trying to format it, the operation fails.
I want to mention that I haven't used any data/storage encryption before Replicant.
Do you have any suggestions to this issue?
Thanks!


Replies (7)

RE: Internal/External storage cannot be used - Added by Xan VFR over 7 years ago

Check /storage permissions conecting with adb (adb root && adb shell)

RE: Internal/External storage cannot be used - Added by K KL over 7 years ago

Thanks for reply, but unfortunately my phone is not visible, even though I enable it (Android debugging and USB debugging notify) in developer options. I receive no notification to allow RSA key in order to be able to connect it with the computer. Any suggestions regarding this issue? Thank you!

RE: Internal/External storage cannot be used - Added by Xan VFR over 7 years ago

I had that problem once because of a faulty USB cable.

Do you see your phone as an USB device on your computer when you plug it in? Does any message pop up on the computer or see anything in the system log about it?

RE: Internal/External storage cannot be used - Added by K KL over 7 years ago

Thanks! The cable was the problem. I was using a 3rd party cable and it was working only for charging.
I checked the permissions of the /storage, and I have following:
drwxrwxr-x system system 2016-12-23 01:12 sdcard0
d---rwxr-x system sdcard_rw 1970-01-01 02:00 sdcard1
drwxrwxr-x system system 2016-12-23 01:12 usbdisk0
The Problem is that I wasn't able to change the permissions of sdcard1. I was using:
chmod 777 /storage/sdcard1
but even though the command was successful executed there is no change in permissions.
Do you have any suggestions?
Thank you!

RE: Internal/External storage cannot be used - Added by Xan VFR over 7 years ago

Do you execute adb root before executing adb shell? I guess you have set Administrative privileges for ADB (at least) in your phone's Settings, right?

Here's my (untouched) configuration:

root@android:/storage # ls -l
dr-xr-xr-x root root 2016-12-23 08:54 emulated
lrwxrwxrwx root root 2016-12-23 08:54 sdcard0 -> /storage/emulated/legacy
d---rwxr-x system sdcard_rw 1970-01-01 00:00 sdcard1
drwxrwxr-x system system 2016-12-23 08:54 usbdisk0

Hope this helps.

RE: Internal/External storage cannot be used - Added by K KL over 7 years ago

Yes, I was in root mode.
I do not have the emulated mode. How can I activate it?
Thanks for help!

RE: Internal/External storage cannot be used - Added by Xan VFR over 7 years ago

K KL wrote:

I do not have the emulated mode. How can I activate it?

Actually, I have no idea why or how it's activated.

Another thing you could try is to run

adb logcat -b main
and then try to chmod some file/directory and/or try to rename/create some file/directory and see if appears some message in the log that could give a clue about what's going on.

K KL wrote:

Thanks for help!

You're welcome. Glad to help.

    (1-7/7)