Solved

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

Posted on 2010-09-22
2
1,279 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 500 total points
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

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,…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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.:
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.

728 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

11 Experts available now in Live!

Get 1:1 Help Now