internal sdcard formatted - Nexus 4 Q&A, Help & Troubleshooting

i had just connected my n4 to pc and was viewing the files and saw a folder called storage or something like that. I had never seen it before nor did i create it. it was empty so i deleted it but then when i opened es file explorer on my phone somehow all of my folders were deleted. My music folder was entirely deleted, all the pictures were deleted, all app data in android folder were deleted and so were some of the backup apks i had there. luckily i had my stuff saved on my computer but anyone know why this happened? is there really a specific folder that if i delete it can delete everything or was it just a fluke?
Edit: stuff like text messages and call log are still there so i think it only deleted data on the internal sdcard and not anything else.

It's the internal sdcard's mount point. By deleting it, you pretty much wipe your personal data clean.
Not sure how it was possible to see, let alone delete it on your PC, though.

I did this on my galaxy Nexus too....
I just don't like how it mount to PC

This happened to me too. Needless to say, I learnt my lesson.

Where is everyone seeing this "storage" folder? when i connect my phone to my pc all I see listed under Portable Devices is Nexus 4.

Browse your Nexus 4 portable device and you should find the storage folder in the root directory along with many other folders such as DCIM and Android.

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] remove corrupted directory from internal flash drive?

Howdy, couldn't find this anywhere
htc Advantage 7510 running MichyPrima ROM for years. Internal (built-in) flash drive developed one corrupt directory (the backup directory for SPB backup, natch) and got filled up, before this had plenty of room. The bad directory now appears to contain subdirectories and files with gobble-de-goop names, dates, etc. and when I try to delete any or all of them it tells me either that the file name contains illegal characters and therefor can't be deleted, or that the file is a system file and access is denied (of course the files are not write-protected). Trying to get at it and delete it while connected to an XP desktop also doesn't help because it is not recognized as an external drive, but rather as a sub-directory of a "mobile device", so I get similar errors. All other directories are fine, and most of my installed , configured software resides on this drive, along with a lot of data (I've got all that backed up to the desktop computer). I also removed some files from other directories to make some room just in case this was complicating things.
Is there some utility that will let me make an end-run around this and just delete the directory and its contents? I really don't want to format the entire drive and start over from nothing.
TIA for any advice!
-avi
Remove corrupted directory from internal flash drive checkout following link for more details.
This won't help.
As stated above, only the removable micro SD card can bee seen as a true external flash drive, not the intenal memory.
The only solution would be a Windows Mobile tool similar to Scandisk.
Now you really can't find anything to solve your problem, you can still backup all your data and hard reset your device : it should set it back clean.
I kind of concluded that myself. Just hoping someone knows of that elusive utility that will let me work on the drive as if it were a regular removable drive. I REALLY don't want to go the formatting route.

Plz help Lost all data after SDCARD0 folder delete

Guys as usual I was talking backup via PC.
I found two folders into my Internal memory named SDCARD0 & SDCARD0.
I thought it must be a duplicate and deleted one of them.
Immediately I found I lost all my data from Internal memory.
Folders like whatsapp, dcim, movies and all other whcih were created by other apps got lost.
So has i actually accidentally deleted them due to sdcard0 folder or they are present but HIDDEN somewhere?
Coz still my internal memory says 3.60gb free which was same size before doing this unusual accident.
My phone hasnt got any root access.
Please how can I get back my files in this case?
My all apps r functioning properly except they lost all their custom settings...
What can be done to get my data back from Internal memory?
What you can do is, NEVER DELETE SUCH FOLDERS AGAIN.
To be aware of this in future, have a backup via foldersync or similar...
The chance that ull get ur data back going against zero...sorry
-EDIT: REQUIRES ROOT-
Oh you can do it. Did it myself a few weeks ago..
Check out this link: http://forum.xda-developers.com/gal...de-internal-memory-data-recovery-yes-t1994705
is there no way of running recovery software when plugged into a PC? I know I saved a lot of data from a camera while back by scanning its memory in recova or something similar while hooked up via usb
You should do some research first if you don't know something

Data loss after transferring

Hello, I really have no clue and hope you can help me. I even don't know how to search the problem.
Yesterday I wanted to transfer my DCIM folder with lots of photos and videos to my PC using STRG-X. I already had one DCIM folder there, so I chosen "integrate datas in this folder".
I left my PC and when I came back, I couldn't find even one picture on my PC neither on my phone.
Still, the phone says 24,17 of 24,64 GB on internal memory occupied.
Where could the files have gone? And more important, is there a way to dig, where the occupied space is and to retrieve these important files?
I am happy about any help! Thanks!
First question I have is, we're you transferring the DC I'M folder from the phone's micro SD?
Sent from my SAMSUNG-SM-N910A using Tapatalk
Hello,
first I transferred the DCIM folder of the external micro sd which only contained 6 photos. Then the folder which got lost is the DCIM folder on internal storage.
Addon: when i open the explorer now in win 10, the windows applications crash and reload after 2 seconds. it used to open a "shortly used" tab; luckily I got a direct link on the desktop to a specific folder from where i can navigate.
It seems win 10 messed up something...
violintube said:
Hello,
first I transferred the DCIM folder of the external micro sd which only contained 6 photos. Then the folder which got lost is the DCIM folder on internal storage.
Addon: when i open the explorer now in win 10, the windows applications crash and reload after 2 seconds. it used to open a "shortly used" tab; luckily I got a direct link on the desktop to a specific folder from where i can navigate.
It seems win 10 messed up something...
Click to expand...
Click to collapse
Ah ha! You're using Windows 10. I read on another forum here that another user was having issues with accessing their Note 4 via USB (MTP) while using Windows 10. I can't remember how they got around things though.
Sent from my SAMSUNG-SM-N910A using Tapatalk
Data Recovery Center
Hello,
There is a possibility that internal memory card has some kind of corruption in boot record or file system itself, which is usually fat32 file system on those media devices. It is difficult to diagnose it without physically looking at it. Our company has dealt with such data loss situations before and can attempt to recover lost images. Do you know if this phone internal memory or is it some kind of micro sd card or sd card inside of the phone?
Michael Azzaro
Data Recovery Center

G900A Unrooted, Keepsafe Location on Android 5.0?

I used to be able to backup keepsafe by copying the .keepsafe folder that would normally sit on my internal SD, but that no longer appears to exist? I use to be rooted on previous devices so decided to go check the /Data/app directory or what ever, but on Android 5.0 my data directly is completely empty. I have a /system directory and such and can view everything, but the data folder is completely empty which puts me in a hard place. Searched every inch of my internal and external sd card for a keepsafe folder and found nothing. It should be around 1GB but nothing of the sort is around. Checked my sdcard0/android folder ,sdcard0/data folder, and all others. No .keepsafe folder to be found yet all my stuff is there in my safe.
Long story short, does anyone know the directory of Keepsafe as of the latest updates and how I could copy its contents? I have no option from within the app to export all files to a separate drive. Would have to unhide hundreds of pictures and videos, and then export them to a different drive, and then put them all back in a mangled order.
I'm having trouble finding them as well on my computer from my broken phone. I see some different folder for it but it says there aren't any files in it.

Categories

Resources