Hi everybody!
I just got my DHD and already root, clockwork, changed rom, etc. However, my problem is related to the directories structures inside my SDCARD.
I have 2 questions:
1- I moved some apps that I have in my main memory to my SDCARD via App Settings. However, when I go to my sdcard in windows explorer, I don't find these files. I'm not sure then if is really moving to my sdcard. I just realized some new folders, but they are empty. Does anyone knows what I'm doing wrong?
2- The second question it's linked with the first. I would like to organize in my SDCARD a nice folder structure. Something like:
/
/Songs/
/Photos/
/Documents/
/Backups/
/Games/
/Apps/
And then if you go inside the Apps folder, you have another folder with the name of the application. Pretty much like Program Files folder in Windows.
Is this possible? For Songs, Photos, Documents, I created a folder and it worked. But what about for apps and games that I got on the market?
My SDCARD has also a lot of folder/files that were copied when I put the sdcard on the device. I don't know if I can delete that. Any idea?
Thanks for the help in advance!
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.
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?
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.
I save Songs and Videos in Songs Folder and Videos Folder created in MicroSd Card inserted in my Samsung M30s.But they disappear after some time.How to keep them secure in these folders?
Maybe you have some service enabled on your phone that wipes memory from files not used for a certain period of time, or moves them to the cloud. You know your phone best yourself. Did you connect the microSD as external memory or internally?
Which might be that services?Can you name some for an example?I connected the MicroSd as External Memory.
Look first in this application, where you have selected a directory in the external memory.
You can also move files to another location on the microSD yourself before they disappear in the location where they disappear.
ze7zez said:
Look first in this application, where you have selected a directory in the external memory.
You can also move files to another location on the microSD yourself before they disappear in the location where they disappear.
Click to expand...
Click to collapse
Thank you ze7zez.First I shall try moving these files to already existing folders in the Sdcard watch whether they are disappearing.Afterwards I shall report the result here.
Do not use directories that the system or applications have posed.
Create a DATA directory yourself and move files to it.
Thank you ze7zez,
As you advised,I moved the Video files to the Movies folder and the Audio files to the Music folders.You know these folders are designated by the Phone itself whien I inserted the MicroSd Card for the first time.Then I watched for a day to see whether the files are disappeared from these folders.I found that those files are there still in these folders.Now I want to know why these files vanish from the folders created by me?
Describe /the actions you perform/name the applications you use/ that place files in directories where they later disappear.
I used File Manager Plus Application to move video files to Videos Folder and Audio files to Songs Folder.These Videos and Songs Folders were created by myself in the Sdcard.And these files were moved from the Send Anywhere Folder in the Sdcard itself.And to my dismay this Send Anywhere Folder itself was also created by myself in the Sdcard.Also the files in this folder remain in tact.They won't disappear.
So did the files disappear from the "Send Anywhere" directory?
What application placed the files in "Send Anywhere"?
The files did not disappear from the Send Anywhere Folder.They are still there since 3 days.This SendAnywhere directory got these files by transferring from another phone using Send Anywhere App.