On 24/1/2000 test wrote:
I'm using kind of linux on 386 box with 40 MB hdd (8swap+32 ext2).
It carries two modems and servers as Dialup server.
Just now I have about 8 Mb free on hdd.
But file count is nearly at its limit.
So is there any way to increase possible file count for my FS ?
Or I have to look for some other ways to not overrun file count ?
i beleive the only way to do so is by remaking the filesystem, which
will require you to backup the data and restore after you finish..
use mke2fs -i <bytes per inode>
for small filesystems the block size is 1024 bytes, and the bytes per
inode by default is 4096, if you wanted to be able to fill your disk
with only 1K files you could do
mke2fs -i 1024 and you would have 1 inode per disk block, that is
probably not necessary though..
with larger filesystems (600MB i think) and e2fsprogs 1.15 and later
the default block size is 4096 and inodes per block is 8192.
one thing you should check is that there is not some runaway process
making junk somewhere, i once had a broken MTA i was too lazy to fix
for over a year (well i did not use it ;)), well it turns out cron
was sending mail every day and it was being dumped into a queue
directory and eventually there were about 60000 files in there and i
ran out of inodes ...
Ethan