[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quota file format
On Thu, 10 Apr 1997, Tuvik Beker wrote:
> Evgeny Stambulchik wrote:
>
> > Compile quota support into the kernel, mount a partition with the
> > "usrquota,grpquota" option, run once `quotacheck -avug' and `quotaon -avug'.
> >
> > Now try running edquota and see if there remain any questions...
>
> Thanks for your help, Evgeny.
> All this has been done, except for the "usrquota,grpquota" options,
> which are ignored anyhow (see man page of mount(8) ). I tried to add
> them nevertheless, but this didn't change anything, as expected.
> I'm afraid the same questions still remain:
> 'edquota ' gives me a blank file to edit (except for the first line,
> which states 'quotas for user xxx:'). When I try to edit it in any of
> the formats I know it just has no effect - I do not see it translated to
> a binary (should it be stored in the root dir of the fs, or somewhere
> else?), and no quota is set for the user...
Hi Tuvik,
Actually, to test your claim, I took a Linux using a very patched
Slackware 3.1.0(Dec release), with quota support in the kernel, and did
the following:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> dump pass
/dev/hdc1 / ext2 defaults,usrquota 1 1
/dev/ram /tmp ext2 defaults,async 0 0
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/hdc3 /usr ext2 defaults,usrquota 1 2
/dev/hdc6 /usr/local ext2 defaults,usrquota 1 2
/dev/hda3 /home/fireball ext2 defaults,nodev,usrquota 1 2
/dev/hdc2 /ftp/pub/linux ext2 defaults,nodev,nosuid 1 2
/dev/hdc5 /usr/local/backups ext2 defaults,usrquota,nodev 1 2
/dev/hda1 /vol ext2 defaults,nodev,usrquota 1 2
/dev/hdd /cdrom iso9660 ro,nodev,nosuid,noauto 0 0
/dev/fd0 /floppy minix rw,nodex,nosuid,noauto 0 0
/dev/fd0 /dosfloppy msdos rw,nodex,nosuid,noauto 0 0
I only added usrquota. Now, I did mount -a, which in fact does nothing,
but I did it anyway, and then I did quotacheck -avug . This has started a
process that went over all the filesystems that are with the usrquota
flag, and processed the files on them. Then, I did quotaon -avug, which
has given me:
bash# quotaon -avug
/dev/hdc1: user quotas turned on
/dev/hdc3: user quotas turned on
/dev/hdc6: user quotas turned on
/dev/hda3: user quotas turned on
/dev/hdc5: user quotas turned on
/dev/hda1: user quotas turned on
Then, I did edquota ariel, and voilla :
Quotas for user ariel:
/dev/hdc1: blocks in use: 0, limits (soft = 0, hard = 0)
inodes in use: 11, limits (soft = 0, hard = 0)
/dev/hdc3: blocks in use: 1209, limits (soft = 0, hard = 0)
inodes in use: 66, limits (soft = 0, hard = 0)
/dev/hdc6: blocks in use: 0, limits (soft = 0, hard = 0)
inodes in use: 0, limits (soft = 0, hard = 0)
/dev/hda3: blocks in use: 65200, limits (soft = 0, hard = 0)
inodes in use: 1502, limits (soft = 0, hard = 0)
/dev/hdc5: blocks in use: 0, limits (soft = 0, hard = 0)
inodes in use: 0, limits (soft = 0, hard = 0)
/dev/hda1: blocks in use: 0, limits (soft = 0, hard = 0)
inodes in use: 0, limits (soft = 0, hard = 0)
So, it basically works, no fuss and nothing to do really. So, maybe try
and see what might have been wrong with the way you did it, and see if
this helps. (it definetly shows that it works).
Regards,
--Ariel
>
> What is the exact format to be used? Or is it something else I might
> still be doing wrong??
> Above all - is quota setting part of a secret cult? Why isn't it
> documented anywhere????
>
> Tuvik
>
> --
> _______________________________________
> Tuvik Beker
> becket@shum.huji.ac.il
> Tel. 03-5711685 Fax. 03-5334349
> _______________________________________
>
+---------------------------------------------------------+
| Ariel Biener |
| e-mail: ariel@post.tau.ac..il Work ph: 03-6406086 |
+---------------------------------------------------------+
References: