Filename too long issue...

Status
Not open for further replies.

fffblackmage

Platinum Member
Dec 28, 2007
2,548
0
76
I was moving some files over to my new Samsung F4 2TB formatted as NTFS with GPT instead of the usual MBR. A few files could not be copied over due to an error stating the filenames were too long. I thought it is the file system that limits the length of the filename, not GPT or MBR. What's going on here?
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
I don't know about GPT or MBR affecting it... but i know that file system is not the only issue...
there is file system, OS, the file copy program used (the OS's built in one, or a custom one used in certain tools, like backup programs, then there are sometimes different systems for different actions, such as copying over a network)...
so anyways, its not just a matter of FS.

You know, I am curious to know if NTFS compression could affect it as well, I never heard of it making a difference, but knowing how it works I theorize that it would... Anyone knows?

PS. just an FYI, the "filename too long" error means that filename + directory names are too long... the full filename is something such as:
C:\Games\Data\Saves\Blah blah blah.sav

So if you copy a file from "C:\Games" to "C:\Mybackups\Taltamirs backups\games" you might have this error purely because the directory and subdirectories total length is longer. This was an issue for me which is why I always backup to a shorter named folder than the original folder.

PS. seriously, why is there no "do not parse emoticons" checkbox anymore? there used to be one and it essential!
 
Last edited:

Voo

Golden Member
Feb 27, 2009
1,684
0
76
there is file system, OS, the file copy program used (the OS's built in one, or a custom one used in certain tools, like backup programs, then there are sometimes different systems for different actions, such as copying over a network)...
so anyways, its not just a matter of FS.
Yep, it just depends if the used API was updated to work with NTFS constraints or still just checks if path is greather than MAX_PATH. Which means using a program that uses an API that was written in the last decade should do the trick..
 

fffblackmage

Platinum Member
Dec 28, 2007
2,548
0
76
I don't know about GPT or MBR affecting it... but i know that file system is not the only issue...
there is file system, OS, the file copy program used (the OS's built in one, or a custom one used in certain tools, like backup programs, then there are sometimes different systems for different actions, such as copying over a network)...
so anyways, its not just a matter of FS.

PS. just an FYI, the "filename too long" error means that filename + directory names are too long... the full filename is something such as:
C:\Games\Data\Saves\Blah blah blah.sav
Actually, the two locations are identical except for the drive letter. Sorry I didn't make this clear in my original post.

So... C:\Games\Data\Saves\Blah blah blah.sav is being copied to D:\Games\Data\Saves\Blah blah blah.sav, but I'm still getting that filename is too long error.


ROFL.... This is just stupid. I plopped the file I'm having trouble moving into a zip, renamed it, moved the zip to the new location, and unpacked it. No filename is too long error message. WTF?

So basically, Windows just doesn't like moving/copying files with long filenames?
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
yap, your FS is fine with the file name, the windows explorer file copy algorithm is the one with the problem...
mmm, what OS are you using? windows XP? wind 7?
 

fffblackmage

Platinum Member
Dec 28, 2007
2,548
0
76
I'm using Windows 7 Pro x64.

And I just realized I didn't need the zipping part.... Could probably have just renamed it and changed it back afterwards.
 
Last edited:

Emulex

Diamond Member
Jan 28, 2001
9,759
1
71
teracopy dude. avoid the cmd line it brings with it legacy restriction.

7zip works too esp 64bit
 

RebateMonger

Elite Member
Dec 24, 2005
11,588
0
0
A client has an SBS 2003 server with tens of thousands of files with ultra-long path names. Windows Explorer refuses to copy them. When I need to copy or move the files, I use MS' Robocopy command-line.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
A client has an SBS 2003 server with tens of thousands of files with ultra-long path names. Windows Explorer refuses to copy them. When I need to copy or move the files, I use MS' Robocopy command-line.


Yep, Explorer's artificial restrictions are a pretty big fail.
 

Emulex

Diamond Member
Jan 28, 2001
9,759
1
71
yeah and use the verify option - i've copied 1TB of 7z/rar files over to have them fail. not sure why - so i use the teracopy verify option now - it's slower but i've not seen an issue since. if an issue did come up i would know. knowing is half the battle
 

fffblackmage

Platinum Member
Dec 28, 2007
2,548
0
76
That's exactly why I love it. I already moved about 500GB of crap from my aging 500GB internal HDD before you mentioned Teracopy, but now I'm using the verify feature to make sure everything copied over ok. I've have many instances of files failing CRC checks after moving things to my external HDDs, so this is a really nice feature.

Only one more problem remains for me... I'm getting weird random pauses during the verify. This also happened before I installed Teracopy and when I was moving data from my 500GB HDD to my new 2TB HDD. Normally, I don't move over so many files and so much data in one sitting, so this hasn't happened before. But since I am moving so much stuff, this "stuttering" is making this verify process much longer than it needs to be.... not sure if this also happens for copying things using Teracopy, since I haven't tried yet.
 
Last edited:

Mark R

Diamond Member
Oct 9, 1999
8,513
14
81
There is a long path API in windows, but because of the compatabiliy probs that can arise, it is little used (and poorly supported - e.g. Even .NET 4 has no long path support)

That doesn't stop some software trying to mitigate things. E.g. Windows explorer tends to use the old DOS style short names (e.g. PROGRA~1) for directories internally, but only shows the normal file name/ directory name. This doesn't always work (e.g. When creating a new directory, you have to give the full name) so you get the bizarre phenomenon that files can be accessed without difficulty but can't be copied.
 

Puffnstuff

Lifer
Mar 9, 2005
16,038
4,800
136
Meh old or not this problem still persists today in windows 10 and I see it on a regular basis. I've had to pare down directory and subdirectory names along with shortening file names to transfer them.
 

Shmee

Memory & Storage, Graphics Cards Mod Elite Member
Super Moderator
Sep 13, 2008
7,543
2,542
146
Parted Magic? Linux boot?
 

jkauff

Senior member
Oct 4, 2012
583
13
81
My favorite file manager, Total Commander, gives you a warning about long file names--simply that some programs might not be able to access the file--and then allows you to continue, skip, or rename the file. As usual for TC, the best approach to the problem.
 
Status
Not open for further replies.
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |