The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get the no of files from a particular directory in UNIX? psiva_arul UNIX for Advanced & Expert Users 3 04-16-2008 11:12 PM
tarring/compressing files in Unix directory montski Shell Programming and Scripting 1 02-15-2008 01:19 PM
unix command/s to find files older than 2 hours in a directory Presanna Shell Programming and Scripting 6 11-20-2007 06:22 AM
Want to remove files from unix directory yogi_chavan HP-UX 1 08-12-2005 01:27 PM
moving files from a unix directory to a windows directory gleads UNIX for Dummies Questions & Answers 2 08-29-2002 05:42 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-19-2002
BAM BAM is offline
Registered User
 

Join Date: Jan 2002
Location: Lebanon
Posts: 34
2048 files/directory in Unix Sco ?

I found my directories to be filled with 2048 files.
The number of files per directory is not exceeding this number.

Is this the default and what should i do to increase it?

Regards
Forum Sponsor
  #2  
Old 12-19-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What version of SCO?

How is your disk partitioned? Is this problem on all filesystems or just one (If you only have one partition, please state that)?
  #3  
Old 12-19-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
I am not a SCO expert, but I have an account on SCO box. My shell is ksh so I just tried:
mkdir xxx
cd xxx
x=1
while (( x< 3000 )) ; do
touch $x
done
ls| wc -l

I got 2999, so SCO supports more that 2048 files in a directory.

By typing "man mount", I can see that SCO supports many different filesystem types including AFS, DOS, DTFS, HS, HTFS, ISO9660, LMCFS, NFS, NUCAM, NUCFS, RCKRDG, S51K, and XENIX. That man page sent me to "man fstyp" where I learned how to see what type of filesystem I am using.

So I did a "df -k ." and found that the mount point of the filesystem containing my directory is /dev/dss. Then I did a "/etc/fstyp /dev/dss" and found that my filesystem type is "HTFS".

My guess it that you are using some other filesystem type than HTFS. And with names like DOS and XENIX, I can believe that some supported filesystem might limit a directory to only 2048 files. If my guess is right, you will need to switch to a better filesystem.
  #4  
Old 12-22-2002
BAM BAM is offline
Registered User
 

Join Date: Jan 2002
Location: Lebanon
Posts: 34
Quote:
Originally posted by Perderabo
I am not a SCO expert, but I have an account on SCO box. My shell is ksh so I just tried:
mkdir xxx
cd xxx
x=1
while (( x< 3000 )) ; do
touch $x
done
ls| wc -l

I got 2999, so SCO supports more that 2048 files in a directory.

By typing "man mount", I can see that SCO supports many different filesystem types including AFS, DOS, DTFS, HS, HTFS, ISO9660, LMCFS, NFS, NUCAM, NUCFS, RCKRDG, S51K, and XENIX. That man page sent me to "man fstyp" where I learned how to see what type of filesystem I am using.

So I did a "df -k ." and found that the mount point of the filesystem containing my directory is /dev/dss. Then I did a "/etc/fstyp /dev/dss" and found that my filesystem type is "HTFS".

My guess it that you are using some other filesystem type than HTFS. And with names like DOS and XENIX, I can believe that some supported filesystem might limit a directory to only 2048 files. If my guess is right, you will need to switch to a better filesystem.
Thanks a lot.
I am sorry i am replying late.

Actually my directories contain far beyond 2048 files.
I was using ws_ftp client to access my sco boxes and it seems
the windows in that program only show you 2048 files.

it was a silly listake, afterthat i tried on the unix shell the command ls | wc to check how many files i have and they are far beyond 2048.

and yes fstyp gave me HTFS.

thanks again.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0