Quota setup problem

Quota setup problem

Post by Mohd-Hanafiah Abdull » Wed, 19 Aug 1998 04:00:00


I'm having problems setting up quotas on my system (kernel 2.0.33).
I invoked "edquota user1" and in the editor I typed the following:

/dev/sda2 / 1024 (soft = 4000, hard = 5000)

When I exited the editor the files quota.user remained unchanged, and when
I re-invoked edquota, the file is empty again.  I thought upon exiting edquota
it should read the temporary file and modified the binary quota files to
reflect the changes made.  I also ran "quotacheck -a" after that but it
didn't help.  What could be the problem?  Thanks.



Quota setup problem

Post by B'iche » Wed, 19 Aug 1998 04:00:00


>I'm having problems setting up quotas on my system (kernel 2.0.33).
>I invoked "edquota user1" and in the editor I typed the following:

>/dev/sda2 / 1024 (soft = 4000, hard = 5000)

A few ideas.
        1. Did you read the Quota HOWTO located in the HOWTO directory
of your Distribution?? as you seem to have forgotten a few IMPORTANT
facts. Most important is
edquota -u user1 NOTICE the -u switch, VERY imporrtant. QUOTA itself will
give you a template to change by itself. just modify the fields it gives
you and save it back to disk.
        2. for Quota to work right did you modify your fstab to enable
quota support on the volumes you want them to be active on?? your Quota
file shows how. you can also find a full HOWTO on quota (its only like 24k
or so, in  ftp://sunsite.unc.edu/pub/Linux/doc/HOWTO
might be wrong with URL but I think I am close to right.
        The HOWTO, its one of the few that does not end with the word
HOWTO. I wish they kept the names of HOWTO files consistant, ie
Quota-HOWTO. but thats not a major problem. Your Distributation  CD may
very well have this file. If you can, read through it at least once.

When a Klingon  goes to Linux.  It means one must respect the Klingons
pride and honorable decision to work their  computers to their fullest
        Linux is Proudly displayed  to all my friends. and I help  get
others going  on this powerful  alternative to the  watered down mush
served by Microslop.


1. Quotas : Format of quota.users & quota.groups ?


I am running Linux-FT with kernel 1.2.13 and quota patches. I would like
to enable quotas in order to control memory usage by apps (I'm trying to
debug an app that keeps grabbing all system memory, preventing me from
typing kill).

In order to enable quotas, files called quota.users and quota.groups
need to be present in the root directory. The 'edquota'
program is supposed to be used to set these up, but it simply invokes vi,
expecting the user to know the file format. The man pages say that
the file format is 'inscrutable', but don't actually describe it anywhere!

Anyone know the correct format ?

Thanks in advance,


| Steve Mottram                                                             |
|                                                                           |
| University Department of Anaesthesia  |    Internal Phone : LRI 5694      |
| Leicester Royal Infirmary             |    Phone  :  +44 (0)116 258 5291  |
| Leicester LE1 5WW                     |    Fax    :  +44 (0)116 285 4487  |

| Witty bit deleted due to budget cuts.                                     |

2. Adaptec AHA1540/1542CP installation...

3. User Quota setup & config

4. SnapGear firewall, ADSL router and backup ISDN router


6. Problem to Connect my ISP with pppd and chat

7. Quota Setup

8. Teac 4x Cdrom, anyone.....

9. setup quota

10. quota setup help

11. Setup Quota

12. quota setup

13. Setup Quotas