[Q] How to copy nandroid backup? - Samsung Galaxy Nexus

Hi,
Is there any way to copy the nandroid backup (and blobs) to the PC without first copying everything over to the sdcard?
Apparently the /data/media is only visible in adb shell as super user and thus am not able to pull those files as normal user.
Thanks
Gaurav

Why don't you pull the whole "clockworkmod" folder located on your /sdcard/ via adb?
I have pulled it before and I think it would work just fine when pushing it back to the sdcard then restore it but honestly I did not try to push it back later and restore so try it on your own risk then report here for others to know

ahmadallica said:
Why don't you pull the whole "clockworkmod" folder located on your /sdcard/ via adb?
I have pulled it before and I think it would work just fine when pushing it back to the sdcard then restore it but honestly I did not try to push it back later and restore so try it on your own risk then report here for others to know
Click to expand...
Click to collapse
/data directory is not in sdcard and hence I'm failing to pull it via adb. Can adb pull directories with root only permission? What is the command for that?

What I did some time ago and even tried it now again to confirm is the following:
1- Connect my GNex to Laptop. I am running Ubuntu Linux by the way.
2- Open the Terminal and change directory to Desktop for example by typing: cd Desktop
3- Start the adb server by typing adb devices which should start the adb server and show the list of devices attached which in this case should be your GNex
4- Pull the data from GNex by typing the command: adb pull /sdcard/clockworkmod
5- The files will start being pulled to the directory you specified. In this example it is Desktop
The whole "clockworkmod" directory which is located on the sdcard of your GNex and you can access "without root" wil be pulled to your laptop.
I hope this makes it clear and it is useful to you

ahmadallica said:
What I did some time ago and even tried it now again to confirm is the following:
1- Connect my GNex to Laptop. I am running Ubuntu Linux by the way.
2- Open the Terminal and change directory to Desktop for example by typing: cd Desktop
3- Start the adb server by typing adb devices which should start the adb server and show the list of devices attached which in this case should be your GNex
4- Pull the data from GNex by typing the command: adb pull /sdcard/clockworkmod
5- The files will start being pulled to the directory you specified. In this example it is Desktop
The whole "clockworkmod" directory which is located on the sdcard of your GNex and you can access "without root" wil be pulled to your laptop.
I hope this makes it clear and it is useful to you
Click to expand...
Click to collapse
Let me explain that /sdcard/clockworkmod is not used for nandroid backup on my nexus 4. nandroid backups are stored in /data/media/clockworkmod which are only visible as a superuser and not a normal user.
So, my question is whether we can pull that directory (/data/media/clockworkmod) directly via adb instead of first copying it to /sdcard.

gauravsri said:
Let me explain that /sdcard/clockworkmod is not used for nandroid backup on my nexus 4. nandroid backups are stored in /data/media/clockworkmod which are only visible as a superuser and not a normal user.
So, my question is whether we can pull that directory (/data/media/clockworkmod) directly via adb instead of first copying it to /sdcard.
Click to expand...
Click to collapse
That directory should not require root access.
adb pull /data/media/clockworkmod/ /clockworkmod/
A clockworkmod folder will be on your c:\ drive.
And the easiest way to push it back and keep folder integrity is to put the clockworkmod folder in an empty folder...and put it in platform tools.
adb push foldername /data/media/

It does require root access. Anyway, I figured out that if I reboot in recovery mode then adb connects as root user and I'm able to pull the files from that location.
Thanks

Jubakuba said:
That directory should not require root access.
adb pull /data/media/clockworkmod/ /clockworkmod/
A clockworkmod folder will be on your c:\ drive.
And the easiest way to push it back and keep folder integrity is to put the clockworkmod folder in an empty folder...and put it in platform tools.
adb push foldername /data/media/
Click to expand...
Click to collapse
Thanks a lot, i was looking the way to do this.

Related

Can't delete folder?

How the hell can i delete a folder that can't be seen via PC connection but i can see it using es file explorer?
I can't delete it using ES even with root enabled....
zerozoneice said:
How the hell can i delete a folder that can't be seen via PC connection but i can see it using es file explorer?
I can't delete it using ES even with root enabled....
Click to expand...
Click to collapse
Depending on where it is you need to mount it first. Which folder are you trying to delete?
Sent from my Galaxy Nexus
I had a folder that became corrupted (repeatedly interrupted game data downloads, I think). I was unable to delete it (even as root) and received an Access Denied error. I was able to rename the folder (so it wouldn't conflict anymore) and delete the majority of its contents (still received the Access Denied error on a file or two). I eventually had to do a full wipe via fastboot -w to get rid of the corrupted files.
had the same problem. had to reflash su.zip and it worked. can't explain it though. just reaching at straws
matt30 said:
Depending on where it is you need to mount it first. Which folder are you trying to delete?
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
it's the folder created by the Photaf application.
i uninstalled the app and the folder is still there...permissions are writable, not hidden...
i can rename it, but can't delete it....and the subfolder within it as well...
i remember it happened once before and the only way to get rid of it was to reinstall the ROM (AOKP). Once installed, i could delete the folder.....
Try reinstalling the game and using settings/application/name of game clear data
Sent from my Galaxy Nexus
bwcorvus said:
Try reinstalling the game and using settings/application/name of game clear data
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
no effect, still can't be removed
LE: WTF, i just plugged in the phone into USB for charging and i saw the folder?! It deleted just fine?
Damn weird didn't do anything different than yesterday when i couldn't even see the folder via PC...
Thank you!
My Asus Transformer (TF101) hasn't been able to download anything to the Download folder for months now. Even Opera (which I installed just to try and fix this) could only download to a different folder. I did what you said, plugged it into the computer and first renamed the folder with ADB but couldn't create a new Download folder. "File already exists." Lies. Windows Explorer said it was still there as Download so I deleted it in Explorer and created a new folder named Download. The create failed but Android said it was there and Voila! I can download again. Very weird, but not ready yet to reformat in fastboot. Thanks guys!
If you're rooted you may be able to delete the files from /data/media, which is the true location, instead of the visual SD that you are seeing.
Could also be a file ownership issue.
Using a terminal emulator, use the following command to list ownership and permissions:
ls -l
(Lower case letter L, not i or 1)
Most of the files and folders should show up as media_rw, but the problematic ones may show up as numbers. To fix them, boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *

[Q] Copy large backup directory to PC

Hi guys,
I am trying to figure out a way to copy clockworkmod directory to my PC, as the backups are taking up too much unncessary space on the phone. The problem is that via MTP Windows Explorer simply hangs and doesn't copy a thing. My guess is that the underlying issue is the huge number of very small files in the /blob sub-directory.
Could anyone guide me how to accomplish this task, please? Or, alternatively, what other methods of backing straight to the PC are there?
Much obliged!
zkvvoob said:
Hi guys,
I am trying to figure out a way to copy clockworkmod directory to my PC, as the backups are taking up too much unncessary space on the phone. The problem is that via MTP Windows Explorer simply hangs and doesn't copy a thing. My guess is that the underlying issue is the huge number of very small files in the /blob sub-directory.
Could anyone guide me how to accomplish this task, please?
Much obliged!
Click to expand...
Click to collapse
MTP sucks. I prefer to use adb for this: adb pull /sdcard/clockworkmod D:\your\path\here
If you don't want to use the commandline, you can alternatively use an app like ES File Explorer to access a LAN share (shared folder/drive on your computer) and copy files this way.
adb pull?
Any time I transfer anything large it's what I use.
Code:
adb pull /sdcard/clockworkmod/ /Backup/
I believe that's the directory.
Just rename the "clockworkmod" folder to whatever it truly is if not.
This will put a "Backup" folder on your C:\ drive.
Edit:
Ninja'd.
Thank you very much, guys! I hadn't realised that adb pull could be used for copying a whole directory.
Reverse of this
Can anyone tell me how to reverse this using adb (i.e. move the directory back onto the phone)? Thanks.
grouseuk said:
Can anyone tell me how to reverse this using adb (i.e. move the directory back onto the phone)? Thanks.
Click to expand...
Click to collapse
[GUIDE] How-to copy files from/to your device
from Petrovski's sig
Thanks for the help with ADB pull. I knew about the push command, but being the noob I am I would never have thought that the opposite was that simple.
Now I have a GNex and I'm almost out of internal memory. I've copied my entire clockworkmod folder to my PC. I was wondering if I could delete the contents of the clockworkmod folder off of my phone (since it's all on the PC) to regain some storage space, and then only return the deleted contents to the phone when I need to do a nandroid restore without any problems occurring. I wouldn't want to go do all that only to arrive upon a large problem when I try to go back to stock JB JRO03C or anything like that.
kbolt said:
Thanks for the help with ADB pull. I knew about the push command, but being the noob I am I would never have thought that the opposite was that simple.
Now I have a GNex and I'm almost out of internal memory. I've copied my entire clockworkmod folder to my PC. I was wondering if I could delete the contents of the clockworkmod folder off of my phone (since it's all on the PC) to regain some storage space, and then only return the deleted contents to the phone when I need to do a nandroid restore without any problems occurring. I wouldn't want to go do all that only to arrive upon a large problem when I try to go back to stock JB JRO03C or anything like that.
Click to expand...
Click to collapse
I want to know this exact answer as well.
if you dont rename the folders, you wont have a problem.
I've found that the GNex toolkit makes it pretty easy to make backups, move them to your PC and restore plus a whole lot more. It's pretty good.
http://forum.xda-developers.com/showthread.php?t=1392310
+1 for adb
Large File Tip
THANK YOU!!
Jubakuba said:
adb pull?
Any time I transfer anything large it's what I use.
Code:
adb pull /sdcard/clockworkmod/ /Backup/
I believe that's the directory.
Just rename the "clockworkmod" folder to whatever it truly is if not.
This will put a "Backup" folder on your C:\ drive.
Edit:
Ninja'd.
Click to expand...
Click to collapse
Unable to see clockworkmod folder through file explorer
HI All,
Am not able to see the clockworkmod folder through File Explorer. Whereas after i take a backup through recovery, i can see the backup exists in /sdcard/clockworkmod/backup.
Please help.
Hi All,
Can anyone help with the above issue?
Use adb pull or an ftp server running on your device.
Sent from my Galaxy Nexus using Tapatalk 2

[Q] cannot copy whatsapp database

I am facing a strange problem. I am trying to copy the whatsapp databases from the Galaxy Nexus to my new phone.
I cannot find any files inside the databases folder if I open it from any file manager in the phone.
I connected the phone to the computer and I can see multiple files in the databases folder including the last backup "msgstore.db.crypt".
I cannot copy this file to anywhere or even rename it. Right click copy and then paste simply does nothing.
Even with adb pull command. 0 files found.
So the only way that I see the db files is through PC connection.
When I even tried to install whatapp again on the same phone. It simply does not see any file in that folder.
Any suggestions.
If your phone is rooted, try copying /data/data/com.whatsapp/databases/msgstore.db to your sdcard (/storage/sdcard0/) via terminal emulator after gaining root privilegs (type "su").
To be clear:
-open Android Terminal Emulator on your phone
-type "su"
-type "cp /data/data/com.whatsapp/databases/msgstore.db /storage/sdcard0/msgstore.db"
On your new / other phone, copy this file to it's internal memory / sdcard and do the same vice versa:
-open Android Terminal Emulator on your phone
-type "su"
-(eventually delete /data/data/com.whatsapp/databases/msgstore.db via "rm /data/data/com.whatsapp/databases/msgstore.db")
-type "cp /storage/sdcard0/msgstore.db /data/data/com.whatsapp/databases/msgstore.db"
It is advisable to do the same thing that suggests zwiebelchen with the file wa.db. Messages.db guards the messages. Wa.db guards the contacts data.
Regards.

GS3 Broken Screen... NEED a folder from internal storage

Hey everybody,
I recently broke the screen on my gs3 and am trying to retrieve a folder from the internal SD.. I am not rooted and the folder is a hidden folder that I placed there.. . I adb pulled my entire internal SD and everything showed up but this folder...n any help would be appreciated
touchpro55 said:
Hey everybody,
I recently broke the screen on my gs3 and am trying to retrieve a folder from the internal SD.. I am not rooted and the folder is a hidden folder that I placed there.. . I adb pulled my entire internal SD and everything showed up but this folder...n any help would be appreciated
Click to expand...
Click to collapse
Hey, do you know the background to Linux terminal? make sure you're in the right directory "pwd", and do "ls" to see if your folder you're needing is in there.
Questions and Help issues go in Q&A and Help section
Thread moved
Thanks
FNSM
lemonboi5 said:
Hey, do you know the background to Linux terminal? make sure you're in the right directory "pwd", and do "ls" to see if your folder you're needing is in there.
Click to expand...
Click to collapse
Hey thanks for the reply... can u be more detailed in your commands? the commands I used were suppose to pull EVERYTHING for my internal storage. these look like adb shell commands... I used the windows command prompt to pull my files before... after I CD\ to the adb tools folder
anybody have a command line that could tell me what is on my internal storage? everything including hidden folders? like drowsing by directory
PWD will show the directory you're in, and LS will show files and directories within that directory, use CD (change directory) to navigate and make sure you find it. You can use a push command to move the file to your SD Card, and then get them that way onto your PC to back up or just keep them on the SD Card..

advanced question - internal and external file transfers

I have a rooted 5x nougat with twrp recovery and stock rom. When I attempt to copy my TWRP backup to my computer via MTP file transfer, I cannot. Same with my titanium backup folder. I also tried to move my TWRP backup to my DCIM folder such that I could try PTP file transfer but that didn't work either.
Indeed, i cannot even transfer files within my own phone's file directory. I'm using root Explorer. I've toggled and made the file system read-write. I tried to change file folder permissions, and that failed.
Any advice Xda family? I have the proper drives installed.
Apologies in advance if my verbiage isn't accurate technically. I'm pretty good with android but by no means an expert.
Mario
File Transfers
I'm not really sure as to why you'd have problems moving files within your phones internal storage, however I do have a solution (work around, really) to your MTP problem, as long as you have ADB working.
I also never got MTP working so I just use a file manager to check the path to the folder I want from my phone to my computer, and then use the command:
Code:
adb pull /path/to/folder/on/phone /path/to/destination/on/computer
And if I want to put something from my computer on my phone, I do the opposite command:
Code:
adb push /path/to/file/on/computer /path/to/destination/on/phone
Additionally, if you really need to move files around on your phone, you can use:
Code:
adb shell
su
mv /path/to/file /path/to/destination
Hope that helps!
Thanks. It does help and I have adb. I'll try that method. I'm not sure why I'm having that issue either.

Categories

Resources