Factory reset device, cant access storage/emulated/0 - Galaxy S 4 Q&A, Help & Troubleshooting

Hi there
Im sorry if this been asked before, but I did some searches and couldnt find anything related to this
I just made a factory reset on my phone, because the battery drain was horrible and couldnt locate which app was causing this.
The device is rooted and its been working fine until now. For some reason Titanium Backup cannot access the path storage/emulated/0. This is where the backups are supposed to be stored. But it doesnt have access to any other internal path, it always says "this folder is not writable" every time I try to use internal storage. Thus cant make any backup or restore. I cant even see the list of the apps that are installed in order to freeze some of them.
Same happens to ES File Explorer. Before I could access storage/emulated/0 to transfer files from/to my MicroSD. And when I tried to copy a WhatsApp back up it says that it failed. In the memory selector I could choose between extCard and the before mentioned path. Now I can only see the extCard and a "legacy" drive, or whatever its called.
I tried fixing permisions for TB and ES File Explorer and used an App thats suppossed to fix the KitKat SDcard issue but its not working for me
It seems to me that the internal storage is somehow write protected?
Anyone can help? With links or your own knolwdge.
Thanks

Alberto5501 said:
Hi there
Im sorry if this been asked before, but I did some searches and couldnt find anything related to this
I just made a factory reset on my phone, because the battery drain was horrible and couldnt locate which app was causing this.
The device is rooted and its been working fine until now. For some reason Titanium Backup cannot access the path storage/emulated/0. This is where the backups are supposed to be stored. But it doesnt have access to any other internal path, it always says "this folder is not writable" every time I try to use internal storage. Thus cant make any backup or restore. I cant even see the list of the apps that are installed in order to freeze some of them.
Same happens to ES File Explorer. Before I could access storage/emulated/0 to transfer files from/to my MicroSD. And when I tried to copy a WhatsApp back up it says that it failed. In the memory selector I could choose between extCard and the before mentioned path. Now I can only see the extCard and a "legacy" drive, or whatever its called.
I tried fixing permisions for TB and ES File Explorer and used an App thats suppossed to fix the KitKat SDcard issue but its not working for me
It seems to me that the internal storage is somehow write protected?
Anyone can help? With links or your own knolwdge.
Thanks
Click to expand...
Click to collapse
Did you find a solution? I am stuck with the same issue and have tried all the steps you mentioned.

Sadly I didn't find any solution for this issue. I just sold the device and got a Note 3 shortly after I wrote this post. Maybe you could reflash the whole firmware via Odin? Or restoring the device via Kies.

Related

Yikes! I removed the "storage" folder in storage/emulated/0/. Help!

