[Q] can't copy/move to INTERNAL memory - Galaxy S 4 Mini Q&A, Help & Troubleshooting

hello everyone. Everything was fine, until i decided to restore the phone to it's factory settings, because of too much battery drain.
My phone is rooted, it is stock 4.2.2, and i have 2 file managers: ES File Manager (for it's LAN possibility) and Root Explorer 3.1.7 for it's speed. And also have the stock file manager.
After the factory restore, i noticed that i am unable to copy/move files to internal memory from MicroSD via ES File Manager and Root Explorer, and Solid Explorer, though i granted them root rights via SuperSU. Everytime i try to do so, i get this message:
Copy failed to /storage/emulated/0. I tried converting this apps to system apps, using Titanium Backup, but no succes
i also can't copy/move anything to folders located inside /storage/emulated/0, like: Alarms, Android, backups, Books, clockworkmod, DCIM, Documents, Download, fonts, Movies, Notifications, Pictures, Podcasts, Sounds...
interesting is that i can create folders inside these ones, but i can't copy/move anything there.
Moon+ Reader also can't create its backup files inside /sdcard/Books/MoonReader/Backup/ with a message of open failed: EACCES (Permission denied), but there's no problem when backing-up files on 32GB MicroSD.
uTorrent application also can't write data inside /storage/emulated/0, giving the same error: EACCES (Persmission denied).
Another very interesting thing is that i CAN copy/move files to /storage/emulated/0 via stock file manager.
I also CAN copy/move files via ES File Explorer, Root Explorer to any other folder located outside /storage/emulated/0.
i tried changing the permissions of /storage folder to rwxrwxr-- using Root Explorer, and it changes. I can also change the /storage/emulated permissions from ---r-x--- to rwxrwxrwx, but despite this, i can't copy/move files. After phone reboot, the permissions of /storage/emulated restores to ---r-x---.
Can't change any permissions on /storage/sdcard0, /storage/emulated/0, /storage/emulated/legacy, though they are respectively: rwxrwxrwx, rwxrwxr-x, rwxrwxr-x. I get: permissions change was not successful. Please note that some file systems (e.g. SD card) do not allow permission changes.
Any ideas on a workaround ?
Thank you for any help you can provide in this situation.

i fixed the problem by installing a modified stock kernel GT-I9195_Kernel_v1.zip from here http://forum.xda-developers.com/showthread.php?t=2364980 because i had high battery drain (up to 3% per hour) in idle mode, with gps, sync, gmaps, nfc, 3g - all turned off. Sometimes i had 0.5% per hour, sometimes 2% per hour, sometimes 3% per hour. Restarting the phone sometimes fixed the drain, other times - didn't.
Will see if it's the fix for the battery also.
moderators, please add a "fixed" to the title of the thread.

Related

All files Disapeared

Hello,
I Have a Big problem...
On my nexus, Since I copy ont file onto the SD, all other files are Disapeared....
I tryed to use recevey softwares, but oly work with mass storage cards....
Somebody have an idea how can I restore my files please ??
xTremePower said:
Hello,
I Have a Big problem...
On my nexus, Since I copy ont file onto the SD, all other files are Disapeared....
I tryed to use recevey softwares, but oly work with mass storage cards....
Somebody have an idea how can I restore my files please ??
Click to expand...
Click to collapse
Can you offer any additional info? Have to used Root Explorer or a similar app to confirm without a doubt the files are gone and not just in a different place? And I am slightly confused when you say "move to sd card" because internal storage and SDcard on this phone are the same thing since there is no EXT..
I copyed files as usualy from computer to the nexus
After the copy (I copied the new google apps zip) this zip is ont the storage, but all other 12Go of data in the card are disapeared
I try to find it with windows, root explorer, es file explorer, I tryed android undelet tools and windows undelet tools... noone can see the MTP memory of the nexus .......
And I disabled the upload to picasa..
xTremePower said:
I copyed files as usualy from computer to the nexus
After the copy (I copied the new google apps zip) this zip is ont the storage, but all other 12Go of data in the card are disapeared
I try to find it with windows, root explorer, es file explorer, I tryed android undelet tools and windows undelet tools... noone can see the MTP memory of the nexus .......
And I disabled the upload to picasa..
Click to expand...
Click to collapse
Do you have fast usb charge enabled? If so, try disabling that.
all files in /sdcard disappeared
The same thing just happened to me. I copied 386MB of music to /sdcard/Music and all appeared to be fine. I used Windows7 x64 Explorer over USB mounted as MTP.
I noticed that I could not copy some files back to Windows from Nexus. After messing around with that for a while I used ES File Explorer to check out /sdcard. Only a few folders were there, as if /sdcard were newly created. I could still see all of the lost folders in Windows Explorer.
Am I screwed?
TIA!
This is from a corrupt MediaStore DB. I ran into something similar when moving files to my phone over WiFi using File Explorer. Afterwards only a handful of folders showed up when connected via USB. Only way to fix it is to reset the DB. Settings > Apps > All > Media Storage > Clear data/cache. Reboot. It should completely rebuild the DB after the boot, and things should show up correctly again.
osm0sis said:
This is from a corrupt MediaStore DB. I ran into something similar when moving files to my phone over WiFi using File Explorer. After only a handful of folders showed up when connected via USB. Only way to fix it is to reset the DB. Settings > Apps > All > Media Storage > Clear data/cache. Reboot. It should completely rebuild the DB after the boot, and things should show up correctly again.
Click to expand...
Click to collapse
That did not get all my data back, I must have done something else while trying to fix it. The good news is that this fixed one of my next questions: How do I reset the Google Music album art? The suggestion above fixed that wonderfully.
Thanks!

Confused by file system

When I plug my phone into my PC I can see a file on my SD card called 'Android' with my game data.
But when I open ES File explorer on my phone there is another file called 'android' (small 'a') which appears empty, but I can't delete it.
When I go up to root /data/media I can see what looks like my SD card with the 'Android' and 'android' folders but there appear to be duplicate files while others are missing or moved.
I think after flashing new kernels this week there are duplicate files being created. I often have to re-download game data after flashing a kernel and I seem to be losing a lot of SD memory.
I just want to know which folders should I delete?
Using superuser permission should allow you to delete the "android" folder or file. If ES Explorer don't work, try Root Explorer or do it in adb if you know how.
In linux file systems, A and a can be two different files or folders.
Or you can reflash google factory image and that will wipe the entire internal storage.
Thanks.
I managed to delete both the Android folders.
Had to re-download all my game data but I've ended up with about 3 gig more memory.

[Q] es file explorer deleted my files

So I was trying to move my files from whatever directory they were in to my storage since I had just gone from tw to miui so the directory change mess up thing happened. It would go and overwrite the new empty same name folders but nothing would show up I go back to the directory they were in and everything was gone. Restart my phone and some showed up and managed to transfer only a small portion of my pictures and some other files. My music files and some of other folders I tried transferring again and it would seem like everything went well but they wouldn't show up in my storage folder and it disappeared from the original folder it was in. They got deleted. I had about 3gb of free storage now I have 9. Sigh. So is there anything I can do to recover my files? I'm about ready to toss this phone out the window I've never had problems with es until now.
I know that there are file recovery programs for Windows and macs. You'll need to Google it because I can't remember what it's called.
I think is Recuva.
Sent from my SPH-L710
You can use data recovery tool to recover deleted files from ES file explorer. See this step by step ES file explorer deleted files recovery tutorial.
hope this helps.

Unable to delete files or folders from External HD

I had been using the mount USB to data script successfully until I think something got corrupted and I could not boot. I imaged the HD to save as much as I could, put the image on another drive, formatted the original drive and copied the files from image over using a Linux Live CD. FFWD to last night I realized that my Vice City game failed everytime I tried to save. I uninstalled the game but the folder still persisted in the Android/Data folder. I tried to delete the folder with ES file explorer, Root Browser and AirDroid but they all fail. I checked permissions and they look fine and any file or folder I have created after the crash can be deleted, renamed etc but I can not delete or rename any of the files I transfered with the Linux Live CD. Anybody have any ideas? It seems almost like a owner permission thing but the files I'm looking at have root as the owner.
Thanks
Dave
So I fixed this by using sudo dbus-launch nautilus command and changing all permissions to root and read write

Can't move some files, can't create some folders

I don't know how else to describe this issue I'm having:
Essentially sometimes I cannot create new folders, either in an explorer app (ES File Manager, Explorer (free, not Root Explorer), or other file manager) or when connected to my computers via USB. Sometimes I can do both. Similarly, sometimes I cannot move files from one directory to another, both using file manager or when connected to computer over USB. It seems random, I think?
An example of this is I downloaded a PDF file from SharePoint using Chrome. The file is downloaded to the /Downloads directory by default. I wanted to move this to a different directory (/Documents), but the cut+paste operation failed. ES File Manager says the operation can't be completed, Explorer just sits there and doesn't say anything. When trying to do the same thing over USB connection, Windows just sits there saying the device is busy, and it'll sit there indefinitely. But an OGG file I downloaded from Dropbox was free to be moved to and from several directories when I was testing file operations.
Basically it's like my device doesn't want to play nice with files and folders. I tried doing a factory reset, but that didn't seem to help. Do you think completely reformatting the phone (as in fastboot format userdata, and a fresh ROM + kernel install) would help? It seems drastic, but at the same time being unable to move files and folders is very strange and likely hard to pinpoint the culprit.
I'm rooted (using traditional SuperSU root) running Pure Nexus 12/01/2015 ROM and ElementalX 0.07 kernel (Enforcing disabled). I doubt any of those 3 factors are the cause of it, but every detail might help, right?
Update: It looks like a permissions issue. Please see post below.
OK an update to this, I discovered that some folders that I thought I had deleted using ES File Manager are still showing up in USB storage when I'm hooked up to a computer. That is to say that what I see using a file manager versus what I see while connected to a computer are different.
Further to this, I am now getting "Permission denied" by the file managers when I try to copy and paste anything from anywhere to any other place. I have booted into TWRP to run Fix Permissions already. It looks like everything now has rwxrwx---, which means to me 770? It should be 775, no?
Any ideas what might be causing this permissions issue?
daver68 said:
OK an update to this, I discovered that some folders that I thought I had deleted using ES File Manager are still showing up in USB storage when I'm hooked up to a computer. That is to say that what I see using a file manager versus what I see while connected to a computer are different.
Click to expand...
Click to collapse
For this, I read somewhere that the latest ES File app has a recycling bin for when you delete apps. So, that needs to be emptied too.
Sent from my Nexus 5X using Tapatalk
SlimSnoopOS said:
For this, I read somewhere that the latest ES File app has a recycling bin for when you delete apps. So, that needs to be emptied too.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
I did indeed clean out the Recycle Bin (and subsequently disabled it), but the problem persists. But thanks for pointing that out!
OK, an interesting discovery:
If I am on my device and using ES File Explorer and if I am in the path /storage/emulated/0/* then I am unable to copy/move files and directories, as I've described above.
If I am on my device and using ES File Explorer and if I am in the path /sdcard/* then I am unable to copy/move files and directories, as I've described above.
If I am on my device and using ES File Explorer and if I am in the path /data/media/0/* then I am able to do anything I damn well please.
Now this makes a bit of sense to me, given the permissions for each directory. For example, when viewing the permissions of a file or folder when in /sdcard or /storage/emulated/0, I can only see the permissions as "Readable: Yes, Writeable: Yes", but I cannot change said permissions. However, when I view the permissions for something when under /data/media/0 then not only can I see the explicit permissions "rw-rw-r--" I can also change it if I wanted to.
I suspect this might be more than just the ROM. Perhaps I did not flash the system.img correctly when I first went through the process? Is this possible?

Categories

Resources