[Q] adb pull fails with 'cannot create...' - Android Q&A, Help & Troubleshooting

Hello everyone,
I am trying to copy my entire sd card from my Nexus 4 to pc using adb pull /mnt/sdcard E:\Backups\nexus-4-sdcard-final\
It's going fine for a while, it's transfering all my files but after a while i get this error message:
Code:
cannot create 'E:\Backups\nexus-4-sdcard-final\Android\data\com.google.android.apps.docs.editors.slides\files\pinned_docs_files_do_not_edit\454c288823047ca656676a9effef1cb5\files\documents\1-MHOqmLRrNLLzh9TfmnCIzJBWxW-TNz3MrEHMsRWjkM\image\1nFkukIkRz4mJ6HfTZCaSv8gv94X-HBr8Rw5Uyy8Y': No such file or directory
I googled for a while and the only thing i found is this guy with similar error but he had folder on his phone with file name longer than 255 characters, it couldn't be created in windows and that's why adb was failing.
My question is:
Is there any flag for adb pull or way to skip files that can not be copied and keep copying?
Or if you can tell me how to avoid this error it's even better solution.
Thanks,
Milos

milos91 said:
Hello everyone,
I am trying to copy my entire sd card from my Nexus 4 to pc using adb pull /mnt/sdcard E:\Backups\nexus-4-sdcard-final\
It's going fine for a while, it's transfering all my files but after a while i get this error message:
Code:
cannot create 'E:\Backups\nexus-4-sdcard-final\Android\data\com.google.android.apps.docs.editors.slides\files\pinned_docs_files_do_not_edit\454c288823047ca656676a9effef1cb5\files\documents\1-MHOqmLRrNLLzh9TfmnCIzJBWxW-TNz3MrEHMsRWjkM\image\1nFkukIkRz4mJ6HfTZCaSv8gv94X-HBr8Rw5Uyy8Y': No such file or directory
I googled for a while and the only thing i found is this guy with similar error but he had folder on his phone with file name longer than 255 characters, it couldn't be created in windows and that's why adb was failing.
My question is:
Is there any flag for adb pull or way to skip files that can not be copied and keep copying?
Or if you can tell me how to avoid this error it's even better solution.
Thanks,
Milos
Click to expand...
Click to collapse
Why not use ADB Backup?
Far better than manually pulling (and easier to restore too).

Jaskaranbir Singh said:
Why not use ADB Backup?
Far better than manually pulling (and easier to restore too).
Click to expand...
Click to collapse
Because I would like to be able to access my files without having to restore them back to a phone.
But if I don't find better solution I will do that. It's better than nothing, right? Thanks for the suggestion.

I have this problem too right now, What was your fix?

The first part of the problem is windows 10 you have to enable long file name support for paths longer than 260 characters . https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/ The second part is we need to get Google or one of the XDA members to include a manifest file in the adb that tells windows it supports long file names then it may work otherwise do the adb pull in Linux.

idocinthebox said:
The first part of the problem is windows 10 you have to enable long file name support for paths longer than 260 characters . https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/ The second part is we need to get Google or one of the XDA members to include a manifest file in the adb that tells windows it supports long file names then it may work otherwise do the adb pull in Linux.
Click to expand...
Click to collapse
is there a fix yet bro ?
milos91 said:
Hello everyone,
I am trying to copy my entire sd card from my Nexus 4 to pc using adb pull /mnt/sdcard E:\Backups\nexus-4-sdcard-final\
It's going fine for a while, it's transfering all my files but after a while i get this error message:
Code:
cannot create 'E:\Backups\nexus-4-sdcard-final\Android\data\com.google.android.apps.docs.editors.slides\files\pinned_docs_files_do_not_edit\454c288823047ca656676a9effef1cb5\files\documents\1-MHOqmLRrNLLzh9TfmnCIzJBWxW-TNz3MrEHMsRWjkM\image\1nFkukIkRz4mJ6HfTZCaSv8gv94X-HBr8Rw5Uyy8Y': No such file or directory
I googled for a while and the only thing i found is this guy with similar error but he had folder on his phone with file name longer than 255 characters, it couldn't be created in windows and that's why adb was failing.
My question is:
Is there any flag for adb pull or way to skip files that can not be copied and keep copying?
Or if you can tell me how to avoid this error it's even better solution.
Thanks,
Milos
Click to expand...
Click to collapse
did u find any soutions bro

Related

[How to] Install apps from NC (Not by ADB install)

I didn't see a thread for this anywhere and it's not included in the rooting documentation so i figured I'd make one.
This will allow you to install apk files directly from the device, no need to adb them over. Just get the apk from the web or whatever source you want and install. Of course this is all assuming you have completed the current root process and have adb access already.
Thanks to godsfilth for finding these directions for the origninal nook.
1. Open a command prompt and navigate to your sdk tools folder
2. Run the following commands
Code:
C:\android-sdk-windows\tools>adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
C:\android-sdk-windows\tools>sqlite3 settings.db
sqlite> update secure set value=1 where name='install_non_market_apps';
sqlite> .q
C:\android-sdk-windows\tools>adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
3. Reboot
4. Install apps from NC without ADB.
You might have to restart your homescreen for the apps to show up, but i've had sucess with every app i've tried that is known working on the NC.
This was done on a Windows 7 x64 machine, although i'm sure it's the same or similiar for Linux and MUC OSx.
Also, sqlite3.exe was already in my sdk tools folder, if it's not for you then you can download from here.
Yep, and you can ADB install a file manager app, then just use the file manager to install anything else, from the SD card.
Bimboy said:
Yep, and you can ADB install a file manager app, then just use the file manager to install anything else, from the SD card.
Click to expand...
Click to collapse
So...the nook doesn't stop apps from deing installed if Iinstall them manger astro file Manger?
What is the command in sqllite to see if the db entry has been changed?
I copied & pasted your commands and after a reboot still get "Can't install downloaded apk"
I did the same - even adapted the commands because the folder name wasn't the same, etc.
However, I'm trying to use SlideMe to install APKs and it keeps coming up with "Install Blocked" - any ideas?
sudermatt said:
So...the nook doesn't stop apps from deing installed if Iinstall them manger astro file Manger?
Click to expand...
Click to collapse
Once you enable this it will allow you to install the apps, it doesn't have anything to do with astro per se. You can just use astro to navigate to apks stored on your sd card. I use estrongs file manager myself and have installed apks from my sd card, dropbox and downloads from dolphin browser hd.
I'm getting the same error as everyone else.
I made the edits per your first post and pushed the file back to the NC. Then I rebooted. Placed an apk in the NC and tried to open it using Root Explorer. I try to install it and I get the "Installation of donwload apks is not supported" error.
barrosd12 said:
I did the same - even adapted the commands because the folder name wasn't the same, etc.
However, I'm trying to use SlideMe to install APKs and it keeps coming up with "Install Blocked" - any ideas?
Click to expand...
Click to collapse
Slideme works perfect for me so you did something wrong. Not sure what though, I would just redo it.
lovelacer said:
What is the command in sqllite to see if the db entry has been changed?
I copied & pasted your commands and after a reboot still get "Can't install downloaded apk"
Click to expand...
Click to collapse
just use
Code:
sqlite3 settings.db ".dump"
and then scroll down and look for INSERT INTO "secure" VALUES(4,'install_non_market_apps','1'); you want a 1 there at the end.
barrosd12 said:
I did the same - even adapted the commands because the folder name wasn't the same, etc.
However, I'm trying to use SlideMe to install APKs and it keeps coming up with "Install Blocked" - any ideas?
Click to expand...
Click to collapse
look in your tools folder for the settings.db file and check the modified by time and make sure the change you are making is made.
To clarify if there's a misunderstanding the path info and text before the > in the commands is just what you would see in your command prompt. the actual commands are after the >. These are the actual commands.
Code:
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
sqlite3 settings.db
update secure set value=1 where name='install_non_market_apps';
.q
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
What command did you have to alter?
also, maybe try
Code:
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
to push... I didn't have any problem with the other command and both appear to work for me.
Oh none, your commands worked awesomely, I just had to yank the folder designations that were there, which you've now done for everyone, so thanks!
I think it might be a problem somewhere else, I'm re-doing everything right now, I'll let everyone know
Ran these commands again with the additional adb push and still no dice. I checked to see that the db entry had been updated and it correctly has the install non market apps set to 1. I'm using root explorer as well I'll try estrongs as you have. Thanks for the help.
lovelacer said:
Ran these commands again with the additional adb push and still no dice. I checked to see that the db entry had been updated and it correctly has the install non market apps set to 1. I'm using root explorer as well I'll try estrongs as you have. Thanks for the help.
Click to expand...
Click to collapse
Confirmed now that SlideMe is not the issue - the settings are all correct on the PC, I can't confirm these settings for the NC. I tried re-adb-pushing and still no cigar here either. I'm getting app rejections from any source, downloaded on the NC and the SD card. Any idea what could be wrong?
Ok, definitely isolated the problem now.
I pull the settings from the NC, modify them, and everything works great, then it refuses to push it back, but says it succeeds, or something to this effect, because whenever I pull the file back from the NC, it says value=0
barrosd12 said:
Confirmed now that SlideMe is not the issue - the settings are all correct on the PC, I can't confirm these settings for the NC. I tried re-adb-pushing and still no cigar here either. I'm getting app rejections from any source, downloaded on the NC and the SD card. Any idea what could be wrong?
Click to expand...
Click to collapse
Not sure, I've got it working using this method on 3 different NCs myself. The only thing i can think of is that i had already installed estrongs file manager and a few other games before doing it. Maybe try using adb to install estrongs or astro and see if it will let you then.
estrongs i'm using: www mediafire com ?sxw6adfzvyp250m
astro: www mediafire com ?05scsbrnx2wfw4v
Novaglarion said:
Not sure, I've got it working using this method on 3 different NCs myself. The only thing i can think of is that i had already installed estrongs file manager and a few other games before doing it. Maybe try using adb to install estrongs or astro and see if it will let you then.
estrongs i'm using: www mediafire com ?sxw6adfzvyp250m
astro: www mediafire com ?05scsbrnx2wfw4v
Click to expand...
Click to collapse
Thanks for the file links - I'll give them a try, I really think the problem though is that the NC keeps resetting the value I push back for the non-market apps. I have no idea why it's doing this...
barrosd12 said:
Thanks for the file links - I'll give them a try, I really think the problem though is that the NC keeps resetting the value I push back for the non-market apps. I have no idea why it's doing this...
Click to expand...
Click to collapse
try pulling it back right after pushing the modified one, before rebooting, and see if it's even pushing correctly at all. If it is then being reset on reboot i don't know what the issue is.
Novaglarion, I am not able to do it either.
When you say "reboot", is that the same as power off and on?
boret said:
Novaglarion, I am not able to do it either.
When you say "reboot", is that the same as power off and on?
Click to expand...
Click to collapse
yes, the same.
make sure you're pushing the modified db file to /data/data/com.android.providers.settings/databases not to /data/data/com.android.providers.settings
it needs to be in the databases folder so it overwrites the original
bular211 said:
make sure you're pushing the modified db file to /data/data/com.android.providers.settings/databases not to /data/data/com.android.providers.settings
it needs to be in the databases folder so it overwrites the original
Click to expand...
Click to collapse
DAMN YOU!!!! such a simple thing and i missed it! You are correct. I'll update the original commands. Thanks for the good catch there.

