I've lost everything, including backups. Now starting over . Where's the SD card? - Nexus 5 Q&A, Help & Troubleshooting

Hello,
Background story:
Yesterday, YouTube app wasn't working, so I made a Titanium Backup and Nandroid backup. I went to "Factory reset" and assuming Google is sane, and still only reset the internal storage not the emulated SD card, I proceeded with the reset expecting to be met with a tick field to choose whether or not to wipe the SD card. Surprisingly, my expectations weren't met. So turning on my phone afterwards revealed the hard truth... the very hard truth. I lost everything. The damn thing wiped the SD card as well.
Question:
Now to the question, after accepting what happened, I'm now in the process of restoring everything from scratch. Though I see that some apps are storing their data on /storage/emulated/legacy/ directory and others are choosing /storage/emulated/0/... I remember I always used storage/emulated/0 before the accident. So I want to confirm, which of the two is the emulated EXTERNAL SD card? Where do I store my "Data" stuff?
Clarification:
Here's the folder structure:
/storage/
has /storage/emulated/ AND /storage/sdcard0 (shortcut)
/storage/emulated/
has /storage/emulated/0 AND /storage/emulated/legacy
/storage/emulated/0
has /storage/emulated/0/(folders include another 0 and also regular SD card files). Accessing the second /0/ shows clockworkmod/
/storage/emulated/legacy
has has /storage/emulated/legacy/(folders include another 0 and also regular SD card files). Accessing the second /0/ shows clockworkmod/
So legacy and 0 has the same inside folders. Deleting one file also deletes it from the other. So what's the difference?
info:
Nexus 5
KitKat 4.4
Rooted
CWM recovery

They're all links to the same place. Go to general and then "sticky roll-up". In there i wrote a nexus 5 data thread that explains them all
If you have a 0 folder within a 0 folder, that means you had a problem which I discuss briefly in my /sdcard problems thread, also in general

