Linux (SAMBA) and Windows 256 byte path limit.

Posted on 2007-04-11
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?
Question by:poomba1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Accepted Solution

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}$'


Author Comment

ID: 18994565
I'll check it out, thanks for the idea.

Expert Comment

ID: 19098091
Did this work for you ?

Author Comment

ID: 19104091
Thanks, did the trick.

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Suggested Solutions

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

751 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