Help with root and Mac - can't post to development section

I keep getting this error when I am trying to start the first command in terminal
Jays-Mac-Prolatform-tools experience$ ./adb push psneuter /data/local/
cannot stat 'psneuter': No such file or directory
I have all of the files downloaded. the file on my memory card. I have been trying this for a few nights now and I can't seem to figure it out. Any help would be appreciated! Coming from my incredible with CM7 Nightlies to a non rooted thunderbolt for 2 weeks now is killing me!
longjas said:
I keep getting this error when I am trying to start the first command in terminal
Jays-Mac-Prolatform-tools experience$ ./adb push psneuter /data/local/
cannot stat 'psneuter': No such file or directory
I have all of the files downloaded. the file on my memory card. I have been trying this for a few nights now and I can't seem to figure it out. Any help would be appreciated! Coming from my incredible with CM7 Nightlies to a non rooted thunderbolt for 2 weeks now is killing me!
Click to expand...
Click to collapse
I posted a pretty comprehensive walkthrough in the development section.
http://forum.xda-developers.com/showthread.php?t=1011623
I recommend you look through there first. now, what you've done wrong: The files don't go in your sd card, they need to be put in the platform tools folder.
Post in my thread if you have anymore trouble, or if it helps you.
I would post there but I dont have 10 posts yet.
I don't have all of the files on my memory card only the one where you change it to p5000 or whatever it's called the problem I'm having is when inam doing this
Now, navigate to your home folder and there is a text file there for you. Pretty neat, eh?
Now, we need to navigate to adb. Go to your android-sdk-mac_x86 folder, open it. Now, go back to terminal, type cd and drag the folder Platform-tools to the terminal window. You should see a green dot with a plus sign in it, that means you can add the folder to the terminal window. It should read something like this:
Code:
cd /Users/Your Computer's Name/Downloads/android-sdk-mac_x86/platform-tools
If you moved the android-sdk-mac_x86 folder (Like I did) after downloading it, it will only be slightly different. (My folder was in my home folder, so it just says /users/my computer/android-sdk-mac_x86/platform-tools)
Once you do this, you are ready to begin
Once I Follow these directions above I am getting thus error
Jays-Mac-Proplatform-tools experience$ ./adb push psneuter /data/local/
cannot stat 'psneuter': No such file or directory
I am at a loss. Please help!
bump. Need some help figuring this out. Been reading the the guide here http://forum.xda-developers.com/show....php?t=1011623 and I still can't figure this out. Any help would be appreciative
i used corey streeter's walkthrough over at androidcentral.com...it could not have possibly been easier if you follow directions exactly...there is a video too
laneharts said:
i used corey streeter's walkthrough over at androidcentral.com...it could not have possibly been easier if you follow directions exactly...there is a video too
Click to expand...
Click to collapse
thanks. Ive tried his method to but every time i get the same error with terminal. I thought i watched the video already but ill give that a try as well. Thanks for the reply
longjas said:
thanks. Ive tried his method to but every time i get the same error with terminal. I thought i watched the video already but ill give that a try as well. Thanks for the reply
Click to expand...
Click to collapse
Just to confirm, psneuter, busybox and misc.img go into your platform tools folder, not your sd card. You aren't actually pushing anything, and you're receiving that error because there is nothing to push. Now, if you put the files from the exploit folder into your platform tools folder, it will work.
Good luck man I hope you get it to work...It was my first time with rooting a phone and I didnt think it was too hard except for the time it took to get it all done
the error msg you are getting is because the files you are trying to push are not in the directory you think they are.
IISiDeK1CKII said:
Just to confirm, psneuter, busybox and misc.img go into your platform tools folder, not your sd card. You aren't actually pushing anything, and you're receiving that error because there is nothing to push. Now, if you put the files from the exploit folder into your platform tools folder, it will work.
Click to expand...
Click to collapse
perfect. Thanks! i think that will fix it. I appreciate your response
laneharts said:
Good luck man I hope you get it to work...It was my first time with rooting a phone and I didnt think it was too hard except for the time it took to get it all done
Click to expand...
Click to collapse
That's the weird thing. This is my 5th phone I have rooted. Droid 1, 2, X, Incredible and now Thunderbolt. I have used terminal and commands in all of them i think except for the X. I understand what to do I just kept getting that error. I think i will be able to get it now. thanks for posting
longjas said:
perfect. Thanks! i think that will fix it. I appreciate your response
Click to expand...
Click to collapse
This same thing happened to me first time I thought u were supposed to put the exploits onto ur sd card haha
Sent from my ADR6400L using XDA Premium App
wwjdd44 said:
the error msg you are getting is because the files you are trying to push are not in the directory you think they are.
Click to expand...
Click to collapse
THanks I think i will be able to get it now with the help of ISiDeK1CKII and the posts
IISiDeK1CKII said:
Just to confirm, psneuter, busybox and misc.img go into your platform tools folder, not your sd card. You aren't actually pushing anything, and you're receiving that error because there is nothing to push. Now, if you put the files from the exploit folder into your platform tools folder, it will work.
Click to expand...
Click to collapse
That did it! I am officially rooted and i am making my first back up with clockwork. Thanks so much!
I love the forums on xda! I finally have a rooted thunderbolt. Now to decide what rom to load! Hopefully cm7 comes out for the Thunderbolt soon. Loved that on my incredible.
I find myself in the same boat, terminal replies "no such directory"
q: I know that the OP's directions explicitly say to download Android SCK...revision 3 <-- has this changed to just the platform tools?
the reason I ask, I have all the files dl and in the folders that sidek1ck says to, but CANT complete Step 5. Setup terminal for ADB. I open up terminal, type the letters "cd", drag and drop the "platform tools" folder to no avail..."no such directory exists"
I simply CANNOT find where I am going wrong here
Please guide me, as this guide seems to work seemingly flawless for everyone else

[Q] Adb pull failing on a file

I am trying to backup my phone with "adb pull /mnt/sdcard/ SDCARD20121115" but i keep having it fail in the middle of the backup with
cannot create 'SDCARD20121115\Folder\Folder2\Folder3\File.ext'
: No such file or directory
Ideas?
Still having issues with this and not sure how to backup my entire SD card...
Anyone?
Ok so i think i found the two different solutions to my problem.
First what actually was causing the problem was a folder with a $ sign in it. Using the command it looked like it failed on the file right before that folder so it didnt jump out right away.
Second i used a program called android commander that gives a gui. while this wasnt an actually solution i was able to select all but the folder tree structure that was failing instead of doing hundreds of directories by hand.
If anyone has any questions let me know.
*EDIT*
Looks like i had another failure on a folder. The folder had a trailing space "/storage/sdcard0/folder /file.ext"
Possible the $ sign works but to lazy to test.

[Q] help with factory mode

hi
im very new in the forum thats my first post
i tried to install an app that required a rebbot in my gt-i9300, i rebooted and i got an pop-up window said that factory mode has crashed.
i searched for days in the internet and i found this thread: http://forum.xda-developers.com/showthread.php?t=1762204&page=53
i did all but my galaxy says that its unable to chmod /efs/FactoryApp/factorymode: no such file or directory
then i realised that i have no efs directory and that i can download one from here http://forum.xda-developers.com/showthread.php?t=888193
so' my question is,
if i will flash it with odin, will the error will dissapear?
and if the answer is yes,
i understand that some people flash it because they have no imei and the phone dont recognize their sim card.
and my fear it can happen to me if ill flash it
some help please?
What app did you try installing?
slaphead20 said:
What app did you try installing?
Click to expand...
Click to collapse
the swapsd app.
but theres no matter what app i installed
i just want to know if i can install the efs directory without problems
so please help me everyone!
You have a backed up EFS on your phone ???
jje
JJEgan said:
You have a backed up EFS on your phone ???
jje
Click to expand...
Click to collapse
yes i have a backup named efs.tar in my root directory
can i restore the folder from it?
arimal199 said:
yes i have a backup named efs.tar in my root directory
can i restore the folder from it?
Click to expand...
Click to collapse
Well, obviously you can. That's what an efs backup is for
Copy the tar file to your PC and download the Android SDK.
Once the Android SDK is installed, open up a command prompt.
Once you're in the command prompt, CD to the directory where the ADB executables and libraries are.
Usually it's here:
Code:
cd C:\android-sdk\platform-tools\
Once you're in the directory where the files are, unpack the TAR file and type the following code:
Code:
adb start-server
adb push <path-to-your-unpacked-TARfile> /efs/
adb kill-server
If you need further assistance, feel free to PM or email me
Hope I could help!
Lg
familyguy59 said:
Well, obviously you can. That's what an efs backup is for
Copy the tar file to your PC and download the Android SDK.
Once the Android SDK is installed, open up a command prompt.
Once you're in the command prompt, CD to the directory where the ADB executables and libraries are.
Usually it's here:
Code:
cd C:\android-sdk\platform-tools\
Once you're in the directory where the files are, unpack the TAR file and type the following code:
Code:
adb start-server
adb push <path-to-your-unpacked-TARfile> /efs/
adb kill-server
If you need further assistance, feel free to PM or email me
Hope I could help!
Lg
Click to expand...
Click to collapse
wow
thanks man ill try it
arimal199 said:
wow
thanks man ill try it
Click to expand...
Click to collapse
oh i forgot
my pc doesnt recognize my galaxy
maybe i can go to someone that already has a adb and see if he can fix it
but really thanks
I believe you'll also need to change files owners and access rights for it to work.
Edit : if you don't have any efs folder, I think your efs partition might not be mounted. Type "mount" in a terminal emulator and check if a line refers to /efs (that should be block 3)
arimal199 said:
oh i forgot
my pc doesnt recognize my galaxy
maybe i can go to someone that already has a adb and see if he can fix it
but really thanks
Click to expand...
Click to collapse
Check out the links in my description. (Win8 help - ADB etc. etc. ...) that works with Windows Vista, 7 and 8. If you need the ADB binaries, in that same thread, you can donate a bit of money to me and I'll license you a program (Always with updated binaries) that installs ADB and fastboot to your system's root. With the click of a button
Lg
Edit: You can also download my universal Android tool kit and with the next update, all the Samsung Galaxy S III variants will be supported and you can easily backup/restore your /efs partition from there (With the Pro version, that is)
spocky12 said:
I believe you'll also need to change files owners and access rights for it to work.
Edit : if you don't have any efs folder, I think your efs partition might not be mounted. Type "mount" in a terminal emulator and check if a line refers to /efs (that should be block 3)
Click to expand...
Click to collapse
i looked in mounts and storage in cwm and saw that efs is not mounted.
can i mount it and it will work?
arimal199 said:
i looked in mounts and storage in cwm and saw that efs is not mounted.
can i mount it and it will work?
Click to expand...
Click to collapse
no i understood' i wasnt at factory mode at all!
all the time i had imei and call function , the only problem was that factory test has stopped.
so, i downloaded titanum backup pro and turned factory test app off.
now my galaxy went back to normal all works as well!
thanks for trying to help guys!

[Q] how to adb pull files/photos, which directory path?

My HOX+ is stuck on bootloop, but I'm trying to save my photos from it before I try to revive it (had photos of a very important event before phone went dead, it's really important so I really don't want to lose them). How do I transfer files off it (can't mount from recovery)? Tried using ./adb pull, but which directory path I need to pull the files from? (I'm using Mac)
The threads I read says to pull /sdcard/DCIM but doesn't work (remote object '/sdcard/DCIM' does not exist). My understanding is that HOX+ has a different way to store files, so I don't know how the directory works.
Thanks in advance!
allmidnighter said:
My HOX+ is stuck on bootloop, but I'm trying to save my photos from it before I try to revive it (had photos of a very important event before phone went dead, it's really important so I really don't want to lose them). How do I transfer files off it (can't mount from recovery)? Tried using ./adb pull, but which directory path I need to pull the files from? (I'm using Mac)
The threads I read says to pull /sdcard/DCIM but doesn't work (remote object '/sdcard/DCIM' does not exist). My understanding is that HOX+ has a different way to store files, so I don't know how the directory works.
Thanks in advance!
Click to expand...
Click to collapse
adb pull /sdcard
(Or use the most recent TWRP that has MTP mountable)

Categories

Resources