LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-30-2009, 01:26 AM   #1
orlovs
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
Ubuntu 9 filename length


I'm new to linux and i hope you could help me.

How will i increase the length of filename that the linux ubuntu OS can handle? The filename length that i am creating works on windows. How come its not working in Linux. Please Help...
 
Old 07-30-2009, 01:58 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,489

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
Hi and welcome to LinuxQuestions!

The maximum filename length depends on the filesystem. In ext3 the limit is 255 bytes, good enough for every file name you can think of! What do you mean for "it's not working in Linux"? Can you provide a real case with error messages?
 
Old 07-30-2009, 02:27 AM   #3
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 300
Blog Entries: 4

Rep: Reputation: 52
Just remember it's case sensitive.
 
Old 07-30-2009, 03:17 AM   #4
orlovs
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
Hi and welcome to LinuxQuestions!

The maximum filename length depends on the filesystem. In ext3 the limit is 255 bytes, good enough for every file name you can think of! What do you mean for "it's not working in Linux"? Can you provide a real case with error messages?
thnx for the fast reply. anyways,
here is the filename that i have :

everything.jsp_Q_browserId=firefox&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBun dleId=javascript.everything.files&t=1249034302000

when i tried to make that as a filename of my file, it brings up an error message that says that the filename is too long.
 
Old 07-30-2009, 03:24 AM   #5
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,489

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
It is 151 characters long. It works on my system using ext3. Which filesystem are you working on?

Anyway, note that it's not a good idea to create a file with ampersands &. You can manage them using single quotes or escaping \&, but it's not safe: if you forget quotes or escapes the shell tries to run some commands in background, even if in this case they will be just assignment statements: themeId=controlpanel, colorSchemeId=01 and so on.
 
Old 07-30-2009, 03:45 AM   #6
orlovs
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
It is 151 characters long. It works on my system using ext3. Which filesystem are you working on?

Anyway, note that it's not a good idea to create a file with ampersands &. You can manage them using single quotes or escaping \&, but it's not safe: if you forget quotes or escapes the shell tries to run some commands in background, even if in this case they will be just assignment statements: themeId=controlpanel, colorSchemeId=01 and so on.
im also using ext3 . but theres an option to encrypt the home directory and did it. Do you think this is the problem? By the way im using ubuntu 9.04
 
Old 07-30-2009, 03:57 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,489

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
Yes. It could be related to encryption, as explained in recent kernel's release notes. Here is an excerpt from http://www.kernel.org/pub/linux/kern...ngeLog-2.6.29:
Quote:
Because filename encryption expands the length of the filename during the
encoding stage, eCryptfs will not properly handle filenames that are
already near the maximum filename length.
 
Old 07-30-2009, 04:02 AM   #8
orlovs
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
Yes. It could be related to encryption, as explained in recent kernel's release notes. Here is an excerpt from http://www.kernel.org/pub/linux/kern...ngeLog-2.6.29:
I'm currently installing a new Ubuntu but didn't encrypt my home anymore. I hope it would work.

Anyways, thanks a lot for helping me. I'll let you know if it works.
 
Old 07-30-2009, 05:14 AM   #9
pustakaonline
LQ Newbie
 
Registered: Dec 2005
Location: Jakarta, Indonesia
Distribution: Linux Red Hat 4 Enterprise
Posts: 1

Rep: Reputation: 0
new bee

I am new in linux.. i am using ubuntu 9.04 jaunty... it's very nice, but i have using windows for a long ago, so when i migrate to linux, i should learn hard.... hmm.... difficult but nice...

go open source... ubuntu... go ahead......
 
  


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
Please help fix: sky2 error: rx length error: status 0x42c0500 length 600 trapix22 Linux - Wireless Networking 1 10-25-2008 07:50 AM
Change name of backup file in ext3 from filename~ to .filename~ Libu Linux - General 2 07-21-2008 09:29 PM
Convert static library (Filename.a) to dynamic shared object (filename.so) afx2029 Linux - Software 4 08-17-2007 06:07 AM
Character encoding problem for filename in ubuntu xenthos Linux - General 1 03-22-2006 12:59 PM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 04:33 AM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
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