LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-01-2006, 05:25 AM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 31
weird: directory permissions change inadvertently


Just recently I have a weird problem with some of my harddisk partitions, some are in vfat and others ext2 and ext3.

Usually I boot up and login as root to do some heavy file shifting, which of course means write permissions as I'm deleting some stuff.

In the beginning it's fine (I'm in as root after all). But then I go into midnight commander for something and all of a sudden I lose write (and therefore delete) permissions to one or two of the directories, some of which are rather full, I should add.

When I "ls -l" these directories they have chmod 755 and stuff though I set to chmod 777 to make sure but still no joy.

Now, I've never understood umask, but I feel that some sort of global variable is being changed. Or else it's that these directories are too full, because this unusual dynamic effect doesn't happen with the emptier directories.

Anybody any clues? Cheers.

Last edited by stabu; 12-01-2006 at 05:26 AM.
 
Old 12-02-2006, 02:05 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Location: Va Beach
Distribution: Slackware
Posts: 1,159

Rep: Reputation: 47
If you're in the vfat directories then, yes, they can be full to a maximum number of objects for the root of the drive. eg. If /mnt/vfat is the root of one fat32 drive then it can only hold x number of objects before it's "full" regardless of how much disk space is left. I forget the exact number but x is somewhere around 128.

Ext2 and 3 are different. I don't know what the limit is for them as I've never run into it.
 
Old 12-03-2006, 06:06 AM   #3
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Original Poster
Rep: Reputation: 31
Is that right about vfat? That's a pain. I reckon there's a bucnh of people who use vfat as a Windows/Linux harddisk share on dualboot machines and don't know about that limit. Gonna check that up: not cos I don't believe you but to find out how to get around it.
 
Old 12-03-2006, 12:20 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Location: Va Beach
Distribution: Slackware
Posts: 1,159

Rep: Reputation: 47
I just found the numbers myself, and more detail than I had found in the past.

Quote:
An interesting side effect results from the way VFAT stores long filenames. When you create a long filename with VFAT, it uses one directory entry for the DOS alias and another entry for each 13 characters of the long filename. In theory, a single long filename could occupy up to 21 directory entries. The root directory has a limit of 512 files, but if you were to use the maximum-length long filenames in the root directory, you could cut this limit to a mere 24 files. Therefore, you should use long filenames very sparingly in the root directory. Other directories aren't affected by this limit.
from

http://www.microsoft.com/technet/arc...eploy/fat.mspx

The solution is to make some subdirectories.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to traverse a directory to change file permissions bskrakes Linux - Newbie 4 09-14-2006 04:38 PM
How do I change directory permissions ? cwolf78 Linux - Software 3 05-05-2005 12:15 PM
FTP Change Directory Permissions rubbercash Linux - Networking 5 07-29-2004 04:54 PM
can't change directory permissions walterbyrd Debian 7 07-24-2004 01:20 PM
How do I Change directory permissions? Stevetgn Linux - Newbie 8 06-09-2004 12:09 AM


All times are GMT -5. The time now is 06:55 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
Open Source Consulting | Domain Registration