copying or moving a file: name too long

Bug #560600 reported by marcgenou
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: nautilus

I found this behavior in nautilus package but it seems to come from cp and mv commands

When I try to copy or move a file with a long name (from a ntfs partition) it shows the following error (terminal or nautilus):

cp: no se puede crear el fichero regular «/home/XXX/Música/Yoko Kanno/ハチミツとクローバー オリジナル·サウンドトラック/菅野よう子-「ハチミツとクローバー」オリジナル・サウンドトラック-14-魔法のコトバ(instrumental version~Don’t worry about the candy).mp3»: Nombre de archivo demasiado largo
cp: no se puede crear el fichero regular «/home/XXX/Música/Yoko Kanno/Turn A the concert/菅野よう子-ターンA the concert-01-White Falconメドレー;Girls rule|おんどりのように|Moon|Drum Head|Cricket|地よりはずめと.mp3»: Nombre de archivo demasiado largo

In english: file name too long
Description: Ubuntu lucid (development branch)
Release: 10.04
Nautilus 2.30
All packages updated

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nautilus 1:2.30.0-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Apr 11 12:20:26 2010
ExecutablePath: /usr/bin/nautilus
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
 LANG=es_ES.utf8
 SHELL=/bin/bash
SourcePackage: nautilus

Revision history for this message
marcgenou (marcgenou) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

the error is coming from cp, reassigning to coreutils for now.

affects: nautilus (Ubuntu) → coreutils (Ubuntu)
Changed in coreutils (Ubuntu):
importance: Undecided → Low
Revision history for this message
Richard Lamont (richard-lamont) wrote :

I'm getting this too, with both nautilus and cp, when copying long filenames from an ext3 backup disc.

Description: Ubuntu Lucid (as released 29/04/2010, alternate i386 desktop install CD)
Release: 10.04
coreutils: 7.4-2ubuntu2

Changed in coreutils (Ubuntu):
status: New → Confirmed
Revision history for this message
dee (boardwize) wrote :

I'm also getting this , when copying files from an old Ubuntu ext4 partition to my new Lucid ext4 partition using Nautilus:

tags: added: regression-release
Revision history for this message
C de-Avillez (hggdh2) wrote :

@all: what filesystem type are you copying to?

@Richard: did it work before Lucid, from the same source and target filesystems?

Revision history for this message
C de-Avillez (hggdh2) wrote :

On most filesystems, a filename cannot be greater than 255 bytes. Unicode filenames... I am not sure. Researching.

tags: removed: regression-release
Revision history for this message
C de-Avillez (hggdh2) wrote :

hum. bits/stdio_lim.h states FILENAME_MAX == 4096. So this has to be a limitation imposed over the FS.

Revision history for this message
Eric van der Vlist (vdv) wrote :

I have the same issue when I try to copy files from an old ext3 partition on an ext4 partition with rsync (under Ubuntu 10.10).

The filenames are under the 255 characters limit (one of them for instance is 252 characters long) and do not contain non ASCII characters.

Revision history for this message
Eric van der Vlist (vdv) wrote :

In my case, this is due to the fact that I am using an encrypted home directory and this is documented as bug #344878 (the same copy works fine when done on a regular partition).

If this the case for the other people reporting this issue, this should be marked as a duplicate of bug #344878!

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

"File name too long" error while trying to copy a long-named .pdf file into an ecrypted directory. This is still an issue (?), right?

Revision history for this message
Veikko Mäkelä (veikk0.ma) wrote :

I also get this error when copying a file with a long name. The file in question resides on a LUKS-encrypted EXT4 partition an external hard disk. I'm trying to copy it over to my encrypted home directory (EXT4 with LUKS & LVM).

It seems to me that this is a duplicate of bug #344878, so I'm marking it as such.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.