help deleted /data/media - Nexus 5X Q&A, Help & Troubleshooting

i accidently deleted /data/media
i guess it has symlink to internal storage
my question is is all my data gone or only the symlink to my data is gone?
any way to recover my data?

bhavstech said:
i accidently deleted /data/media
i guess it has symlink to internal storage
my question is is all my data gone or only the symlink to my data is gone?
any way to recover my data?
Click to expand...
Click to collapse
/data/media isn't a symlink. It is regular directory. It contained your internal sdcard.
Maybe you can restore some of it from cloud.

Related

[Q] HELP SD-EXT back to phone memory

Is there a method to move data in ext2 back to phone memory in my desire? I found some recovery tools allow that. But I don't find any way in clockwork mod.
Thanks for the help.
Make a backup of yours Apps+Data with Titanium Backup, make a backup of FAT32-Partition of the Card. Partition the SD-Card without swap and ext. Reboot the Desire and restore the SD-Card (with USB-Connection) and restore the backups made with Titanium Backup.
Thanks for the info. But Titanium Backup can't restore everything. Is there any other method to move ext2 data back to phone like some other recovery tools able to move ext back to phone.
n
Go into recovery, mount sd-ext and data.
Open an ADB shell and do the following
rm /data/app
rm /data/app-private
rm /data/dalvik-cache
Thats how you delete the links.
mv /sd-ext/app /data/
mv /sd-ext/app-private /data/
mv /sd-ext/dalvik-cache /data/
If it's correct there should be a app, app-private and dalvik-cache dir again, check like this:
ls /data/
Double check if there is still something important left on sd-ext:
ls /sd-ext
If there is a data folder you need to move it to, but I think there were only app, app-private and dalvik-cache.
Turn phone off, remove SD card and put it into your PC to repartition it. If you reboot the phone with SD card still in it will re-setup ap2sd.
By using this command all apps will move back to phone right?
Titanium Backup
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there
mrusheen said:
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there
Click to expand...
Click to collapse
Settings>Applications>Apps on SD only shows Froyo Apps to SD, it doesn't show old A2SD or A2SD+ apps, the phone is tricked into thinking those apps are installed internally
Yes that is the problem. So I want to find a way to reverse it.

/sdcard points to internal memory. How to change that?

Currently, the /sdcard folder is pointing to the phone memory. My external card is mounted as /sdcard/external_sd
The problem with the above structure is that all the stuff that should be stored in the actual sdcard is stored in the memory.
I am sure there is a way to mount the external sdcard as /sdcard in the system through shell commands. Can someone help me with this?
Thanks.
1. I believe you need root in order to manipulate mounting points...
2. Be careful manipulating mount points as this may break aps looking for data in the /sdcard mount point...
YMMV
Chinook Pilot said:
1. I believe you need root in order to manipulate mounting points...
2. Be careful manipulating mount points as this may break aps looking for data in the /sdcard mount point...
YMMV
Click to expand...
Click to collapse
1. I am rooted.
2. Well, I want to change the /sdcard mountpoint to the actual sdcard. I don't think this should break anything. I am not sure about the syntax, that is why I am asking.
Mount
Here's a link to the man pages for the mount command. I'm not running a stock kernel so my mount points and fstab aren't generic to the stock e4gt... Basically you need to umount both and the mount where you wish them to point... Good luck...
http://linux.die.net/man/8/mount

Will wiping out device wipe out the content in /sdcard/ ??

Hi,
Sorry for being a noob but i came from android phones with sdcards and this is the first time i had one without a sdcard card slot..
the main question is, if i wipe the device, will the content in the /sdcard folder that i transferred via MTP (photos, music, Nandroid backups, etc) be wipe out as well?
I am asking because I swear the i did a wipe yesterday and ALL the content in the phone is gone, including the things i put in the /sdcard folder...
just need to clarify or maybe i am crazy? Please help..
There is no SDcard. Its all one big partition. Doing a factory reset wipes the entire device. Yes your pictures and videos, too.
lordlad said:
Hi,
Sorry for being a noob but i came from android phones with sdcards and this is the first time i had one without a sdcard card slot..
the main question is, if i wipe the device, will the content in the /sdcard folder that i transferred via MTP (photos, music, Nandroid backups, etc) be wipe out as well?
I am asking because I swear the i did a wipe yesterday and ALL the content in the phone is gone, including the things i put in the /sdcard folder...
just need to clarify or maybe i am crazy? Please help..
Click to expand...
Click to collapse
Yes, the /sdcard folder actually points to /data/media. Doing a factory restore resets the /data partition, including the contents of /data/media. This means everything put in /sdcard will be erased.
That's stupid. Really stupid. I factory reset my phone all the time... Am I supposed to copy everything back over every time... Eh that would suck.
My transformer and G2x had internal memory and a factory reset from clockworkmod didn't touch the internal storage.
Nvbackups would copy everything though.
-sent from temp HTC Rezound waiting for Galaxy Nexus
player911 said:
That's stupid. Really stupid. I factory reset my phone all the time... Am I supposed to copy everything back over every time... Eh that would suck.
My transformer and G2x had internal memory and a factory reset from clockworkmod didn't touch the internal storage.
Nvbackups would copy everything though.
-sent from temp HTC Rezound waiting for Galaxy Nexus
Click to expand...
Click to collapse
Instead of doing a factory reset, you could just delete everything in /data except for /data/media. That will achieve the same thing and leave your media data alone.
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
joshnichols189 said:
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hmmmmmmmm.
Sent from my Galaxy Nexus using XDA App
joshnichols189 said:
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yeah if you just wipe your data/cache via CWM it DOES NOT touch anything in your /sd card. However doing a factory reset via the settings menu while booted does!
RTContent said:
Yeah if you just wipe your data/cache via CWM it DOES NOT touch anything in your /sd card. However doing a factory reset via the settings menu while booted does!
Click to expand...
Click to collapse
ok just to be clear, because people (me lol) get confused when people talk about the SD card when talking about the nexus. obviously there isnt one...so im assuming the partition that handles the media is what u refer to as the Sd card...virtual sd card. correct? and if i wipe data/cache via CWM it does NOT wipe my pictures, videos, etc...but if i factory reset under settings while booted...it WILL wipe EVERYTHING...i think i got it now if what i just said was correct...
v2.2v said:
ok just to be clear, because people (me lol) get confused when people talk about the SD card when talking about the nexus. obviously there isnt one...so im assuming the partition that handles the media is what u refer to as the Sd card...virtual sd card. correct? and if i wipe data/cache via CWM it does NOT wipe my pictures, videos, etc...but if i factory reset under settings while booted...it WILL wipe EVERYTHING...i think i got it now if what i just said was correct...
Click to expand...
Click to collapse
You got it
Sent from my Galaxy Nexus using XDA App
joshnichols189 said:
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
+1.. all these people are thinking the phone doesn't have a "sdcard." There is a "sdcard" but its more like internal storage. Think of it as a computer,
- Older phones like the G1 rely on the SDCard fully... so this is like running a OS off a USB drive without internal storage (G1 has a little internal storage.. not enough to say that there is one)
- Phones such as Galaxy S1/S2 have a sdcard AND internal storage. What does this mean? It's like a internal hard drive with the ability for external storage (flash drive, sd cards).
Example: Galaxy S2 has 16GB internal storage and expandable storage.
Phones like the Galaxy Nexus, Nexus S, Galaxy Tab is like.... internal hard drives without the ability for expanded storage (unless you USB OTG a flash drive!). This is just a beyond misconception on the scene and this is what they meant by not having a sdcard.
When you do a factory reset, wipe cache, wipe dalvik... your /sdcard/ IS NOT TOUCHED unless you run a script that says otherwise!
/sdcard/ and all the other folders are treated as two separate partitions!
When you unlock your bootloader and it wipes, that deletes everything, including the sdcard folder.
yea i was about to say this is incorrect information, if you want to wipe everything i believe in the ARHD thread there is a wipe script to wipe everything, even data/media
azr3alazd3ycum said:
yea i was about to say this is incorrect information, if you want to wipe everything i believe in the ARHD thread there is a wipe script to wipe everything, even data/media
Click to expand...
Click to collapse
Super wipe lite from the ARHD thread does not wipe the virtual SD card.
--- This script will erase and format your system and cache partition using EXT4 file-system ---
--- It will also wipe /data partition, but /data/media (virtual SD card) will be untouched ---
Click to expand...
Click to collapse
All your personal files that would be stored in SD Card in other devices which has one, are stored under /data partition, at /data/media/.
The /sdcard/ is just a link to /data/media.
There seems to be special handling in CWM recovery image for Galaxy Nexus when formatting /data partition as it will not touch /data/media. It's nice feature indeed, but you cannot now empty your /data/media content without manual work. But normally you don't even want to do that so it's fine.
It would be much more simple to just forget about the "virtual sd card" or /sdcard, since those are just, well, virtual and makes unnecessary confusion.
So our files are now stored like they would be under C:\Users\media. If you format C-drive, you'll lose your 'personal' files as well from media folder. The "virtual sdcard" /sdcard would be just a similar as Windows has as "Favorite" feature, just a shortcut to a certain folder location.
joshnichols189 said:
Super wipe lite from the ARHD thread does not wipe the virtual SD card.
Click to expand...
Click to collapse
I was referring to the full one. Its not out for the nexus yet. He has it for the transformer however.
Sent from my Galaxy Nexus using XDA App
hey guys,
found this thread searching for an answer, i'll go ahead and ask it right here as it fits the the topic:
what i want to do when installing another rom is to wipe (system) data, cache and Dalvik cache (and i do not want my private files on the sd card to be touched). it is clear to me that CWM does not touch the sdcard partition. BUT: since all the apps are installed onto the sdcard partition they won't be deleted, right?
i want all my apps to be gone and to have a completely fresh new system installed without ANY leftovers from apps or apps/data or anything else that got stored on the sdcard partition while using the previous rom. of course these apps would not be installed anymore when you boot up the new rom, but all their files and folders would still remain on the sdcard partition, right? i'm talking about all those files that the rom generates itself and stores on the sdcard partition. of course i want to keep all my music, downloads, pictures, etc. but i want everything else to be gone.
to my understanding cwm does not touch the sdcard partition which leaves all the app folders and other android-created-files and folders (that were automatically created when using the previous rom) untouched and i would have to manually look for all these files and delete all these remnants which is kind of annoying.
do you know what i mean?
thx and greetz,
v.
vercetti said:
hey guys,
found this thread searching for an answer, i'll go ahead and ask it right here as it fits the the topic:
what i want to do when installing another rom is to wipe (system) data, cache and Dalvik cache (and i do not want my private files on the sd card to be touched). it is clear to me that CWM does not touch the sdcard partition. BUT: since all the apps are installed onto the sdcard partition they won't be deleted, right?
i want all my apps to be gone and to have a completely fresh new system installed without ANY leftovers from apps or apps/data or anything else that got stored on the sdcard partition while using the previous rom. of course these apps would not be installed anymore when you boot up the new rom, but all their files and folders would still remain on the sdcard partition, right? i'm talking about all those files that the rom generates itself and stores on the sdcard partition. of course i want to keep all my music, downloads, pictures, etc. but i want everything else to be gone.
to my understanding cwm does not touch the sdcard partition which leaves all the app folders and other android-created-files and folders (that were automatically created when using the previous rom) untouched and i would have to manually look for all these files and delete all these remnants which is kind of annoying.
do you know what i mean?
thx and greetz,
v.
Click to expand...
Click to collapse
When you clear all your data/cache when installing a new rom it will also wipe apps that have been installed on your sdcard. This does not include removing folders that apps may store additional data on the sdcard. If you want to remove these folders unfortunately you will need to do it manually.
Sent from my Galaxy Nexus
Installed apps do not go in /data/media, but /data/app and /data/data. I dont think /data/cache exists, /data/dalvik-cache does.
Those are only erased if you do a wipe data/factory reset in cwm/twrp, and for the latter wipe dalvik cache.
sent from my i9250

