Solved

Linux (SAMBA) and Windows 256 byte path limit.

Posted on 2007-04-11
4
1,054 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
Comment Utility
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
Comment Utility
I'll check it out, thanks for the idea.
0
 
LVL 8

Expert Comment

by:frashii
Comment Utility
Did this work for you ?
0
 
LVL 1

Author Comment

by:poomba1
Comment Utility
Thanks, did the trick.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now