rootSU said:
They're all links to the same place. Go to general and then "sticky roll-up". In there i wrote a nexus 5 data thread that explains them all
If you have a 0 folder within a 0 folder, that means you had a problem which I discuss briefly in my /sdcard problems thread, also in general
Click to expand...
Click to collapse
Thanks, I'll check that out.
UPDATE:
I saw this thread here, and it seems like case 5 is closest to mine. Though the wording is a bit confusing or not an exact replica of my case since I see ALL of my SD card files in the /emulted/0/ and /emulated/legacy/ not just a 0/ folder.
When I open /Data/ I find absolutely nothing! /Storage/emulated/ has everything. Do I move stuff (copy-paste) from /emulated/0/ to /data/media/0 (i.e. I'd have to create media/ and then 0/ myself)? I think I'm wrong, so a bit more help would be much appreciated. Also, stating the final destination of the SD card would help (the desired result) so I can move stuff around to get that result.

devil snake said:
Thanks, I'll check that out.
UPDATE:
I saw this thread here, and it seems like case 5 is closest to mine. Though the wording is a bit confusing or not an exact replica of my case since I see ALL of my SD card files in the /emulted/0/ and /emulated/legacy/ not just a 0/ folder.
When I open /Data/ I find absolutely nothing! /Storage/emulated/ has everything. Do I move stuff (copy-paste) from /emulated/0/ to /data/media/0 (i.e. I'd have to create media/ and then 0/ myself)? I think I'm wrong, so a bit more help would be much appreciated. Also, stating the final destination of the SD card would help (the desired result) so I can move stuff around to get that result.
Click to expand...
Click to collapse
The best thing you could do to get you're device working correctly is to flash the factory image again. Right afterwards do a factory reset. You'll have to resetup your device again but it should work correctly
Sent from my Nexus 9 using XDA Free mobile app

Related

AOKP tried to wipe internal SD

I finally tried to update from 4.1.2 to 4.2.1 build 5 the other day, and was outraged when my internal sd (/sdcard) appeared blank. That's right, all my pictures, videos, downloads, everything, gone.. Even after restoring back to 4.1.2, nothing.
However, when booting into TWRP and going to the file explorer, and navigating to /sdcard, all my old files appear there.. Thanks to TWRP I was able to copy over my old internal SD card files to my external. However, I can't seem to find the place that AOKP now seems to think is my internal SD. Somehow /mnt/sdcard is pointing to a different place in my internal storage now and I cannot determine where.
Does anyone know what happened? Why does TWRP and AOKP find two complete different locations for \mnt\sdcard? How to I make AOKP point to where it used to?
if im understanding correctly this is completely normal.
youre stuff is moved to somewhere else. cant remember the file path. hopefully someone can psot it up.
check the OPs of the 4.2.2 threads and do a search its orobably pretty easy to find.
Its not moved. When you flash a 4.2.2 ROM it makes a "0" folder on your internal. It will only read from there. Anything not in that 0 folder will not be read. It has to do with the multi user support in 4.2.x from what I've read.
Sent from my Incredible 2 using Tapatalk 2
Thanks guys. With your responses I was able to find this:
http://teamw.in/androidmultiuser
It explains the situation. I completely skipped over the 0 folder. It just looked like some stupid temp directory. Case closed.

[Q] Has anyone found an App to SD solution?

I've looked through the big development thread and haven't found a clear answer but has anyone found an app to sd solution that works?
This stupid SdCard / ExtSdCard arrangement is making me pull my hair out. I just realized my titanium backups weren't really backups since they were being stored on my internal memory.
I managed to change my backup folder and free up some space by moving all my backups to the SD card, but for some reason I cannot move apps to SD through Titanium or any other app I've tried.
Does anyone know how to do this? Is there a setting in titanium I need to change or is this just something we have to deal with forever short of flashing a custom rom?
SDCARD binary
Galahad_Knight said:
I've looked through the big development thread and haven't found a clear answer but has anyone found an app to sd solution that works?
This stupid SdCard / ExtSdCard arrangement is making me pull my hair out. I just realized my titanium backups weren't really backups since they were being stored on my internal memory.
I managed to change my backup folder and free up some space by moving all my backups to the SD card, but for some reason I cannot move apps to SD through Titanium or any other app I've tried.
Does anyone know how to do this? Is there a setting in titanium I need to change or is this just something we have to deal with forever short of flashing a custom rom?
Click to expand...
Click to collapse
I've found the real problem, but not the solution.
My Relay runs ICS. It is rooted, and you have to root to even touch any of this. The phone has a binary, /system/bin/sdcard that controls the internal memory and your SDcard. now, I have found that if you are rooted, you can chmod this binary (or use rooted ES File explorer to remove all executable properties) so that it can no longer run, then reboot. then you can run, as superuser "mount -o rw,bind /mnt/extSdCard /mnt/sdcard"
Seems great... Except vfat doesn't like to be bound in such a fashion, and you quickly lose write access and it starts mangling your files.
vfat just doesn't seem to work for us in this case. I've changed mine back, and reformatted my SDcard to be NTFS and mounted with paragon NTFS/HFS, which has completely stabilized my filesystem. only problem is, I can't get this to mount -o bind worth a damn.
I'm toying with the idea of reformatting my SDCard part vfat and either part NTFS or EXT4. maybe I get get the phone to natively recognize ext4 for the sdcard (even if I have to create a script myself)
keypoints I've found in this process:
1. the sdcard binary only allows access to 1023 files at once on either the SDcard, or the memory block it is using as the SDcard. too many pictures in your gallery? so sorry... can't load them all.
2. the physical device for your sdcard is /dev/block/mmcblk1. the partitions are mmcblk1p* (starting with 1)
3. the phone will not allow the sdcard binary to be killed manually. removing the executable permission and then rebooting the phone seems to be the only way to get it to stop.
4. vfat is prone to errors, and android seems to love screwing with the card. getting off vfat seems to be crucial to this process.
As you've gotten no other replies, and this is a gigantic concern for me as well, I'm going to keep working on this myself, in the hopes that I can get the phone to actually use the SDcard the way we hope it can be used.

[Q] Link2sd relink file not working

Hello,
I have installed a lot of applications on my device and linked them to my sdcard with link2sd.
Those applications have been installed on a specific account (guest account) on my device.
I have changed my sdcard, create a new partition ext2 on it, copy and paste all the files, directories,... of the old partition to the new one, and tried to relink the new card with link2sd.
But -> "no file to link" !! :crying:
And I don't have anymore my old sdcard.
Means, today, I have no more application listed on my screen, no more application listed in the settings, no more application listed in "My applications" of the Google Play Store, but the memory of my device is completly full of specific files of the applications which were previoulsy linked to the previous sdcard.
In other word, it is the mess and I really need to recover my applications with the datas.
Does someone know how to fix this??? (even manually)
Thank you
clecocq1 said:
Hello,
I have installed a lot of applications on my device and linked them to my sdcard with link2sd.
Those applications have been installed on a specific account (guest account) on my device.
I have changed my sdcard, create a new partition ext2 on it, copy and paste all the files, directories,... of the old partition to the new one, and tried to relink the new card with link2sd.
But -> "no file to link" !! :crying:
And I don't have anymore my old sdcard.
Means, today, I have no more application listed on my screen, no more application listed in the settings, no more application listed in "My applications" of the Google Play Store, but the memory of my device is completly full of specific files of the applications which were previoulsy linked to the previous sdcard.
In other word, it is the mess and I really need to recover my applications with the datas.
Does someone know how to fix this??? (even manually)
Thank you
Click to expand...
Click to collapse
Did you try and re-create the mount scripts?
Are the paths exactly the same?
Try installing an app and then linking it with Link2SD. Then check the path of the linked data. Make sure it matches with your backups.
I'd personally go for clean installs when changing SD card, but I think you're brave for trying. Good luck.
tillward said:
Did you try and re-create the mount scripts?
Are the paths exactly the same?
Try installing an app and then linking it with Link2SD. Then check the path of the linked data. Make sure it matches with your backups.
I'd personally go for clean installs when changing SD card, but I think you're brave for trying. Good luck.
Click to expand...
Click to collapse
Yes tried the re-create mount script without success.
One information: The old partition was ext3 and this time I created an ext2. Is it important?
Where can I check the path of the linked data exactly?? Which file?
Thank you for your help.
clecocq1 said:
Yes tried the re-create mount script without success.
One information: The old partition was ext3 and this time I created an ext2. Is it important?
Where can I check the path of the linked data exactly?? Which file?
Thank you for your help.
Click to expand...
Click to collapse
Just so I have this right...
You backed up all the data and file structure from your ext3 partition, re-formatted it to ext2, then copied all the data and file structure back on.
Have a look in root explorer. What are the folder names of your two SDcard partitions under /root ?
Mine looks like this:
/root/sd-ext
/root/sdcard
/root/storage/sdcard0
I used a script from here: http://forum.xda-developers.com/showthread.php?t=1971689 so mine will probably be different to yours.
If your linked app files are in the same place as before, (check this by installing and linking a new app and then finding it's linked data in root explorer) and you get an error/ no result when re-creating mount scripts in Link2SD, then i'm at a loss.
There are a lot more knowledgeable people than me on these forums, so hopefully one of those people will see your post and offer you a solution. Otherwise, it's time to re-install all your apps I suppose.
tillward said:
Just so I have this right...
You backed up all the data and file structure from your ext3 partition, re-formatted it to ext2, then copied all the data and file structure back on.
Have a look in root explorer. What are the folder names of your two SDcard partitions under /root ?
Mine looks like this:
/root/sd-ext
/root/sdcard
/root/storage/sdcard0
I used a script from here: http://forum.xda-developers.com/showthread.php?t=1971689 so mine will probably be different to yours.
If your linked app files are in the same place as before, (check this by installing and linking a new app and then finding it's linked data in root explorer) and you get an error/ no result when re-creating mount scripts in Link2SD, then i'm at a loss.
There are a lot more knowledgeable people than me on these forums, so hopefully one of those people will see your post and offer you a solution. Otherwise, it's time to re-install all your apps I suppose.
Click to expand...
Click to collapse
Effectively, I don't know whether I got the exactly same partition name before and after (before ext3 and after etx2).
I have nothing under /root
Actually it is quite strange. I can see my sdcard (only the FAT partitiion) under:
/sdcard2
or
/storage/sdcard1
this is pointing to my external sdcard. I can see the same files/directories in there.
I don't see the second ext2 partition with RootExplorer.
I can see it only with ESExplorer on the lateral bar. It is named sdext2.
I guess that the old partition ext3 was certainly not named the same.
I've just linked new file on the new partition. It is working correctly.
in the data/app folder I see the icon of the new linked app with the correct icon image (it is a game) and a small arrow in the top left correct (shortcut).
in the same folder, I see all the other icons of the lost linked applications with an android image and also the small arrow in the top left corner. But obviously when I tap on it, it says "analysis error,...". I guess that the shorcut points to nowhere because it is not linked anymore.
But I don't where to check where the shortcut is pointing to !! and how to change.
It should be simple to find back the old partition name and rename the new one with same name...
thank you for your help.
clecocq1 said:
Effectively, I don't know whether I got the exactly same partition name before and after (before ext3 and after etx2).
I have nothing under /root
Actually it is quite strange. I can see my sdcard (only the FAT partitiion) under:
/sdcard2
or
/storage/sdcard1
this is pointing to my external sdcard. I can see the same files/directories in there.
I don't see the second ext2 partition with RootExplorer.
I can see it only with ESExplorer on the lateral bar. It is named sdext2.
I guess that the old partition ext3 was certainly not named the same.
I've just linked new file on the new partition. It is working correctly.
in the data/app folder I see the icon of the new linked app with the correct icon image (it is a game) and a small arrow in the top left correct (shortcut).
in the same folder, I see all the other icons of the lost linked applications with an android image and also the small arrow in the top left corner. But obviously when I tap on it, it says "analysis error,...". I guess that the shorcut points to nowhere because it is not linked anymore.
But I don't where to check where the shortcut is pointing to !! and how to change.
It should be simple to find back the old partition name and rename the new one with same name...
thank you for your help.
Click to expand...
Click to collapse
You could try running the script that I mentioned. It won't do any harm. It may be, like you say, that the partition is named differently, so the paths don't quite match up. Duplicating the SD partition path with the script that I linked to, might (and it's a long-shot) let Link2SD see the partition on the path previously set. Let us know if you figure it out.
What was the reason you changed the partition format type anyway?
tillward said:
You could try running the script that I mentioned. It won't do any harm. It may be, like you say, that the partition is named differently, so the paths don't quite match up. Duplicating the SD partition path with the script that I linked to, might (and it's a long-shot) let Link2SD see the partition on the path previously set. Let us know if you figure it out.
What was the reason you changed the partition format type anyway?
Click to expand...
Click to collapse
I'll give it a try asap.
Concerning the reasons... bad reasons unfortunately. The links sometimes were not working. I had to relink regularly the files (hopefully, it is automatic, but not very convenient). Then I though that it may be better in ext2, and you know what happened
I will keep you informed if your advice works.
Thank you very much
tillward said:
You could try running the script that I mentioned. It won't do any harm. It may be, like you say, that the partition is named differently, so the paths don't quite match up. Duplicating the SD partition path with the script that I linked to, might (and it's a long-shot) let Link2SD see the partition on the path previously set. Let us know if you figure it out.
What was the reason you changed the partition format type anyway?
Click to expand...
Click to collapse
Unfortunately, not possible for me. I don't have a custom ROM and therefore don't have /system/etc/init.d in my device.
I will try to reformat bacl my 2nd partition in ext3 and see if I will be able to relink.
I have reformated my partition in ext3.
But after rebooting my device, the mounted name is still sdext2.
Does someone know how to change a mounted partition name without a custom ROM?
Thank you
The script is named init-recovery.sh in /etc.
Finaly, I reinstalled all the apps and copy/paste all the user files manually then relinked to the new partition with link2sd.
Everything is working now.
Thank you anyway for your help
I too am facing similar problem
but i had been using link2sd before and before doing the process i didnt not unlink back to sd card the applications
so now all the files are in miscellaneous folder
is there any way to re link these
i use stock rom

System Data Filling Phone

I've searched and searched but can't figure out why my SD card keeps filling with this "system data" that disk scan says. The only way I've figured out how to clear it is factory reset and formatting the internal SD. Sadly it comes back over time. Ideas?
Kawirider1228 said:
I've searched and searched but can't figure out why my SD card keeps filling with this "system data" that disk scan says. The only way I've figured out how to clear it is factory reset and formatting the internal SD. Sadly it comes back over time. Ideas?
Click to expand...
Click to collapse
What are the contents of /sdcard (internal storage) in terms of folders? Do you save CWM/TWRP backups to internal storage?
SlimSnoopOS said:
What are the contents of /sdcard (internal storage) in terms of folders? Do you save CWM/TWRP backups to internal storage?
Click to expand...
Click to collapse
That's why I posted the screenshot. You can see that CWM is in the top folder, small amount.
Kawirider1228 said:
That's why I posted the screenshot. You can see that CWM is in the top folder, small amount.
Click to expand...
Click to collapse
I honestly don't get this SS. I always use a file browser and seeing things in a list or folder makes it easier to decipher for me. Seeing it like how you have it displayed is confusing to me.
That said, the two places data typically resides are /data/media OR /sdcard when using a file browser. I see /0 on there as well, if you use JB 4.3+ then you'll want to check /data/media for any files that were redistributed there and also "reveal hidden folders" to see if anything is hidden away there. From experience, CWM/TWRP backups tend to take up the most space if you have numerous backups and so do pics, vids, and music as well.
Sent from my SCH-I535 using Tapatalk 4

[Completed] [Question] Writing to external sd card Specifically with ES File Manager!

I have a Sprint Galaxy Note $ Running Stock og5 Rom Rooted via Beast Mode TWRP then Play update, then flashed to Plazma Kernel. I have modified the /etc/permissions/platfom.xml file to include Group Id media_rw in the write to external storage permission and mounted the /mnt/media_rw/estSDcard as r/w in the root explorer portion of ES File Manager and it seemed to work fine for as long as I can remember but now if I try to copy or paste or send something to /storage/extSDcard it is created asychrously and ends up in the LOST.dir folder after a simple unmount remount or reboot or SDcard pull. Other apps are having the same problems like app backup restore and Btitorrent and others when trying to write directly to extSDcard I even went ass far as adding sdcard_all to the aforementioned gid permission set. It seems like such an obvious thing that has been overlooked by develpoers of the rom. I can create masting folders "no asychronously' if I do so buy navigating to /mnt/media_rw/extSDcard rather than /storage/extSDcard and they'll last but not all programs will allow that directory in their settings. Furthermore ES download Manager won't function with either directory and will not allow their app backup file to be saved the /mnt directory. only /0 or /storage/extSDcard.
I have exhausted my abilities with this and have no answer also It seems to be a new problem, and I haven't done anything I can think of to cause this. Partition table is 55000mb Fat32 17009mb ext4 journal partition on the extSDcard. Any Ideas?
Below you can see The before and after of unmounting and remounting my sd card resulting in Populated Lost.dir and loss of created folders also you can see the way that all nav methods resultu in same permission set when checked with a root explorer "total Commander"
wELL i DON'T KNOW WHY BUT REFORMATTING THE SD CARD TO A SINGLE FAT 32 VOLUME SOLVED THE LEAK. i FIRST TRIED AN ALTERNATE SD CARD WITH A SIMILAR PATITION TABLE (EXT2/FAT32) BUT HAD THE SAME PROBLEMS EXCEPT THE DATA WOULD SIMPLY BE GONE INSTEAD OF IN THE LOST.DIR FOLDER. i HAVE YET TO IMPLEMENT THIS TO MY PRIMARY USE SD CARD because of the fact that I have backups and files that I need on that card from before the leak. I anticipate the same results, fingers crossed.
If ANYONE has any incite into why the partition table set up as it was would affect the retention of data in this manner please let me know.
PLEASE PLEASE let me know
Hello,
Try posting your question/issue in the ROM/kernel thread where you got them or their dedicated Q&A thread(if it has one) or even PM the developer in case its something he isn't aware of, he may want to try and solve it so his ROM has no issues.
I hope this helps. Good luck.
Droidriven said:
Hello,
Try posting your question/issue in the ROM/kernel thread where you got them or their dedicated Q&A thread(if it has one) or even PM the developer in case its something he isn't aware of, he may want to try and solve it so his ROM has no issues.
I hope this helps. Good luck.
Click to expand...
Click to collapse
Thanks, I was using stock rom though. And the caps lock was an accident, at any rate i have changed roms and the issue appeared to be a faulty sd card to begin with. I wasn't able to retain data from my reader writer to phone on my primary sd ince reformatted but was when I used a different one. Anyway thanks for the advice and I will use it if I have different questions

Categories

Resources