?
Solved

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

Posted on 2010-09-22
2
Medium Priority
?
1,477 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
2 Comments
 
LVL 4

Accepted Solution

by:
1oo4 earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

809 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