The original posting was :
> Hello managers,
>
> I'm trying to remove some unused files form my root partition on a 4.0d
> system.
>
> When I look at the / directory , I find a 2Mb quota.user file when I'm
> not running any quota.
> On other file systems this file is only 100Kbytes.
>
> The quota.* files seem to be unremovable, but is it possible to shrink
> them to a minimum size when they are not used ?
Thank you to :
Alan Davis
davis_at_tessco.com
The quota files are part of the filesystem and can't be removed. This
isn't
an issue, however, because they are "sparse" files that use only the actual
disk blocks required to map the quotas for the number of users on the
system. If you use the 'ls -ls' command to list the number of 512byte
blocks
actually in use by the file you will see that the space used is much less
then is shown by the "number of bytes" column in the ls -l listing. The
file
is "sized" based on the highest UID on the system, but only populates the
data for actual UID's in use.
When you are cleaning up, you shouldn't remove anything that is listed in
the ".inv" file for installed subsets or the files that are listed in the
.inv files as ".proto..<file>". The .inv files are found in /usr/.smdb. and
the file format is documented in the stl_inv manpage.
and
Chris Adams <cmadams_at_hiwaay.net>
The size of the file shouldn't be a problem. Its size is based on the
highest user ID (from /etc/passwd). However, if you have skipped a
block of users (for example, if there are no users from 100 to 1000),
there is a "hole" in the file. So, while "ls" says it is one size, it
actually takes up less disk space.
--
Received on Sun Dec 17 2000 - 17:08:33 NZDT