[Q] /mnt/shell/emulated Folder

I recently installed ParanoidKangdroid on my i747. After poking around in the system folders, I found the /mnt/shell/emulated. It seems to still contain all of the files that were on my phone prior to the new rom. Is there a way to delete all of this? It is taking up a lot of space in my phone.
this is simply a 4.2 multi-user feature. it's just another mount point for the 0 folder. So it's the exact same folder, no extra space used.
if you have much less storage now than you did before flashing this ROM, you likely did not format /data before flashing. check out post #2 in my signature. it has a small section on this issue (low internal memory).
cheers
xBeerdroiDx said:
this is simply a 4.2 multi-user feature. it's just another mount point for the 0 folder. So it's the exact same folder, no extra space used.
if you have much less storage now than you did before flashing this ROM, you likely did not format /data before flashing. check out post #2 in my signature. it has a small section on this issue (low internal memory).
cheers
Click to expand...
Click to collapse
ok Thanks!
in a nutshell, wipe: data/factory reset, cache, dalvik, format /system, format /data & /media when going from one ROM to a different ROM. keep your backups and anything else you want on a micro sd card. you'll be smooth sailing.
xBeerdroiDx said:
this is simply a 4.2 multi-user feature. it's just another mount point for the 0 folder. So it's the exact same folder, no extra space used.
Click to expand...
Click to collapse
What do you mean "0 folder"? I upgraded to CM from stock (on a different phone) and all my "internal SD card" files seemed to have disappeared, but I think I found them in /mnt/shell/emulated. But I don't see any other mount point with the same files.