Great. Now my entire virtual SD Card has been wiped! Don't delete the storage directory in the root of your virtual SD Card (/storage/emulated/0/) or (/storage/emulated/legacy/). Watch out!
Now, I'm wondering if I can somehow gain access to the files if I recreate this folder. From what I remember, there were a number of nested folders within this "storage" directory.
Can someone give me the dir structure of your "storage" folder? Thanks!!
EDIT: This is how I did it. See post 6. Stay away from your "storage" folder while browsing your phones sd card over MTP at the computer!!!
http://forum.xda-developers.com/showpost.php?p=44519212&postcount=6
I'm not sure if this is what you are asking for. If it is, then yay! If it isn't, please ignore.
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
OneChaos said:
I'm not sure if this is what you are asking for. If it is, then yay! If it isn't, please ignore.
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
Click to expand...
Click to collapse
Hey thanks for that, but I'm pretty sure there was a folder called "storage" in /storage/emulated/0/ (or the same location /storage/emulated/legacy/).
So, what I'm looking for is what the folders are in *that* folder. And it should look something like the following:
/storage/emulated/0/storage/...... <---------- these are the folders I'm missing, and there most likely is a symlink in there. I think if I can just recreate that folder structure and recreate the right symlink there, then I might be able to get my photos back.
Thanks.
You're saying there is a "storage" folder in /storage/emulated/0 or /storage/emulated/legacy? Mine only comes with these 2 directory, and /storage/sdcard0 is a link to legacy.
Now you still have that 2 directory but can't find any of your files inside?
You deleted the storage when hooked up on your PC yes ?.
The storage folder your referring to only shows when browsing your folders via your PC so you could try recreating it via your PC again but I seriously think its gone mate. I accidentally deleted this folder too once but I always have regular backups on my pc.
NeXuS⁴
slymobi said:
You deleted the storage when hooked up on your PC yes ?.
The storage folder your referring to only shows when browsing your folders via your PC so you could try recreating it via your PC again but I seriously think its gone mate. I accidentally deleted this folder too once but I always have regular backups on my pc.
NeXuS⁴
Click to expand...
Click to collapse
Yes!!! Thanks for this post! I was indeed cleaning up my "sd card" from the PC (over MTP). And, I noticed a storage folder at the root of the SD card. In fact, it's there right now! If I browse the contents of the SD card on the PC, there is a storage folder there with only an empty "emulated" folder in it. I've never noticed it there before, so I just deleted it. Suddenly, I couldn't access anything else on the sd card from the PC. I thought, that's weird. Sure enough, everything just vanished!!
WORD TO THE WISE: Stay away from that "storage" folder at the root of your SD Card when browsing its contents over MTP!!!!!!!!
why not just do a factory image flash? userdata.img should contain all the folders and locations you need to restore it properly.
hp420 said:
why not just do a factory image flash? userdata.img should contain all the folders and locations you need to restore it properly.
Click to expand...
Click to collapse
Oh, there ins't a problem anymore. I just thought that the "missing" symlinks had something to do with my wiped sd card. But, it turns out that the missing symlinks aren't shown in the default CM file browser, only in other file browsers. They were there all along.
The kernel of the story has been solved as I now know how I wiped my sd card.
floepie said:
Great. Now my entire virtual SD Card has been wiped! Don't delete the storage directory in the root of your virtual SD Card (/storage/emulated/0/) or (/storage/emulated/legacy/). Watch out!
Now, I'm wondering if I can somehow gain access to the files if I recreate this folder. From what I remember, there were a number of nested folders within this "storage" directory.
Can someone give me the dir structure of your "storage" folder? Thanks!!
EDIT: This is how I did it. See post 6. Stay away from your "storage" folder while browsing your phones sd card over MTP at the computer!!!
http://forum.xda-developers.com/showpost.php?p=44519212&postcount=6
Click to expand...
Click to collapse
There is no way to get the files back, I deleted it once when connected to PC because I didn't recognized the folder and it was empty, so I deleted it. Then I tried for a week in every forum to found an answer, but there is none.
reflashing your current rom or any other rom would have brought everything back to how it should be. a deleted my whole system once, then just relashed my current rom at the time, and all came back.
Galaxo60 said:
There is no way to get the files back, I deleted it once when connected to PC because I didn't recognized the folder and it was empty, so I deleted it. Then I tried for a week in every forum to found an answer, but there is none.
Click to expand...
Click to collapse
Oh, I got most, if not all my photos back. There is a great link which shows you how to transfer your entire userdata partition to your hard drive and search for recoverable files. Alternatively, you can also use the app diskdigger and send your pics to your PC using coreFTP or other FTP server. Both methods recovered about the same number of photos. So, yeah, a reasonably good ending.
http://forum.xda-developers.com/showthread.php?t=1994705
simms22 said:
reflashing your current rom or any other rom would have brought everything back to how it should be. a deleted my whole system once, then just relashed my current rom at the time, and all came back.
Click to expand...
Click to collapse
Not in my case. That's the first thing I did. I thought, it's just a symlink, right? Well, not really. It's not really a symlink on a different partition. Again, it is only created during an active MTP session and ONLY visible on the PC. And, as soon as you wipe these seemingly empty folders, all references to the files are lost, as the system begins to slowly re-populate the space, which is really at /data/media/0.
Galaxo60 said:
There is no way to get the files back, I deleted it once when connected to PC because I didn't recognized the folder and it was empty, so I deleted it. Then I tried for a week in every forum to found an answer, but there is none.
Click to expand...
Click to collapse
I know it wouldn't bring your files back, but it would restructure your storage partition properly so you could start from scratch, rather than recreating all the folders manually.
hp420 said:
I know it wouldn't bring your files back, but it would restructure your storage partition properly so you could start from scratch, rather than recreating all the folders manually.
Click to expand...
Click to collapse
? No one is doing anything manually. Did you intend to reply to me? The missing symlinks referred to earlier have nothing to do with it, as I discovered and reported a few posts ago. Again, there is a "storage" folder at the root of the SD card only visible at the PC when connected over the MTP protocol. When this folder is deleted, all is lost immediately, even by re-flashing a ROM. Hope that helps someone to avoid deleting it and consequently all their virtual sd card files.
floepie said:
Oh, there ins't a problem anymore. I just thought that the "missing" symlinks had something to do with my wiped sd card. But, it turns out that the missing symlinks aren't shown in the default CM file browser, only in other file browsers. They were there all along.
The kernel of the story has been solved as I now know how I wiped my sd card.
Click to expand...
Click to collapse
Hey how did you do it? Which third party file browser did you use? I have done the same thing..
Check /data/media/ those folders are just linked to /data/media/ anyways. All your stuff should be there unless if you deleted the entire data partition
Sent from my Nexus 4 using xda app-developers app
ninad911 said:
Hey how did you do it? Which third party file browser did you use? I have done the same thing..
Click to expand...
Click to collapse
The problem is that if you are browsing the SD card contents from your computer (while the phone is connected), a folder appears there that otherwise is NOT present while browsing the card's contents from the phone, while the phone is NOT connected. I forgot which folder it is, but I believe it is called sdcard0 or some such at the root of the SD card. I have no idea why it appears, but if you delete it, you have deleted the entire contents of your SD card. And, yes, you have lost everything unless you are able to acquire a special tool to recover the contents, but if you have done so, don't do anything with your phone, as those contents will be overwritten by new files.
In so doing, I had originally thought that there were symlinks that were also deleted, but that wasn't the case. The symlinks were still present as viewable by ES File Explorer, but not with CM's file explorer. In any case, all my files were still lost, but I was indeed able to recover the majority.
Edit. I used Diskdigger in the Play store. And it worked pretty well. The other option is linked in this thread above.
floepie said:
Great. Now my entire virtual SD Card has been wiped! Don't delete the storage directory in the root of your virtual SD Card (/storage/emulated/0/) or (/storage/emulated/legacy/). Watch out!
Now, I'm wondering if I can somehow gain access to the files if I recreate this folder. From what I remember, there were a number of nested folders within this "storage" directory.
Can someone give me the dir structure of your "storage" folder? Thanks!!
EDIT: This is how I did it. See post 6. Stay away from your "storage" folder while browsing your phones sd card over MTP at the computer!!!
http://forum.xda-developers.com/showpost.php?p=44519212&postcount=6
Click to expand...
Click to collapse
Hey, were you able to recover the data on your phone after deleting that folder? Please let me know and also check your inbox please! Need your help
Aditya Srinidhi said:
Hey, were you able to recover the data on your phone after deleting that folder? Please let me know and also check your inbox please! Need your help
Click to expand...
Click to collapse
Yes. First, either turn your phone off or do VERY little with it, as those files could be overwritten.
I had surprisingly good success with Diskdigger. It was able to recover most of my photos, although some were a bit "damaged", as in only half of the photo showing, and some other oddities. But, at least it was better than nothing. You will need root access for this sort of thing.
floepie said:
Yes. First, either turn your phone off or do VERY little with it, as those files could be overwritten.
I had surprisingly good success with Diskdigger. It was able to recover most of my photos, although some were a bit "damaged", as in only half of the photo showing, and some other oddities. But, at least it was better than nothing. You will need root access for this sort of thing.
Click to expand...
Click to collapse
Thanks a lot!!! Im using disk digger and I already see a lot of my images turning up
Just one other doubt, if I were to use the link to guide which you posted which allows to mount the VHD as a USB storage, does that allow me to recover other files too?

