Solved

Linux (SAMBA) and Windows 256 byte path limit.

Posted on 2007-04-11
4
1,066 Views
Last Modified: 2013-12-16
Linux (SAMBA) and Windows 256 byte path limit. We are using a Windows box to back up a SAMBA server and we're getting a 'Path too long' error. We know what it is and how to fix it, we just can't find the path it is having a problem with. We tried to limit increase logging to see the path but it's been very slow going.
 is there a tool someone know about we can run on Linux to go through a directory structure to determine if a path is too long for a Windows box?
0
Comment
Question by:poomba1
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
frashii earned 500 total points
ID: 18993933
I'm going to take a stab here at something... I don't know if this helps, because I don't know what characters add to a path length and which ones don't, etc, but I think you can get the idea. If you tell me how to calculate it I can devise a regex that might match :)

Walk a tree and display any /path/path/filename that has more than 255 characters in it

Relative to startpoint
cd /top/of/path
find . | grep  -vE '^.{1,255}$'

Absolute on mountpoint
find /top/of/path | grep  -vE '^.{1,255}$'

0
 
LVL 1

Author Comment

by:poomba1
ID: 18994565
I'll check it out, thanks for the idea.
0
 
LVL 8

Expert Comment

by:frashii
ID: 19098091
Did this work for you ?
0
 
LVL 1

Author Comment

by:poomba1
ID: 19104091
Thanks, did the trick.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question