Copy /data partition to a computer - ONE Q&A, Help & Troubleshooting

Hello.
Longtime 1+1 user here, I decided to buy me a new phone.
While organizing files to copy on my new phone, I accidentally deleted /sdcard. I'm no noob, but while browsing my internal storage on Windows, I saw amongst my know folders a folder called /sdcard, which would mean its path would be /sdcard/sdcard, so I thought I should delete it, since it didn't have anything inside. The thing is it was actually my /sdcard.
So everything is gone.
Now, multiple recovery software I've tried are able to find my files, but without their original path.
What I'd like to do is use Recuva to do it. In order to do that, I have to make a copy of my /data partition to my computer. All the ways I found tell you to make a copy to your /sdcard or external card. Since the file is large (~54GB), it can't be done on internal storage. But how can I do that in my phone since it doesn't have an external card?
Any ideas?

Look there https://stackoverflow.com/questions/26967862/how-to-make-an-image-of-android-partition-to-your-pc , I hope it'll help you!
Alternatively, you can use large (64Gb+) USB stick with an OTG cable and store your dump on it

Related

tf300t Killed my files

I'm seeking assistance in restoring files that my tablet killed XD
I pulled memory card out of my my phone and installed it in my tf300t to watch movies and pictures i've taken on a bigger screen... after which the tablet created a folder called lost.dir and corrupted many of my pictures,videos and mp3s
Is there anyway to restore the files?There's about 8 big files in lost.dir folder some of them are joined together mp3's which i can open and play and some of them cannot be opened using anything
I really need to restore my pictures and videos or i'm just gonna kill myself :silly:
evidently the filesystem on your sd card was damaged and your tablet tried to fix it running fsck (or wathever android uses), did you properly shut down the camera before removing your card?
that directory is where linux filesystem recovery utility saves orphan files (files for whom directory data like name and lenght is lost) so they wont be overwritten and you can try something to recover them.
yes,i safely removed the sd card from my phone.Try something like what?i searched all over the internet and i cant find anything :S
this forum is my last chance XD
if its the external sdcard and you have a pc to plug it in try useing smth like getdataback (not free) or recuva http://www.piriform.com/recuva (free) and let it scan the card.
gl
cheers
i already tried to restore the files..it restores already the corrupted ones...

[Q] sdcard0 and sdcard1?

Why do the phone recognize my internal storage as sdcard0? This tends to lead to some problems when locating files in recovery.
Is there a way to make sure extraneous files, such as downloads, stay only on the sd card under sdcard?
Sometimes when placing a file on the sdcard from USB-to-PC connection, I navigated to the root folder using a file explorer, and tap sdcard, only to find it's not there. Instead of I have to home-->storage-->sdcard1.
Can anyone explain what exactly is going on in this case?? Or if anyone found a way to consolidate the folders, how can I do it??
Thank you.
jldr said:
Why do the phone recognize my internal storage as sdcard0? This tends to lead to some problems when locating files in recovery.
Is there a way to make sure extraneous files, such as downloads, stay only on the sd card under sdcard?
Sometimes when placing a file on the sdcard from USB-to-PC connection, I navigated to the root folder using a file explorer, and tap sdcard, only to find it's not there. Instead of I have to home-->storage-->sdcard1.
Can anyone explain what exactly is going on in this case?? Or if anyone found a way to consolidate the folders, how can I do it??
Thank you.
Click to expand...
Click to collapse
The storage isn't extended, it's two separate file spaces. Your internal memory is reported as an internal SD card (sdcard0) and your SD Card is reported as an external SD (sdcard1)
jldr said:
Why do the phone recognize my internal storage as sdcard0? This tends to lead to some problems when locating files in recovery.
Is there a way to make sure extraneous files, such as downloads, stay only on the sd card under sdcard?
Sometimes when placing a file on the sdcard from USB-to-PC connection, I navigated to the root folder using a file explorer, and tap sdcard, only to find it's not there. Instead of I have to home-->storage-->sdcard1.
Can anyone explain what exactly is going on in this case?? Or if anyone found a way to consolidate the folders, how can I do it??
Thank you.
Click to expand...
Click to collapse
If you download the Motorola USB Device Manager then in my computer your device will be recognised with internal and external storage available, all folders under these will be clearly visable and you shouldn't have any issues transferring data between the two.
Cheers
I have that manager and it works well, but I would like the folder "sdcard" in the home to link me to the sdcard1 and not sdcard0. Right now the "symlink" in root browser points there. Anyway to change that?

micro sd card - strange trouble