[Q] External SD not working after custom ROM install...

I'm relatively new to this but up until now I've had no problems so far... So I just upgraded to the latest version of Jamal's 4.4.2, following the proper install method, clearing data and caches in CWM.
I DL'd Titanium Backup and tried to change my backup location to where I store my apps which is on my SD however upon selecting /extsdcard it says that 'this folder is not writable'. Using a file manager and attempting to access external just displays an empty folder. However, going into settings-storage shows that the SD card is mounted and displays the correct size/available space.
If I unmount then mount the card it seems to function again, I am able to access the files in a file manager. That is until I go back into Titanium Backup. Now it does something different here if I press 'DETECT!', it finds my backups and displays the correct amount and path on the external however upon selecting them it takes me to the appropriate folder and says 'This folder is not writable' and 'this folder is empty.' and Use the current folder' is greyed out. The external sd is then back to displaying nothing in the file managers again.
I've tried wiping and re-installing the ROM, but it still carries on doing the same thing. I've searched in the ROM's thread and other places and I haven't been able to come up with any solution so I'd be grateful if you could shed some light into this issue and possibly offer a potential fix?
this issue is hard.Im not a developer,but I think you need change an another firmware or change a new TF card.so you can know what's the problem.But I have a damaged TF card have the similar problem.but due to I have no important file in it ,I throw it out
hope I can help you

SD Card issue: Folders & files being deleted after reboot

I'm having a serious issue and I'm not sure if it has to do with the rom or an app... Idk, but it's extremely frustrating. Any help would be appreciated. And I'm sorry if it ends up being something that has nothing to do with a bug in the rom.
Here's what's happening:
I'll connect my to my pc through USB to transfer files and such. I navigate to my external SD card. I create a folder and transfer a couple of files into said folder. Done.
Now, idk if this happens automatically or after a reboot but... Basically, everything I do or put on my SD card gets deleted. It's like what I do gets reversed... The folder, the files.. Gone. Idk what's happening. Is it the rom? Or maybe an app?
I use Cyanogenmod 10/05 Nightly. I have ROM toolbox, and titanium backup. That's it. I recently did a full backup through my philz recovery. Could it be something I did through my settings?
It just started happening in the last week or so. I've changed nightlies but it's still happening. So I don't think it's the ROM.
Please help if you can. Any help would be greatly appreciated. Thank you.
bump...
please... anyone?
OneZeroEight said:
I'm having a serious issue and I'm not sure if it has to do with the rom or an app... Idk, but it's extremely frustrating. Any help would be appreciated. And I'm sorry if it ends up being something that has nothing to do with a bug in the rom.
Here's what's happening:
I'll connect my to my pc through USB to transfer files and such. I navigate to my external SD card. I create a folder and transfer a couple of files into said folder. Done.
Now, idk if this happens automatically or after a reboot but... Basically, everything I do or put on my SD card gets deleted. It's like what I do gets reversed... The folder, the files.. Gone. Idk what's happening. Is it the rom? Or maybe an app?
I use Cyanogenmod 10/05 Nightly. I have ROM toolbox, and titanium backup. That's it. I recently did a full backup through my philz recovery. Could it be something I did through my settings?
It just started happening in the last week or so. I've changed nightlies but it's still happening. So I don't think it's the ROM.
Please help if you can. Any help would be greatly appreciated. Thank you.
Click to expand...
Click to collapse
- First, make sure you have properly eject the sd card before disconnecting it from the PC.
- Second, after disconnecting from the PC, use file explorer app on your phone to see if the files and folder are still there?
And using rootexplorer or similar make sure your extsd card has r/w access. I had the same issue and it worked okay after changing r/o to r/w.
Even after running the sdcard fix apps I need to do this from time to time.
sent from my Galaxy S5 running NeatRom v2.3
SD write issu
I did a fresh install but I'm unable to use sdcard. Every time I copy something to sdcard it dissapears after reboot.
Some apps also change their icons after reboot to the one with "sd" and when I try to open them it shows "App not installed".
I checked with Root Explorer and it shows permissions rwxrwxrwx.
I'm using NxtGen ROM. Any ideas? Also posted this in their forum.

Help With a File/Philz Issue

Hi folks, need some thoughts on a rogue NANDROID file that somehow was saved to SD card\Emulated\legacy\O\O\clockworkmod! EX File Explorer can see it but it says that I have no permission to do anything with it except read or copy to another location. It is taking up over 4GB of the 16GB or phone memory. I have tried several different file managers, Rom Tool Box and still no success, it is still there! Also when connected to PC with USB again it tells me I don't have premission to do anything and nowhere on PC or phone will it allow me to change permissions or ownership. Under Explorer in windows it is not shown as write protected. I may be able to get rid of it by formating Data and Data\Medial in Philz but would rather not do that as my other NANDROIDs probably have the same stuck file. (Didn"t notice it for a while) If anyone has any other ideas for how to delete this rogue I would appreciate.

Help with sd card as portable media

Ok so ive finally upgraded my s4 to a s5 unlocked bootloader, rooted and resurrection rom. I understand the whole adaptable media and encryption. I want my sd card as portable so i can use it in my pc and other phones if needed. Also to use titanium backup to restore apps if i wipe and install a fresh rom.
My problem is es file explorer, root explorer, and any archiving apps are all jacked up and wont write as they used to. I am able to write to the sd card but i want to have full control like i used to on older roms on my s4.
Any help?
maniac2k said:
Ok so ive finally upgraded my s4 to a s5 unlocked bootloader, rooted and resurrection rom. I understand the whole adaptable media and encryption. I want my sd card as portable so i can use it in my pc and other phones if needed. Also to use titanium backup to restore apps if i wipe and install a fresh rom.
My problem is es file explorer, root explorer, and any archiving apps are all jacked up and wont write as they used to. I am able to write to the sd card but i want to have full control like i used to on older roms on my s4.
Any help?
Click to expand...
Click to collapse
I'm using Ressurection too. Marshmallow can be a pain with the sdcard. Apps have to ask for write permission when it first needs it and you have make sure to grant it.
Titanium Backup works with the external sdcard but you have to go to "Preferences", then to "Backup Folder Location", click where it says "Storage provider:", select " Document provider storage", go to the external sdcard (not a directory in it) and press "select", and then go to the TB backup directory and select "Use the current folder".
If you're using a multi partitioned sdcard, Link2SD doesn't work but Apps2SD appears to work fine. Either way, you'll probably get a notification about a corrupted sdcard for each extra partition. You can safely ignore them. Long press on the notification and select the crossed bell icon to prevent it from popping up again.
Some apps have trouble if they are opened from another app. Rar wouldn't work for me in ES File Explorer until I opened it from the app drawer. Then the correct permission dialog popped up and it was fine ever since.
I would also strongly suggest setting selinux mode to permissive. I suggest using SELinuxModeChanger.
Thanks. I changed the selinux mode but es is still wonky when working with zips. I also tried zarchiver opened directly and it has problems too. Oh well.
I did get tibu working previously as you stated.
I hate when enhancements are downgrades!!
Thank you for the information.

Categories

Resources