Click here to view code image
matthew@seymour:~$ sudo mount -o ro,remount partition_to_be_remounted
mount_point
The underlying console tools (all of which have man pages) are as follows:
quotaon and quotaoff—Toggle quotas on a partition
repquota—Provides a summary status report on users and groups
quotacheck—Updates the status of quotas (compares new and old
tables of disk usage); run after fsck
edquota—Enables basic quota management
Manually Configuring Quotas
Manual configuration of quotas involves changing entries in your system’s
file system table, /etc/fstab, to add the usrquota mount option to the
desired portion of your file system. As an example, in a simple file system,
you can enable quota management like this:
Click here to view code image
LABEL=/ / ext3 defaults,usrquota 1
1
You can also enable group-level quotas by using the grpquota option. As
the root operator, you must then create a file named quota.user using our
example content shown above.
Click here to view code image
matthew@seymour:~$ sudo touch /quota.user
You should then turn on the use of quotas by using the quotaon command:
Click here to view code image
matthew@seymour:~$ sudo quotaon –av
You can then edit user quotas with the edquota command to set hard and
soft limits on file system use. The default system editor (vi unless you
change your EDITOR environment variable) is launched when editing a
user’s quota.
Users can find out what their quotas are with the following:
Click here to view code image
matthew@seymour:~$ quota –v