Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to give quota for each user on my linux box, so that each one will get only specified amount of disk space.

share|improve this question

migrated from Aug 17 '10 at 14:12

This question came from our site for professional and enthusiast programmers.

Ideally you will have /home as a separate partition. If you do, try this:
Find the filesystem for /home, for example:
mount | grep "/home"
/dev/sda3 on /home type ext3 (rw,noatime,errors=remount-ro)
mount -o remount,quota /home
quotacheck /dev/sda3
edquota username
Set the soft and hard quotas in there. This will only apply for the current boot, to make it survive a reboot edit /etc/fstab and add ",quota" to the end of the mount options for /dev/sda3 (in this example).

share|improve this answer

Fredley tutorial is kinda out of date. This one is the one you need: Quota Mini Howto

Basically you need to enable quotas on /etc/fstab and configure the quotas using the quota tools (edquota, mainly). Is also cool to configure quotacheck as a cron job.

Remember that quota is enabled per filesystem, so if you have 3 different partitions you have to enable and edit the quotas on each one of them. Just read the howto carefully and you will be set.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.