Solved

How to change the maximum length of the path. Ubuntu/Samba

Posted on 2010-09-22
2
1,347 Views
Last Modified: 2012-05-10
How to change the maximum length of the path.
System: Ubuntu 10.4
File system: ext4
Serve: SAMBA

When I am copying data from the Windows server I have a problem with the length of the path and the file name.
If the length of the path and the length of the file name exceed 256 characters I receive the error message.
Or the file name is being exchanged for something in the style: ZX~45xz6



 
0
Comment
Question by:JasioS
[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 Comments
 
LVL 4

Accepted Solution

by:
1oo4 earned 500 total points
ID: 33733138
There is a filesystem level limitation on the path legth. Is can not be more that 255 in linux due to VFS limitations. You should save the file in directory with shorter path and rename the file to a shorter name.
0
 
LVL 6

Expert Comment

by:tty2
ID: 33733868
According to http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits, such filesystems as fat32, ntfs, ext3, reiserfs have 226-256 limits for filename, and no limits for pathname (excluding ntfs).
But there is a limit 260 bytes in Windows API: http://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 …
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…
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.

749 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