[Q] How to dump EVERYTHING via ADB? - Samsung Galaxy Nexus

So I unlocked the bootloader and rooted the phone, and forgot that the phone gets wiped. I downloaded a couple programs but most don't even recognize that the phone is attached.
I've read that dumping everything from the phone to an external HDD can recover pics, but I'm not to familiar with ADB commands besides reboot, bootloader, and recovery.
So, can anyone with more experience help me please?

Bump

Well if you already factory reset...aka...booted your phone up after unlocking...
Your data is gone.

adb pull / c:\phone
Or adb pull /sdcard/ c:\phone
That'll dump your entire phone or the second one will just dump the sdcard. If there is anything on there. To a folder called phone on the root of the c drive.
Sent from my Galaxy Nexus using xda premium

thedudejdog said:
adb pull / /phone/
Or adb pull /sdcard/ /phone/
That'll dump your entire phone or the second one will just dump the sdcard. If there is anything on there. To a folder called phone on the root of the c drive.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
A-hemn...

You mentioned having some difficulty getting the device recognized consistently by different programs, most likely driver issues. Follow efrant's guide here to get your driver issues sorted and ensure adb is set up correctly. To test adb type:
adb devices
which should give you a response. If not you are still having issues.
Also, be aware if you unlocked the phone with the data you need still on the phone, the data is most likely irrecoverable.

Jubakuba said:
A-hemn...
Click to expand...
Click to collapse
If you want to put it in your SDK folder, I suppose that would work too
Sent from my Galaxy Nexus using xda premium

thedudejdog said:
If you want to put it in your SDK folder, I suppose that would work too
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
That'll put it on the C:/ drive.
I don't believe adb will accept backslashes.

You cannot "dump" anything with ADB commands. The pull command will only copy files to you computer -- it will not do a bit-wise dump. So if you unlocked your device, there are no files to copy...
The dd shell command can dump partitions to somewhere on your device, but you can't dump the userdata partition because dd has no where to save it to. (I suppose it could be possible if you find some way to mount your device in Linux, or have a drive on your computer mounted in Android, but outside of /data.
And as far as I know, there are no android apps that can recover files from an ext4 partition.
Sent from my Galaxy Nexus using Tapatalk 2

Assuming your data hasn't already been wrote over or zero'd out...
Data recovery isn't exactly the easiest process.
Sent from my Galaxy Nexus using xda app-developers app

Considering how quickly the unlock process takes to complete, I think its safe to assume it does not zero out the partition. If the OP has not written much data to the partition he may get lucky and recover quite a bit of it. As efrant mentioned, if the OP can get the partition mounted in linux he could have a shot. Here is one procedure from another owner who was in a similar situation. Not for the faint of heart..but depending on how important the data was may be an option.

Thanks guys, just gave up. Lots of pics, but vids and contacts were backed up. The music was on my computer and so I didn't care about that.
Thanks to everyone that helped though.

Related

[Q] usb sorage dosen't work in CWM? Can i push files to sd cards?

Hi!
My problem is that i flashed a mod and my phone went crazy, so i booted back to cwm.
But i can't use "mount USB storage". Is says "unable to open ums lunfile ( no such file or directory). Got cwm 5.5.0.2, So how can i send files to my phone?
P.S I forgot to make a backup so i can't restore :/ and i can't boot into cwm from the phone. I must connect it to my pc and open Galaxy Nexus ToolKit and launch it from there?
You can't mount USB storage in cwm because the phone does not support USB mass storage. You can push files in cwm using ADB.
Sent from my Galaxy Nexus using xda premium
joshnichols189 said:
You can't mount USB storage in cwm because the phone does not support USB mass storage. You can push files in cwm using ADB.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Okay but how do i push files from adb?
tried this but dosen't work?
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push C:\Galaxy Nex
us ToolKit\put_files_to_push_here/build21.zip /mnt/sdcard/Roms/
Just give me a list of commands
And if i try adb device, then i can see that my device is connected
jullejul said:
Okay but how do i push files from adb?
tried this but dosen't work?
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push C:\Galaxy Nex
us ToolKit\put_files_to_push_here/build21.zip /mnt/sdcard/Roms/
Just give me a list of commands
And if i try adb device, then i can see that my device is connected
Click to expand...
Click to collapse
Got it to work Thanks!
Sorry had baseball practice but glad you got it working
Sent from my Galaxy Nexus using xda premium
I need of serious help
Okay so i have CWM and i had backups or so i thought i did. I was using cyanogenmod 9 then tried out AOKP well didnt care for it so i was going to access my last backup and after wiping everything on my Galaxy Nexus i went into recovery mode and tried to install my back up. When i did that it said nothing was found SOOOOO now i have nothing and im stuck in recovery mode. I tried to "mount USB storage" so i can put a ZIP on there but i get the well know message of "Unable to open ums lunfile (no such file or directory)" Does anyone know of how i can get into my phones SDcard on my mac so i can put a ROM on there to flash. Yes i knew so if you start saying MTP and ADP i do not know what that means im sorry. PLEASE HELP!
Do you have ADB set up?
If so you can ADB push a rom.zip to your SD card and flash it.
Edit:
Actually...just flash any available ROM.
Even one you didn't like.
At least then you can boot up and access your SD card.
See thats the thing i thought i could do from my back ups so i didnt put any new ROM on there. And adb i do not know how to do that at all so im assuming no i dont

[Q] Help with backing up virtual sd-card

OK, so I fell victim to the JB bootloop/failure to restore a nandroid in CWM/failure to install any rom in cwm without a bootloop. From what I've gathered, the only fix for my soft-brick is to return to stock, which of course deletes /data/media. I've tried to back it up with root toolkit, but did not get everything on the VSD. I've tried pulling everything from it using ADB...same result. Yet, adb shell ls /data/media/ shows it's all there. Can anyone tell me how I can download the entire contents, or fix the bootloop problem (preferred)? I'm under the gun here, as I need my phone for work tomorrow, yet don't want to lose all of my stuff. Please halp!
Try pull folders I.e. Dcim folder instead of the whole camera folder. If all else fails try individual files
Sent from my GT-P7310 using Tapatalk 2
I tried pulling the missing individual folders and it didn't work. All I can figure is that it has something to do with the syntax of the file/folder names, similar to the 8.3 issues between windows and dos, of many years ago.
Thank you, though, for your reply!
Have you tried reinstalling adb drivers. I think the downfall of no external sdcard is what you see here. That's why I always sync pics with google+. Food for thought.
Sent from my GT-P7310 using Tapatalk 2
Yeah, I have. No luck.
Had to reactivate my TB...what a hassle. Hopefully, someone can come up with a fix for this. Should have done a lot more research before I flashed JB. I usually do, but I've become a bit complacent, because I've never had anything like this happen to me. Lesson learned. I just hope I can fix this without losing everything. Written a lot of excerpts for what, some day, will be my novel. F!
Can anyone, at least, point me in the right direction? I'm getting so frustrated. I know the dev forums are the place to get answers, but I also know I can't post this sort of question there, without getting deleted or, worse, chastised.
HTC-8690 said:
Can anyone, at least, point me in the right direction? I'm getting so frustrated. I know the dev forums are the place to get answers, but I also know I can't post this sort of question there, without getting deleted or, worse, chastised.
Click to expand...
Click to collapse
What command are you using?
adb pull /sdcard/
should pull everything. However (from personal experience) it won't work if you have files with weird characters in the filename.
Sent from my Galaxy Nexus using Tapatalk 2
efrant said:
What command are you using?
adb pull /sdcard/
should pull everything. However (from personal experience) it won't work if you have files with weird characters in the filename.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
No, adb pull /data/media/ From what I understand, that's where the virtual SD is.
So, I've been able to pull specific files and folders using adb, but I can't get certain folders that contain spaces in the names. Is there a special character to replace the space? If not, is there a way to rename said folders, in shell, so I can pull them?

What's the best way to backup files from the phone's storage?

I am using Windows 7 and I need to backup my data so I can move to JB. However, when I connect my phone with a USB cable and drag all the files from my phone over to my laptop, it TAKES FOREVER!!!
Also, I think it "times out" or something because in the middle of the process, I'll always get "invalid copy handle" errors and have to start over.
Does anyone know a good, fast way to backup the data on our phones?
Neo3D said:
I am using Windows 7 and I need to backup my data so I can move to JB. However, when I connect my phone with a USB cable and drag all the files from my phone over to my laptop, it TAKES FOREVER!!!
Also, I think it "times out" or something because in the middle of the process, I'll always get "invalid copy handle" errors and have to start over.
Does anyone know a good, fast way to backup the data on our phones?
Click to expand...
Click to collapse
Well you can always do "adb pull /sdcard/ C:\directory you want"
Also to backup apps+data, do "adb backup -f C:\directory you want -all -apk -noshared -system" For more info about backing up apps and data, check this thread
Hope I you have drivers installed and know how to use adb
Thanks for the ideas!
I actually tried copying one folder at a time and it's much more reliable. Still slow but at least no time outs.
I'm just glad I could help!
Transferring speed can't be adjusted, since there's a limit from the USB cable...
If there is a corrupt file that directory will fail transfer that directory manually, and avoid the corrupt file.
Sent from my Galaxy Nexus using xda app-developers app
Use adb or access a shared folder on your computer via wifi using a file manager that supports lan shares. For instance: es file explorer.
Sent from my Galaxy Nexus using Tapatalk 2

Won't auto mount SD card

Hi all,
I have looked at several other threads about this but could not find an answer. My Acer a100 won't auto mount the SD. I can mount it from terminal as root but not from fstab. I tried modifying the fstab several different ways with no luck. Not sure when it started but I noticed it after latest update. Flashed unlocked boot loader and have tried several rooms with same results. Any advice?
Sent from my SCH-I500 using xda app-developers app
miked63017 said:
Hi all,
I have looked at several other threads about this but could not find an answer. My Acer a100 won't auto mount the SD. I can mount it from terminal as root but not from fstab. I tried modifying the fstab several different ways with no luck. Not sure when it started but I noticed it after latest update. Flashed unlocked boot loader and have tried several rooms with same results. Any advice?
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
Put the SD card in a card reader and check it for errors on a PC. Not through the tablet use a card reader. Mounting issues are usually some sort of filesystem error or corruption, maybe copy what you can off and give it a fresh format.
Tapatalked from my Galaxy S II.
Card checks out fine. Before I checked it I also tried a few other cards and they all had the same problem too. Can someone with an a100 that mounts on boot show me their /etc/vold.fstab file
Sent from my SCH-I500 using xda app-developers app
miked63017 said:
Card checks out fine. Before I checked it I also tried a few other cards and they all had the same problem too. Can someone with an a100 that mounts on boot show me their /etc/cold.fstab file
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
dev_mount external_sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
This is jellybean adjust /storage/sdcard1 for /mnt/external_sd in ICS.
Tapatalked from my A100 - Kuroikaze B6
mmc_host sir does not exist mine is the same except after the sdhci-tegra.2 part it is just mmcblk1. Tried it anyway for giggles with no luck. Is there any way to use standard Linux syntax in that fstab? Poosible problem in the ramdisk? Just trying to come up with something don't want to have to manually mount it every time. I also noticed the same issue when I am in recovery, except I have to mount it with adb because twrp console is a little rough. Is there anywhere else the unit system looks for mounts? I did notice that the internal SD is not in the fstab how/when is that mounted? What logs would I check for errors in this case?
Sent from my SCH-I500 using xda app-developers app
miked63017 said:
mmc_host sir does not exist mine is the same except after the sdhci-tegra.2 part it is just mmcblk1. Tried it anyway for giggles with no luck. Is there any way to use standard Linux syntax in that fstab? Poosible problem in the ramdisk? Just trying to come up with something don't want to have to manually mount it every time. I also noticed the same issue when I am in recovery, except I have to mount it with adb because twrp console is a little rough. Is there anywhere else the unit system looks for mounts? I did notice that the internal SD is not in the fstab how/when is that mounted? What logs would I check for errors in this case?
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
Internal is mounted to /data/media which is why its not there. Its mounted early in the fs init right before external is iirc its been awhile since I looked at it.
I don't even know what ROM you're on or the kernel in use so I have no idea right now what can be causing it.
Mmcblk1 is external SD card though.
Dmesg may show if there's a known reason for mount failure. Logcat might too.
Tapatalked from my Galaxy S II.
Right now I am on the flex reaper from and I be live the kernel is the one that came with it. The problem is there on stock too though. Any other things I can try?
Sent from my SCH-I500 using xda app-developers app
miked63017 said:
Right now I am on the flex reaper from and I be live the kernel is the one that came with it. The problem is there on stock too though. Any other things I can try?
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
Get the logs like I suggested so we can see what's going on.
Tapatalked from my Galaxy S II.
Hopefully he knows how to get a log, I didn't know for the longest time.
Adb logcat
That displays it
Adb logcat > logcat.txt
That gives you a text file to post
I dunno about dmesg though
sent from my sexy-a$$-iconia tab
looked in the logs, no errors with regards to SD. I looked through the init files and there is no mounting of the external SD, it seems to me that the vold.fstab dev_mount thing is more like a bind mount than a traditional mount point. Looked in my phone and the SD is mounted in one of the local inits. So time to recompile the ram disk I guess. Will post logs up after work today, not sure if I can do it from the mobile app.
Sent from my SCH-I500 using xda app-developers app
Here is a copy of the log file and a txt file with all the errors in the log(grep -i error logcat.txt > logcaterrors.txt). If anybody notices anything I missed please let me know. I am about to dump my partitions and try to assemble a new boot.img, anybody have a link to the partition layout?
miked63017 said:
Here is a copy of the log file and a txt file with all the errors in the log(grep -i error logcat.txt > logcaterrors.txt). If anybody notices anything I missed please let me know. I am about to dump my partitions and try to assemble a new boot.img, anybody have a link to the partition layout?
Click to expand...
Click to collapse
Try adb shell dmesg > dmesg.txt that would be more likely to show fs errors.
Also pulling the recovery log in /cache/recovery/ has the partition info in it.
Tapatalked from my Galaxy S II.
Sweet added mount ext3 /dev/block/mmcblk1p1 /mnt/external_sd to the init.vangogh.rc, rebuilt the boot.img and now the sd mounts by itself Thanks for the help, Next I am determined to get a ubuntu image running on it and then ideally get android running in a chroot(opposite of how most tutorials do it).
Well now I may have very well bricked it. On the plus side it is trying to boot from the SD card. I guess the rootfs is not bootable. However holding the volume button no longer takes me to recovery either any suggestions?
Sent from my SCH-I500 using xda app-developers app
miked63017 said:
Well now I may have very well bricked it. On the plus side it is trying to boot from the SD card. I guess the rootfs is not bootable. However holding the volume button no longer takes me to recovery either any suggestions?
Sent from my SCH-I500 using xda app-developers app
Click to expand...
Click to collapse
Put it in fast boot and put a normal boot.img back on it, as well as flash recovery again. It'll reverse the changes but it'll be up again to try it again lol
Boot holding the other volume key down, volume up in landscape.
Fastboot flash boot boot.IMG
Fastboot flash recovery recovery. IMG
I'm sure you know to use the file names there.
Tapatalked from my Galaxy S II.
Replied in other thread (native Linux a100) in the developers section. Will keep it there since its more related to that topic. Thanks for the help with the SD guys.
Sent from my SCH-I500 using xda app-developers app

Recovery mode and file transfering

Hello.. I accidentally erased all data in both internal and external card. I can boot recovery mode. Is there a way to trasfer files from pc to the phone on recovery mode in order to trasnfer a rom to flash? When o connect it apperas adb interface, something like that but i cannot see the phone.
Wouldn't it be easier to just take memory card out and use a card reader to put a rom straight onto the memory card. Think that should work
Sent from my GT-N7105 using xda premium
ADB in recovery mode works fine for me.
SenK9 said:
ADB in recovery mode works fine for me.
Click to expand...
Click to collapse
How do you use that?
c1oud said:
How do you use that?
Click to expand...
Click to collapse
If your using cwm. Make a folder on your sd card like this
Clockworkmod/backup/ then copy and paste your file in there.. reboot to recovery and choose restore from external. You may need to do a full wipe if its an older backup.
GT N7105 with XDA Premium......that is all......
c1oud said:
How do you use that?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2303834
Read through that. It's basically an interface for you to plug your phone via USB to your computer and pass commands to it (and read info). By running ADB logcat, you can then see what's going on in your phone, in real time.
Doing so, you should be able to find out (or at least paste here) what errors are occurring.
It's a sensible first step, before resorting to wiping or imaging.
SenK9 said:
http://forum.xda-developers.com/showthread.php?t=2303834
Read through that. It's basically an interface for you to plug your phone via USB to your computer and pass commands to it (and read info). By running ADB logcat, you can then see what's going on in your phone, in real time.
Doing so, you should be able to find out (or at least paste here) what errors are occurring.
It's a sensible first step, before resorting to wiping or imaging.
Click to expand...
Click to collapse
I installed a rom by using odin and everything works ok. I will read about adb, it might come in useful sometime.. Thank you.

Categories

Resources