files limit
Hi Guys
how can we limit number of files will be created on a disk ? e.g, i have a disk with 2 partition how can i limit every partition to allow create only 10 files or directory on each partition ? thx in advance |
Hi,
I don't know how or if it can be done, take a look here (I know it's for FAT32 filesystem) and here (NTFS) Nice table layout of FS. I hope someone might have some info about Linux FS (ext..), I only found this. Btw, you could use google yourself. good luck |
Quote:
|
Quote:
What do you expect to do by limiting to 10 files on a partition? This seems to be a very low unusable number. If this was music or pictures, do you only want to allow 10 tracks or images? If you only want users to store a small amount of files, then limit the size of their partition, or their /home partition. Hope that helps. |
I think it can be done by limiting number of inodes on filesystem during creation (option -i and -I in mkfs.ext3) or implementing quotas for inodes for given account or group (for example quotatool on Ubuntu).
|
Quote:
i think limiting number of inodes is a good way i think we can do that with mkfs |
Or you might exaine the settings...
Have you looked into using the quota system?
I have used it for group, server, and virtual machine quotas, but never for what you are seeking. It might be worth taking a look at. |
Quote:
|
All times are GMT -5. The time now is 02:07 AM. |