where're the ROM zips stored?

Hi everyone...
I am looking at buying an LG e975, which is supposed to be 32GB and no SD card, and I was taking a look at forums to see how active is the ROM development.
I have no experience with phones with no SD, usually with SD, you copy the zip files to SD card and you install them in Recovery...
so.. how is this done with no SD card?... actually... for storing docs, pics, music... does the phone have a separate partition of that internal memory designated for personal data? similar to having an SD?... does wiping Data, Cache, formatting system affect the internal memory where you have your files stored?
I am pretty much curious on how the whole ROM flashing, backing up and restoring of Apps (I use Titanium backup) is done with no SD card.
Thank you!.
atmos929 said:
Hi everyone...
I am looking at buying an LG e975, which is supposed to be 32GB and no SD card, and I was taking a look at forums to see how active is the ROM development.
I have no experience with phones with no SD, usually with SD, you copy the zip files to SD card and you install them in Recovery...
so.. how is this done with no SD card?... actually... for storing docs, pics, music... does the phone have a separate partition of that internal memory designated for personal data? similar to having an SD?... does wiping Data, Cache, formatting system affect the internal memory where you have your files stored?
I am pretty much curious on how the whole ROM flashing, backing up and restoring of Apps (I use Titanium backup) is done with no SD card.
Thank you!.
Click to expand...
Click to collapse
This section is not for the e975. It's for the Sprint LG-LS970. Sorry .
Sent from my LG-LS970 using xda app-developers app
Your sdcard is just a directory in your data media folder. It basically works the same as a physical sdcard. EXCEPT you cannot mount it in recovery, so if you wipe it while in recovery you'll have to adb push any files you plan on flashing.
Factory Reset in TWRP wipes /Data, /Cache, and /Dalvik. This does not include your Internal Storage ("sdcard"). It's usually all that is necessary before flashing a new ROM, as a /System wipe is almost always performed by the ROM you're flashing.
However, if you select the Data check box in the Advanced Menu, this will also wipe your Internal Storage ("sdcard"). This is because your sdcard is actually just a /Media folder inside of /Data (meaning /data/media).
Check this out:
http://teamw.in/datamedia
jonahly said:
This section is not for the e975. It's for the Sprint LG-LS970. Sorry .
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
my question wasn't related to a particular model but to how the whole ROM flashing and storing backups is done when no SD slot is available... I chose this forum as I did not find one for e975 and they both have same specs.
spackmanbr said:
Your sdcard is just a directory in your data media folder. It basically works the same as a physical sdcard. EXCEPT you cannot mount it in recovery, so if you wipe it while in recovery you'll have to adb push any files you plan on flashing.
Factory Reset in TWRP wipes /Data, /Cache, and /Dalvik. This does not include your Internal Storage ("sdcard"). It's usually all that is necessary before flashing a new ROM, as a /System wipe is almost always performed by the ROM you're flashing.
However, if you select the Data check box in the Advanced Menu, this will also wipe your Internal Storage ("sdcard"). This is because your sdcard is actually just a /Media folder inside of /Data (meaning /data/media).
Check this out:
http://teamw.in/datamedia
Click to expand...
Click to collapse
aaaaaaannd this is what I was looking for... thank you very much. .
No problem. Glad I could help.

Categories

Resources