Solved

Linux (SAMBA) and Windows 256 byte path limit.

Posted on 2007-04-11
4
1,062 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Learn about cloud computing and its benefits for small business owners.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.

815 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

13 Experts available now in Live!

Get 1:1 Help Now