so i took out my memory card and put it in a new card reader, the card reader did something funny and all files & folders disappeared and there was just one 0kb file named USB&somegarbage. I put the card back in the phone and it surely created the DCIM folders again etc.
I then connected it to icare data recovery and i am able to see that all the files are still there with most of them not corrupted but the folder names are gone,I wondering if there is a way for me to recover the original file structure back? any one?
Thanks in advance.
bilaliz said:
so i took out my memory card and put it in a new card reader, the card reader did something funny and all files & folders disappeared and there was just one 0kb file named USB&somegarbage. I put the card back in the phone and it surely created the DCIM folders again etc.
I then connected it to icare data recovery and i am able to see that all the files are still there with most of them not corrupted but the folder names are gone,I wondering if there is a way for me to recover the original file structure back? any one?
Thanks in advance.
Click to expand...
Click to collapse
In my opinion, I would just recover everything and just format that card. When you reinsert the card, the phone should restore default folders back and just place your data in the respective folders. I don't think there is anything you really need to add new folders for, other than the default unless you had a specific folder arrangement for photos or something like that.
Format the card to NTFS not FAT.
Do it either on your PC or Mac.
But you must install a NTFS app on the android, otherwise the device will not recognise the card.
You can format the card to NTFS using the app too.
The app will auto mount the card when the device is turned on.
I've found this method more stable than having the card in FAT mode.
I'm surprised Samsung haven't sorted this out yet!
:crying:

[Q] saving to micro SD card

I have been having some issues when saving music to my micro SD. I am running the latest version of katkiss(and love it). I have the files on my internal SD card, then try to move them to my external SD card using root browser, of file manager HD. It looks as though the files move, but when I unmount the card, and remount, or just reboot the tablet, the files are no longer there. Maybe I am doing something wrong, just looking for some good advice.
Thanks everyone for making this tf101 awesome again!!
I would try manually from adb or console to see if you get any errors which file managers can silently suppress.
I don't have the device with me right now so I can't give you the exact path to use, but something like:
cp -a /sdcard/Music/file-or-directory* /mnt/storage/2
the paths are wrong of course, I really can't remember where they're mounted. I'll update the post when I get home unless someone can give the proper paths before then. Using cp will tell you if there's errors.
I would also try to copy files to the card on a computer, to see if you can replicate the problem there. It could just be a dying card or a messed up filesystem on it.
Lethe6 said:
I would try manually from adb or console to see if you get any errors which file managers can silently suppress.
I don't have the device with me right now so I can't give you the exact path to use, but something like:
cp -a /sdcard/Music/file-or-directory* /mnt/storage/2
the paths are wrong of course, I really can't remember where they're mounted. I'll update the post when I get home unless someone can give the proper paths before then. Using cp will tell you if there's errors.
I would also try to copy files to the card on a computer, to see if you can replicate the problem there. It could just be a dying card or a messed up filesystem on it.
Click to expand...
Click to collapse
Thanks for the reply. I may be doing something wrong i don't know. The card is brand new, and i did the FAT32 long format. The same thing happens to me when i use a USB adapter in the main connector and try to move music from my tablet to a USB drive. It looks like it moves, but as soon as I unmount, and re-mount, no files are there. I am formatting my SD and USB drives on a windows 8 laptop. I have read where some people have luck formatting NTFS, but my laptop won't even let me format my USB drive that way.
I appreciate your effort. I am sure we can get this resolved some how. Just gotta keep messin' with it.
troyvs
Is it the dock sdcard or the tablet's?
The exact command to test a copy would be (for the tablet's external sdcard):
cp -av /storage/sdcard0/file.name /storage/sdcard1/
I'm running 021 and this worked for me. The command should return something like:
/storage/sdcard0/file.name -> /storage/sdcard1/file.name
and get you back to a shell if it works. Otherwise paste the message it gives you.
If the devices work elsewhere and you're sure it's the tablet, try wiping cache and dalvik... I've seen it cause weirder issues. You could also try to do a full backup in recovery and then do a full wipe, and reflash katkiss. If it works you know it's something with the old rom, and if it doesn't you can restore the backup.
troyvs said:
Thanks for the reply. I may be doing something wrong i don't know. The card is brand new, and i did the FAT32 long format. The same thing happens to me when i use a USB adapter in the main connector and try to move music from my tablet to a USB drive. It looks like it moves, but as soon as I unmount, and re-mount, no files are there. I am formatting my SD and USB drives on a windows 8 laptop. I have read where some people have luck formatting NTFS, but my laptop won't even let me format my USB drive that way.
I appreciate your effort. I am sure we can get this resolved some how. Just gotta keep messin' with it.
troyvs
Click to expand...
Click to collapse
I have moved files from the internal SD (photographs actually as there was no option to save them anywhere else only the internal SD) to the micro SD card using the X-plore app and the ES file manager app with no problems. I did however learn that both sd cards e.g. the internal and external are just called sd card and the internal sd card is shown under Device and under Storage so it is possible to cut and paste from the Internal sd card back into the Internal sd card.
I am assuming you are referring to the sd card on the tablet and not the sd card in the dock.

Failed to write to sdcard1 after ota kitkat

Has any one else lost the ability to write to their socketed sdcard since the 4.4.2?
thesavo said:
Has any one else lost the ability to write to their socketed sdcard since the 4.4.2?
Click to expand...
Click to collapse
Thats a "feature" of kitkat. Can't be changed unless you have root.
Seriously?
Yes, see here for fix(if your rooted):
https://play.google.com/store/apps/details?id=nextapp.sdfix
thesavo said:
Seriously?
Click to expand...
Click to collapse
It's a security issue. Before KK, the SD card was wide open to any other process to be able to request read/write to any directory and file, regardless of whether or not they created that file or directory.
Now, under KK, a program can create a file or folder in a "protected" area and only that program has the ability to modify the contents in that folder. It cannot modify other folders or files that it didn't create.
Time to move the podcasts. So my older shows that I worked hard to keep to keep the ext sdcard1 as a target, will have to be copied to sdcard0.too bad.thanks @iBolski
No wonder BeyondPod kept 'accidently' putting shows on SDcard0 for the last year. Even though I "pinned" it to SDcard1 in the advanced settings.
Even with the application that patches the /etc/permissions/platform.xml, I have found certain apps still do not work correctly. Dolphin Browser, for example, cannot switch to /storage/sdcard1. It keeps saying it can't find it and I need to ensure I don't have "USB Mode" enabled, which I don't even have as an option when connected to a PC.
I also have init.d installed on my machine and I had startup scripts that mounted various directories from my external to the internal SD card to "fool" the device so that apps that wouldn't save to the external but the internal would save across a mount. Well, that no longer works. For example, Amazon MP3 will not save downloaded music anywhere except to the internal sd card. I had my startup scripts mount an amazonmp3 directory on my external SD card to the internal amazonmp3 directory on the internal memory card. When I proceeded to download music, it didn't show up in the external directory. However, I noticed that the internal sd card's memory did decrease. I then unmounted the directory and saw that the Amazon MP3 app was ignoring the mount under KitKat and directory saved the files into the /storage/sdcard0/amazonmp3 directory, even though it was mounted to the directory on the external SD card. It did work under JB and ICS, but apparently, with KitKat, some apps will still write directly to the native directory on the internal SD card, ignoring the fact that I've mounted a different directory to it.
The stock Moto camera will write to the external SD card if you go and change the setting for it. However, the Google Camera does not give you any option to store your pictures anywhere except on the internal SD card memory. :crying:
Remember, apps can write to the external card, if you don't apply the "patch", but only to what is considered a protected are (the /storage/sdcard1/Android directory structure) and then, they can only write to a directory that the app created. They can read other directories, but they cannot modify them.
iBolski said:
It's a security issue. Before KK, the SD card was wide open to any other process to be able to request read/write to any directory and file, regardless of whether or not they created that file or directory.
Now, under KK, a program can create a file or folder in a "protected" area and only that program has the ability to modify the contents in that folder. It cannot modify other folders or files that it didn't create.
Click to expand...
Click to collapse
That's official explanation (bull****) as you described above with non stock camera. Basically KK made external storage almost useless. I found this nice description quite long time ago.
https://plus.google.com/+TodLiebeck/posts/gjnmuaDM8sn
Zeljko1234 said:
That's official explanation (bull****) as you described above with non stock camera. Basically KK made external storage almost useless. I found this nice description quite long time ago.
https://plus.google.com/+TodLiebeck/posts/gjnmuaDM8sn
Click to expand...
Click to collapse
I know at this point, Root Explorer still works with it, after setting the correct permissions into the /etc/permissions/platform.xml file. That works for a lot of apps. The only one that I know that is currently broken is Dolphin browser. I cannot navigate to the /storage/sdcard1/ area anymore. It keeps telling me it can't find the file or directrory and that I should make sure the SD card is ready and USB Mass Storage (haven't seen this option since my Droid X2) is not on.
So definitely, Dolphin Browser is doing something differently that even the patch isn't working for it.
Problem is that without root user cannot edit platform.xml and even after that some applications refuse to write to sd card. Another example is OfficeSuite 7 Pro which I bought and now cannot edit file if it's needed. Workaround is to save to internal then overwrite to sd card.
Basically stock Android becoming more and more limited, harder and harder to get root... That's so bad that I wouldn't update to official kk in the case that my phone has locked bootloader.
Read this article http://www.xda-developers.com/andro...use-even-more-issues-for-root-app-developers/

Categories

Resources