destination filename is too long

devnullius

Patron
Joined
Dec 9, 2015
Messages
289
:) you don't say ;p

Question is: why? I even mapped the share as a drive; I ran robocopy as administrator (a .cmd file was created) but get access denied. As said; I'll have to investigate, but it looks strange to me :)

Thanks for the feedback and...

Peace!

Devnullius
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
Question is: why? I even mapped the share as a drive; I ran robocopy as administrator (a .cmd file was created) but get access denied
Run the RoboCopy in a normal CMD window (not as Admin); since you mapped the drive as whatever User was currently logged on. Of course, if you have to run it as Administrator then in the Admin CMD Window you would map the drive there (Net Use).
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I have to ask, even if you manage to get the files copied, how do you plan to access them? If the path is still too long, cifs won't be able to access them.
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
I have to ask, even if you manage to get the files copied, how do you plan to access them? If the path is still too long, cifs won't be able to access them.
He can still read and execute, and being a data disc that should be fine. If he wants to add/mod/delete it will fail.
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
He can still read and execute, and being a data disc that should be fine. If he wants to add/mod/delete it will fail.
I believe that "He" is a "She". Darn "?" Avatar... From now on I am going to assume "?" = Female... ;)
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
Fixed: "Said person" can still read and execute, and being a data disc that should be fine. If "said person" wants to add/mod/delete it will fail.
 

devnullius

Patron
Joined
Dec 9, 2015
Messages
289
I have to ask, even if you manage to get the files copied, how do you plan to access them? If the path is still too long, cifs won't be able to access them.
Well, Robocopy was promised to solve that for me?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Well, Robocopy was promised to solve that for me?
Well the problem you mentioned was copying to the cifs share. Is that all you plan to do?
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
While it was said Robicopy should help with the copy, having the long file/folder names can be problematic.

You should be able to access some content by mapping a drive letter deep into the path.

I ran into this issue recently while trying to change permissions on a several directories at the root. Subdirectories weren't getting the new permissions due to long filenames/paths.

One of my users might as well use hex for his directory and filenames. I just zipped some of the long ones, since I couldn't easily rename his stuff.


Sent from my iPhone using Tapatalk
 

devnullius

Patron
Joined
Dec 9, 2015
Messages
289

devnullius

Patron
Joined
Dec 9, 2015
Messages
289
One of my users might as well use hex for his directory and filenames.
LOL - I prefer old-school binary ;p

01001001 00100111 01101100 01101100 00100000 01100010 01100101 00100000 01110100 01100101 01110011 01110100 01101001 01101110 01100111 00100000 01101001 01101110 00100000 01100001 00100000 01101101 01101111 01101101 01100101 01101110 01110100 00100000 00101101 00100000 01110100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101 00100000 01100001 01101100 01101100 00100000 01100110 01101111 01110010 00100000 01110100 01101000 01101001 01101110 01101011 01101001 01101110 01100111 00100000 01100001 01101100 01101111 01101110 01100111 00100000 00111010 00101001 00001010 00001010 01010000 01100101 01100001 01100011 01100101 00100001 00001010 00001010 01000100 01100101 01110110 01110110 01101001 01100101
 

devnullius

Patron
Joined
Dec 9, 2015
Messages
289
Hmmm... Nothing changed; I just woke my computer up and started the NAS. Ran the .cmd file created yesterday and now it's copying... Sigh. Thanks! :)
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
The hamsters in the machine work a different schedule than yours. ;-)


Sent from my iPhone using Tapatalk
 

devnullius

Patron
Joined
Dec 9, 2015
Messages
289
Yeah... I never liked those pesky rat-like creatures ;p
 

devnullius

Patron
Joined
Dec 9, 2015
Messages
289
Hmmm... Nothing changed; I just woke my computer up and started the NAS. Ran the .cmd file created yesterday and now it's copying... Sigh. Thanks! :)

I did a fresh install last week (9.10). Yesterday I created a folder / share "M" for my Music. While I could read/write to the share with explorer, TeraCopy failed everytime without an error. So I tried to move the files with Robocopy, which failed too. Folders were created, but no files were transferred. Insisting it had no access to the folder (unsupported filesystem & error 1314 a required privilege is not held by the client). I looked at problems with /COPYALL or /B but had to rule them all out. I even re-took Administrators-group ownership on all local files, but nothing.

Command used:
C:\rktools\Robocopy "D:\shares\Music" "\\Bigcube\Muziek" /E /COPYALL /MOVE /R:10 /W:5 /REG /TBD /V /ETA

I tried /COPY: DAT etc., nothing changed. Explorer had no problems, Windows copy tools all failed. I tried both the share directly and through a mapped drive.

So I went to bed (often a succesful strategy) and shut-down my FreeNAS. I also gave my Windows Home Server (2003) a reboot.

This morning I powered on the NAS once more and I was denied access fully to my "M"-share, even with explorer. I wasn't even allowed to read! My mapped network shares were still operational. So I went to FreeNAS GUI and found that the permission group was reset from MyLAN to WHEEL. I fixed that, and now not only explorer had access once more but suddenly TeraCopy & my batch script above worked without problems.

I don't expect an answer to this problem, but I am curious if others are experiencing this weird behaviour too sometimes? Otherwise I'll have to take a closer look at my Windows Home Server :/

Peace!

Devnullius

PS: and if anyone knows of better trained hamsters... Do let me know ;p
 
Last edited:

iXô

Dabbler
Joined
Jun 11, 2014
Messages
41
My 2 cents : at work I used to have a lot of problems about Windows Explorer failing to copy folders with need structure, the fact is that some tools don't have this problems, ie : using Beyond Compare to copy folders will not fail, so you may use tools from a cygwin env to perform your tasks without any problem, bypassing the explorer folder length limitation
 

kara_brock

Cadet
Joined
Aug 6, 2019
Messages
1
If you are looking for a more easiest solution, go for the long path tool. I have been using it and it's the best to delete, copy, move and bulk rename long path files or locked file.
 
Top