Disk Quotas

Robert Locke rlocke at ralii.com
Sun Jul 11 20:08:59 UTC 2004


On Sat, 2004-07-10 at 07:56, Kostas Sfakiotakis wrote:
> I have a couple of questions regarding Disk Quotas .
> 
> The First Question is , what is really happening when
> During the boot proccess the message "Enabling File System Quotas"
> is printed ?

if [ -x /sbin/quotaon ]; then
    action $"Enabling local filesystem quotas: " /sbin/quotaon -aug
fi

> 
> Because in a Fedora Core 1 full installation , the only thing that is
> not happening is Enabling File system Quotas . That is repquota on any
> File system that i have will report , that Quotas are off ? So what is 
> really
> going on there ?

It is turning on quotas on filesystems where quotas are enabled....

> 
> The Second Question would be who can someone create the
> aquota.user and aquota.group files for the very first time ?
> 
> #requota -c  will create the aquota.user file regardless if such
> a file previously existed , is corrupted or whatever happens to it.
> 
> Finally the last question is how can someone enable file system
> Quotas on the root file system  ?
> 
> Am using Fedora Core 1 with kernel 2.4.26

Let's recap, step-by-step:

1) vi /etc/fstab
   Modify the "filesystem" options to include either "usrquota" or
"grpquota" (usually has defaults).
2) mount -o remount "filesystem"
3) quotacheck -cM "filesystem"
4) quotaon "filesystem"
5) edquota "username" or look up setquota

> 
> 
> Kind Regards,
>    Kostas
> 
> 
> 

--Rob





More information about the users mailing list