[svlug] no space
Morten S. Nielsen
msn at ipl.dtu.dk
Sat Mar 17 14:30:01 PST 2001
On 16-03-2001 at 00:54, Aaron T Porter wrote:
>
> Yes and no. Inodes are allocated when a filesystem is created
> based on a user supplied ratio. On most Linux installs, the
> default is 1 inode for each 4kb of disk space. So removing lots of
> small files will get you lots farther than deleting a few large
> ones. Unfortunately, there's no way to go back and allocate more
> inodes. If you intend on filling this partition up with more small
> files, you're going to need to reformat it.
One option could be to make a file to be mounted via loopback - eg. put
the manpages or maybe locale settings in a large file eg.
/usr/man.filepartition and then mount this file via
(make it by
dd if=/dev/zero of=man.filepartition bs=1024 count=<no of kB>"
/sbin/mke2fs man.filepartition
)
mount -o loop /usr/man.filepartition /usr/man
or via. fstab:
/usr/man.filepartition /usr/man ext2 loop 1 1
I don't know which partition type could be the best for this purpose, but
it might be nice to be able to resize the file, but here I chose ext2.
I definately only would do it on non-essential data since not all kernels
have loopback support. Although it's just a question of recompilation of the
kernel.
PS.: I messed up the reply so the mail went to Aaron Porter instead of the
list so it might be a little late answer...
--
- The Penguin's 1. We are better together than alone
- Postulate 2. If you push something hard enough it will fall over
- Morten S. Nielsen Dept. of Manuf. Engineering and Management
- mailto:msn at ipl.dtu.dk Building 425, 2. floor, DK-2800 Lyngby
More information about the svlug
mailing list