Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linux (SAMBA) and Windows 256 byte path limit.

Posted on 2007-04-11
4
Medium Priority
?
1,076 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
[X]
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
4 Comments
 
LVL 8

Accepted Solution

by:
frashii earned 1500 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

730 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