Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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 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.

856 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