Files Moved from 0 to Legacy. Inaccessible on PC - Android Q&A, Help & Troubleshooting

Hi,
I was trying to restore backup via Titanium Backup but it was getting stuck at 0. While searching for solution I came across a solution that said to change the backup folder from storage/emulated/0/TitaniumBackup to storage/emulated/legacy/TitaniumBackup. When I did that, TiBu asked to copy the backup files and I gave permission. Now all the files that were there on my internal storage, which were visible on PC when connecting my phone via USB, have disappeared. I looked around in the root folder via MiXplorer and found that all the files have moved to legacy/TitaniumBackup which I cannot access via PC.
I thought I can just restore nandroid backup that I had taken but in TWRP the file does not show as the internal (emulated/0/) is empty. I can see the nandroid backup and all the other files in the legacy folder but cannot do anything about it since they are not showing in TWRP or PC.
Please help me in getting the old settings back.

/storage/emulated/0 and /storage/emulated/legacy are basically the same thing: simply 2 mount points pointing to the same storage device and partition. They do not take away more storage space, as it is only available once but shown twice, because they are sym links what redirect to original /data/media/0 folder.
If you create something in one folder, it will show up in the other. Same applies for deleting stuff.

jwoegerbauer said:
/storage/emulated/0 and /storage/emulated/legacy are basically the same thing: simply 2 mount points pointing to the same storage device and partition. They do not take away more storage space, as it is only available once but shown twice, because they are sym links what redirect to original /data/media/0 folder.
If you create something in one folder, it will show up in the other. Same applies for deleting stuff.
Click to expand...
Click to collapse
I moved all my files from storage/emulated/legacy/i to storage/emulated/0/i and all the files showed up on my PC as well as internal storage on MiXplorer. It was as simple as that. I thought I had botched up something in root partitions.

Related

[Q] Internal data problem

My Nexus 7 device. Flashed PA 3.0 using TWRP. I used a backup to restore the previous rom. Made some Titanium backups. Reflashed PA 3.0 and Gapps.
THe data kept for user access under sdcard disappeared. Seems like it was erased and replaced with a fresh set of new folders and little bit of data that PA just made. Checked storage space and about the same amount of data/memory is still used up on sdcard. Checked around the directories below sdcard using file expert and couldnt find it. Used TWRP to look around the directories and found all my data in /data/media
Tried to move it to /sdcard but it fails.
Tried to move it in file expert but only a few files s moved. File expert doesnt seem to recognize any of the files in /data/media as having any data, ie there is 0 bytes on each file and all folders become a 0byte file and not a folder.
I can still see the old data i want but how do i retrieve it safely?

[Q] Flashed from stock to CM10.1, data gone...or is it?

Hi guys.
I just flashed my SGSIII from Stock 4.1.2 to the latest CM10.1 nightly using CWM.
These are the steps, in chronical order, i went through:
Root device
Install CWM
Titanium Backup my apps and app data
EFS Backup
several other manual backups such as sms backup, dcim folder, whatsapp images etc.
Nandroid Backup using the CWM
Transfer all backup files to my MAC, as i don't have an external SD, just in case
Flash CM10.1, Flash Gapps, Wipe Data/factory reset, wipe davlik cache
Everything works fine, therefore copy TB Backup form Mac to device and restore it.
First of all: I didn't expect "wipe data/factory reset" to delete my complete internal storage (in the past being reffered to as sdcard0) containing all my user data like photos etc. But in fact it did! Nowhere to be found right now, which doesn't really matter as i did backup the most important stuff. But anyway...
And here comes the strange thing:
My system tells me that i have 11,35gigs of storage overall but only 6gigs can be used? The internal storage is literally empty. I don't have any files on it except my TB Backup data which is about 450-500mb. Another stange thing is that these 4 or 5 gigs of data which cannot be found anywhere (except DiskUsage) just happen to be as much data as i had on my phone before the whole flashing process.
So, I gotta ask myself: Could this be my old data? If yes, where is it to be found?
Another hint: I used the DiskUsage app to scan my internal storage. It shows me "system data" with a size of a little over 4gigs. What is that? Is this my old - but unaccessible - data?
I wanted to post a screenshot here, but I am not alowed as a new user. So here is my link 0cn[DOT]de[SLASH]ug5c
I'd be very appreciative if you could help me somehow. And yes, I did perform a search before asking, but couldn't find anything. :good:
/sdcard used to mount to /data/media/ but now its /data/media/0 so android is looking here for your data.
Basically all your 11.35 GB is in /data anyway so it accounts for /data/app, data/data (where apks are and app data) but also /data/media (now /data/media/0)
So using a file manager, look for stuff in /data/media and /data/media/0.
In data/media you should only have:
0
obb
Legacy
Often you'll find a clockworkmod folder here due to a backup
Factory reset from stock recovery / android wipes /sdcard. But clockworkmod recovery (and others) do not
Sent from my GT-I9300 using Tapatalk 2
Thank you so much!
Indeed, a copy of my whole old data is in /data/media, so it's full with a bunch of folders, containing my old stuff including the CM.zip and the Gapps.zip etc.
According to your post, this is not right? Should I move the data somewhere?
Is there a good reason why they changed the filesystem and the folder structure in 4.2.x so massively?
And again, thanks!
domemvs said:
Thank you so much!
Indeed, a copy of my whole old data is in /data/media, so it's full with a bunch of folders, containing my old stuff including the CM.zip and the Gapps.zip etc.
According to your post, this is not right? Should I move the data somewhere?
Is there a good reason why they changed the filesystem and the folder structure in 4.2.x so massively?
And again, thanks!
Click to expand...
Click to collapse
first of all, it's not a copy, those are the original files. you can move it to /data/media/0 to be able to access it from the ROM.
the reason for the change is the multiple users feature. /0 is internal SD for the first user, /1 is for the second, and so on
Glebun said:
first of all, it's not a copy, those are the original files. you can move it to /data/media/0 to be able to access it from the ROM.
the reason for the change is the multiple users feature. /0 is internal SD for the first user, /1 is for the second, and so on
Click to expand...
Click to collapse
This makes a lot of sense! Thanks for clarification.
One last question
Strangely enough I found my whole old data here as well: /mnt/shell/emulated
Is there a reasonable explanation for this as well?

[Q] Restore files from Nandroid backup

Hello,
I did a Nandroid backup (system, data, etc. using CWM) and a Titanium backup (user apps), wiped my phone, and installed a new ROM.
Q: Does a Nandroid backup include the /ProgramData/Language/ folder?
I'm trying to restore files I 'hid' using the Hide It Pro app. A developer blog post mentions that this folder is the 'vault location'. As a result, I'd like to find this folder and restore it if possible.
A Titanium Backup restore of the Hide It Pro app+data didn't of course work due to this. I'd like to avoid restoring everything from the Nandroid backup if possible and just restore the individual folder. I have of course tried looking through the folders and files to find it, to no avail.
Many thanks,
Chris
CM11 on Galaxy S3 i9300
I'd also like to know where (and if) the 'Download' folder is backed up to in a Nandroid backup.
Anyone with knowledge of the Android partitions structure and may know where to find these folders, your assistance would be much appreciated. I can't seem to find any of this on the net unfortunately.
ChrisLoz said:
I'd also like to know where (and if) the 'Download' folder is backed up to in a Nandroid backup.
Anyone with knowledge of the Android partitions structure and may know where to find these folders, your assistance would be much appreciated. I can't seem to find any of this on the net unfortunately.
Click to expand...
Click to collapse
I have been using "Audio Manager" aka "Hide it Pro" for many months (maybe 2 years)
(DON'T THINK OF WEIRD HIDDEN THINGS !!! I use only encryption feature to encrypt my script files. :laugh::highfive
Hide it Pro stores its main locker in /sdcard/ProgramData/Android/.Language/.fr
and fake locker in /sdcard/ProgramData/Android/.Language/.xx (escape pin locker)
After new ROM they are not deleted if you did not format SD Card.
Reinstall "Hide it Pro" (any version) and set password like first time. But all old hidden files will be there.
(During new ROM install, Hide it Pro files are not harmed if SD Card is not formatted, just follow above method to get files back)
They are not deleted unless you format SD Card. (internal or external whatever you have)
Unfortunately Nandroid backup does not backup /sdcard.
So you Hide it Pro hidden files (top secret!!! ) and Download folder is not backed up in Nandroid.
If you have any other question, ask me. I know thoroughly about that app.
Press Thanks if helped.
hnkotnis said:
I have been using "Audio Manager" aka "Hide it Pro" for many months (maybe 2 years)
(DON'T THINK OF WEIRD HIDDEN THINGS !!! I use only encryption feature to encrypt my script files. :laugh::highfive
Hide it Pro stores its main locker in /sdcard/ProgramData/Android/.Language/.fr
and fake locker in /sdcard/ProgramData/Android/.Language/.xx (escape pin locker)
After new ROM they are not deleted if you did not format SD Card.
Reinstall "Hide it Pro" (any version) and set password like first time. But all old hidden files will be there.
(During new ROM install, Hide it Pro files are not harmed if SD Card is not formatted, just follow above method to get files back)
They are not deleted unless you format SD Card. (internal or external whatever you have)
Unfortunately Nandroid backup does not backup /sdcard.
So you Hide it Pro hidden files (top secret!!! ) and Download folder is not backed up in Nandroid.
If you have any other question, ask me. I know thoroughly about that app.
Press Thanks if helped.
Click to expand...
Click to collapse
Hi, thanks for your reply.
It is to my understanding that /sdcard/ is the *internal* SD card, isn't it? ProgramData and Download are both folders on /sdcard/, which are currently empty due to the factory reset. I did not format my external SD card - the files on that still remain, but do not include either of these folders.
I have previously reinstalled Hide It Pro, the files did not reappear.
I would like to restore the two mentioned (internal) folders from my Nandroid backup.
ChrisLoz said:
Hi, thanks for your reply.
I have already reinstalled Hide It Pro, the files did not reappear.
It is to my understanding that /sdcard/ is the *internal* SD card, isn't it? ProgramData and Download are both folders on /sdcard/, which are currently empty due to the factory reset. I did not format my external SD card - the files on that still remain, but do not include either of these folders.
I would like to restore these two internal SD card folders from my Nandroid backup.
Click to expand...
Click to collapse
Depending on device's CWM (this varies with device) backed up folders change.
Copy CWM Backup to your PC and open that folder. You will see some/all following files. ext4 and rfs different based on ROM.
boot.img
data.rfs.tar
system.rfs.tar
.android_secure.tar
cache.rfs.tar
If there is sdcard.vfat.tar you are lucky. Internal SD Card is backed up. (unfortunately this is not for 99% CWM)
Otherwise I am afraid data is lost.
In case of data loss, try there to apps (require root) which can recover deleted photos. (I don't know about internal card, but I have tested them on external card.)
https://play.google.com/store/apps/details?id=fahrbot.apps.undelete
https://play.google.com/store/apps/details?id=com.defianttech.diskdigger
Press Thanks if helped.
hnkotnis said:
Depending on device's CWM (this varies with device) backed up folders change.
Copy CWM Backup to your PC and open that folder. You will see some/all following files. ext4 and rfs different based on ROM.
boot.img
data.rfs.tar
system.rfs.tar
.android_secure.tar
cache.rfs.tar
If there is sdcard.vfat.tar you are lucky. Internal SD Card is backed up. (unfortunately this is not for 99% CWM)
Otherwise I am afraid data is lost.
In case of data loss, try there to apps (require root) which can recover deleted photos. (I don't know about internal card, but I have tested them on external card.)
https://play.google.com/store/apps/details?id=fahrbot.apps.undelete
https://play.google.com/store/apps/details?id=com.defianttech.diskdigger
Press Thanks if helped.
Click to expand...
Click to collapse
Ah I see. Thank you.
I have already moved the backup to my PC, I'll check to see if that file is there tomorrow but I don't recall it being unfortunately. I had presumed Nandroid backed up everything, so it's quite an annoyance if I have lost everything from /sdcard/, but it's nothing too important thankfully.
Thank you for the link to the data loss recovery apps, I will give those a try if needed.
ChrisLoz said:
Ah I see. Thank you.
I have already moved the backup to my PC, I'll check to see if that file is there tomorrow but I don't recall it being unfortunately. I had presumed Nandroid backed up everything, so it's quite an annoyance if I have lost everything from /sdcard/, but it's nothing too important thankfully.
Thank you for the link to the data loss recovery apps, I will give those a try if needed.
Click to expand...
Click to collapse
Use these data recovery apps as soon as possible, because if the storage space where previous data was is overwritten, then data recovery is not possible.
Press Thanks if helped.
hnkotnis said:
Use these data recovery apps as soon as possible, because if the storage space where previous data was is overwritten, then data recovery is not possible.
Press Thanks if helped.
Click to expand...
Click to collapse
Neither worked unfortunately.
I'll give this method a go: http://forum.xda-developers.com/showthread.php?t=2143188
hnkotnis said:
Use these data recovery apps as soon as possible, because if the storage space where previous data was is overwritten, then data recovery is not possible.
Press Thanks if helped.
Click to expand...
Click to collapse
I'm trying to follow this guide to recover the 'sdcard' folder.
[GUIDE] Internal Memory Data Recovery - Yes We Can!
It's aimed at Galaxy Nexus, so I'm trying to change it for S3.
I've installed all the software and apps: BusyBox, Cygwin, Netcat, ADB (Android SDK + Java JDK), VHD Tool, Recuva, etc.
The internal 'sdcard' folder doesn't appear to be a partition, so when it comes to the first command main step:
5. Open a Cygwin terminal and enter (This assumes your BusyBox installation is at [/system/bin/busybox]. It may be at [/system/xbin/busybox]):
Code:
adb forward tcp:5555 tcp:5555
adb shell
/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12
Click to expand...
Click to collapse
...I don't know what to enter.
Any assistance would be appreciated!
Edit: Continued in this thread - http://forum.xda-developers.com/galaxy-s3/help/recover-files-sdcard-t2704117/
Sometimes files could be lost after you hide them with Hide It Pro. You may see this guide: Recover data in Hide It Pro
Good Luck.

Problem with sdcard backup

Hi!
I wanted to reformat my internal sdcard to ext4 today to enable trimming (it should also help the /data partition, because it is on the same physical flash storage, right?).
To back up my data I thought about packing everything into a TAR archive to also save all permissions (for example of the ./Android/data/ folder). But now I have the following problem:
if I browse through /storage/sdcard0, I see all the permissions and the correct owners, but I dont have access to .android_secure. I am using a adb root shell, how can I not have access to this?!
if I browse through /mnt/media_rw/sdcard0, I have access to .android_secure, but all the file owners are set to "media_rw", which is not what I want to backup, I need the correct owner info to correctly restore the data later.
Could you please help me to answer these questions?:
As I understand, FAT doesnt support permissions, so how does android emulate the permissions in the ./Android/data folder?
How can I see the same folder (my internal sdcard) with different file owners? Is it mounted twice with special options?
How can I backup my whole sdcard (with owner/group info & permissions & file access dates) to restore everything 1:1 after reformating to ext4?
How do I reformat my sdcard to ext4? (which block device comes after "mkfs.ext4"?)
Thank you very much!!
GridLockFour said:
Hi!
I wanted to reformat my internal sdcard to ext4 today to enable trimming (it should also help the /data partition, because it is on the same physical flash storage, right?).
To back up my data I thought about packing everything into a TAR archive to also save all permissions (for example of the ./Android/data/ folder). But now I have the following problem:
if I browse through /storage/sdcard0, I see all the permissions and the correct owners, but I dont have access to .android_secure. I am using a adb root shell, how can I not have access to this?!
if I browse through /mnt/media_rw/sdcard0, I have access to .android_secure, but all the file owners are set to "media_rw", which is not what I want to backup, I need the correct owner info to correctly restore the data later.
Could you please help me to answer these questions?:
As I understand, FAT doesnt support permissions, so how does android emulate the permissions in the ./Android/data folder?
How can I see the same folder (my internal sdcard) with different file owners? Is it mounted twice with special options?
How can I backup my whole sdcard (with owner/group info & permissions & file access dates) to restore everything 1:1 after reformating to ext4?
How do I reformat my sdcard to ext4? (which block device comes after "mkfs.ext4"?)
Thank you very much!!
Click to expand...
Click to collapse
I'm not sure the answer to some of that, but you don't need ext4 for trimming(EDIT: although I don't know whether android enables trim on FAT) and /data is already ext4 by default. The /data partition is separate to /sdcard0
Most if not all gains from trimming would be made from trimming /system, /data, /cache, and /preload(if you use touchwiz based rom or stock)

[SOLVED] Can't find my TWRP backup folder in any file manager. [Thanks, @ FirstMn !]

I've rooted, installed TWRP, and made a backup. Now I want to copy the backup to my PC.
When I plug the device into my PC the TWRP folder does not show up in the device's storage or any subfolders.
I looked on the device itself using Root Explorer and ES File Exlorer, and I can't find it there either.
Ditto for TWRP's built in file manager.
Yet if I choose "Restore" I get the option to restore from my backups in a folder called TWRP\Backups\
The space is definitely being used up by the backups because the internal memory (16GB version) is nearly full.
Is there a way to get the TWRP folder to show up?
Yes i had too this problém. You must have something like Root Browser, that can access to /data folder. Go to /data/media/0 and you see twrp folder. I dont know why it cant be visible in /storage/emulated/0...
FirstMn said:
Yes i had too this problém. You must have something like Root Browser, that can access to /data folder. Go to /data/media/0 and you see twrp folder. I dont know why it cant be visible in /storage/emulated/0...
Click to expand...
Click to collapse
Confirming it worked for me too! Marking [SOLVED] (and hitting thanks, of course!)

Categories

Resources