Solved

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

Posted on 2010-09-22
2
1,309 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
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nagios monitor 3 54
Video Streaming 6 73
Rate limit for DNS queries 7 75
Web resource - Man pages for SUSE Enterprise Linux 11 1 25
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,…
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…
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.

772 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