LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-25-2004, 09:24 AM   #1
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Rep: Reputation: 15
Question file name too long??


Greetings,
I am currently using Linux RH Advanced Server V2.1 - I got this weird massage saying that the
"cp: cannot stat `./backup/cold/datafile_dir/drsys01.dbf.gz': File name too long"
from a simple copy 'cp' command. Have anyone seen this? Is there a work around for dealing with file name too long in Linux? Any feedback would be greatly appreciated it.

JB
 
Old 08-25-2004, 09:28 AM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
- What filesystem is that file on?
- Is that path a symlink?
 
Old 08-25-2004, 10:44 AM   #3
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
No, that's the actual path. Oh, I forgot to mention that I tried to straight copy from the Linux server to my SAN disks. The SAN environment hosted by an Alpha server running VMS.

Thanks,
JB
 
Old 08-25-2004, 10:47 AM   #4
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
My best guess woul be that the filesystem on those disks have some path length limitations. If possible try reducing the number of chars in the filename in the destination.
 
Old 08-25-2004, 01:41 PM   #5
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
Actually, it was my syntax on the command. I should have used "cp -R ./* /folder/folder1/junk" once I'm in the directory that I was trying to copy from. BTW, the VMS operating system has 256 characters limitation.

Thanks to ugenn for your response.

JB
 
Old 08-25-2004, 04:20 PM   #6
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
It's probably complaining your filename with the whole
path is too long. One trick, link it, i.e.,

ln -s <new name> <old name>

where <old name> = /blah/blah/blah/.../blah

Then just use <new name>.

Sheng-Chieh
 
Old 08-30-2004, 10:50 AM   #7
xmdms
Member
 
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
Thank you! I will try that.

JB
 
Old 05-25-2013, 07:41 AM   #8
GarryLowey
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
File path too long

Long Path Tool helped me in this situation
 
Old 05-25-2013, 08:06 AM   #9
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 489

Rep: Reputation: 134Reputation: 134
question was asked 9 years ago....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fts_read: File name too long angrybeaver Linux - General 2 09-07-2005 06:56 PM
creating a file with la long name on C++ poeta_boy Programming 2 07-05-2004 06:17 PM
dosfs and long file names Ipolit Slackware 3 12-08-2003 01:36 PM
Long File Names Pwcca Linux - General 1 03-05-2003 05:15 AM
Why does File Search takes so long ? tostado Linux - Software 2 09-24-2002 02:43 PM


All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration