Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

On an ext4 (or another non-XFS) filesystem, Ubuntu user quotas require four stages: enable a user-quota mount option in /etc/fstab, remount the filesystem, create and enable quota data, and assign limits with setquota. Verify the result with quota and repquota. XFS is different: quota accounting and enforcement are enabled at mount time and quota data is kept inside the filesystem, so you do not create aquota.user files or use quotaon for activation.

What an Ubuntu disk quota controls

A quota limits storage consumption on a particular mounted filesystem. A user quota can restrict the amount of space a user allocates (a block or byte limit) and, independently, the number of filesystem objects the user creates (an inode or file-count limit). Quotas apply to the filesystem where the files are stored, not automatically to every filesystem the user can access.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Two limits can be set for each resource:

  • Soft limit: the normal threshold. A filesystem can allow usage above it during the configured grace period.
  • Hard limit: the absolute allocation ceiling. Once reached, further blocks or inodes are rejected, subject to filesystem and application behavior.

Quota scope can be per user, per group, and, on filesystems and tools that support it, per project. The procedure below focuses on per-user limits on Ubuntu.

Check the filesystem and mount point first

The quota commands must target the actual mounted filesystem. Do not assume that /home is a separate partition: on many installations it is a directory inside the root filesystem. Run:

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
findmnt -no FSTYPE,TARGET

Identify the filesystem containing the directory you want to restrict. The output tells you both its type and mount point. Use that mount point consistently in the remaining commands. If users’ home directories are on a separate /home mount, use /home; if they are on the root mount, use the root mount point shown by findmnt.

The filesystem type determines the implementation:

Filesystem Quota data and activation Correct approach
ext4 and other non-XFS filesystems supported by the quota utilities External quota files at the filesystem root, such as aquota.user for version-2 user quotas Add a user-quota mount option, run quotacheck, then enable with quotaon
XFS Quota information is filesystem metadata and uses journaling for consistency Enable XFS user accounting and enforcement in the mount options; use XFS quota tooling afterward

Set up user quotas on ext4 and other non-XFS filesystems

1. Install the quota utilities

Install the package that provides quotacheck, quotaon, setquota, quota, and repquota:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt install quota

Use the quota commands supplied by the installed Ubuntu package. Their exact option set can vary with package version, so check the local manual page if an option is rejected.

2. Back up and edit /etc/fstab

Make a copy of the mount configuration before changing it:

sudo cp /etc/fstab /etc/fstab.quota-backup

Open the file:

sudoedit /etc/fstab

Find the entry for the target filesystem and add usrquota to its comma-separated mount options. For example:

UUID=...  /home  ext4  defaults,usrquota  0  2

Preserve the existing UUID, filesystem type, dump value, and filesystem-check order. Add the option to the entry for the filesystem that actually stores the users’ data; adding it to an unrelated mount will not limit their home directories.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Remount the filesystem

Apply the new option without a reboot when the mount permits remounting:

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
sudo mount -o remount /home

Replace /home with the mount point you identified. If the target is the root filesystem, use its mount point and follow your normal change-control procedure; a reboot may be preferable when a remount is not safe or is refused. Confirm the active options with:

findmnt -no FSTYPE,OPTIONS,TARGET /home

The output should show the user-quota option on the target mount. If it does not, correct /etc/fstab and remount again before running a quota scan.

4. Create or refresh quota data with quotacheck

For a non-XFS filesystem, scan the mounted filesystem and create/check user quota data:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo quotacheck -cum /home

The command in this workflow requests creation or checking of user quota data while scanning the mounted filesystem. Run it when filesystem contents are relatively stable; heavy concurrent writes can make the scan’s accounting immediately stale or produce avoidable inconsistencies. Follow the option syntax supported by the quota package installed on the host.

Version-2 user quota data is normally stored at the filesystem root in a file named aquota.user. Do not create that file manually on XFS. If the scan reports that the filesystem is not quota-enabled, stop and troubleshoot the mount options instead of repeatedly rerunning the scan.

5. Enable user quotas

Activate and report user quotas for the selected filesystem:

sudo quotaon -v /home

The verbose output should indicate that user quotas were enabled. Check the state explicitly:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
sudo quotaon -p /home

For an administrator-wide view of enabled filesystems, use:

sudo quotaon -av

6. Assign a user’s limits

setquota accepts the user, block soft limit, block hard limit, inode soft limit, inode hard limit, and filesystem. This example assigns limits to user alice on /home:

sudo setquota -u alice 1048576 1258291 0 0 /home

The two first numeric values are the block soft and hard limits. The two zero values leave inode limits unset in this example. Select values that match your policy and the units expected by the installed quota tools; do not copy the example numbers blindly. To enforce a file-count limit as well, replace the inode zeros with the desired soft and hard limits.

Set limits only after quota accounting is active. Otherwise, a successful-looking command can leave you with a configuration that is not enforced on the mounted filesystem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

7. Verify the result for the user and filesystem

Inspect one user’s usage and limits:

sudo quota -u alice

The quota command displays the user’s disk usage and limits for the filesystems where quotas are available. For an administrator-oriented report covering the filesystem, run:

sudo repquota -u /home

Check all of the following before handing the system to users:

  • The expected mount point appears in quota output.
  • The configured soft and hard values are shown for alice.
  • Current usage is plausible compared with an independent filesystem listing.
  • quotaon -p /home reports user quotas enabled.
  • A controlled test confirms that approaching the hard limit produces the expected allocation error, without risking production data.

Choose block and inode limits deliberately

Space limits and file-count limits solve different problems. A user can consume a large amount of capacity with a few large files, or exhaust available inodes with millions of tiny files while using relatively few bytes. Consider both resources when the workload is not known.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Resource Protects against Typical policy question
Blocks (space) Disk capacity consumed by file contents and filesystem allocations How much storage may this user occupy?
Inodes (file count) Directory and metadata exhaustion caused by very many files How many files, directories, links, or other objects may this user create?

A soft limit below a hard limit gives users warning and time to remove data or request an increase. A hard limit prevents growth beyond the ceiling. If you set a soft limit but no grace policy is configured, behavior above that threshold depends on the filesystem’s quota configuration; document the local policy and observe it with quota.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Group and project scope

The quota system can also represent limits for a group and, where supported, a project. Group quotas are useful when several accounts share a departmental allocation. Project quotas are useful for a tree of data that should be limited independently of its owning users, but their availability and commands depend on the filesystem and Ubuntu tooling.

Use the corresponding setquota mode and verify with the matching reporting mode only after confirming that the target filesystem supports that scope. A user quota does not automatically become a group or project quota, and changing ownership does not transfer already-accounted usage in the way a storage administrator might expect.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

XFS: enable quotas at mount time

XFS is a special case. It stores quota information as filesystem metadata and uses journaling to provide a higher consistency guarantee. The external quota-file workflow for ext4 is therefore the wrong procedure.

Enable accounting and enforcement in the mount configuration

Edit the XFS entry in /etc/fstab and add the XFS user-quota mount option required by your Ubuntu release and local XFS tooling. The option must enable both user accounting and limit enforcement. Apply it with a remount when supported or reboot according to the host’s maintenance policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Because XFS enables quotas through mount or /etc/fstab, do not try to activate it with quotaon, and do not create aquota.user files at the filesystem root.

Use XFS quota tools after activation

Once the mount reports XFS user-quota accounting as active, use the documented XFS quota format and XFS quota tooling to set and report user limits. Confirm the active mount options and consult the installed XFS tool’s manual for the exact command syntax before applying limits. The generic quotacheck scan is not the initialization step for XFS.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Troubleshoot “filesystem is not quota-enabled”

The mount option is missing

Run:

findmnt -no FSTYPE,OPTIONS,TARGET /home

If the active options do not include the user-quota option, inspect the matching /etc/fstab line, correct the comma-separated options, and remount. Editing /etc/fstab alone does not change an already-mounted filesystem.

You targeted the wrong mount point

A path such as /home/alice may be inside a filesystem mounted at / or /home. Use findmnt to identify the mount that owns the data, then pass that mount point to quotacheck, quotaon, setquota, and repquota.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The filesystem is XFS

If findmnt reports XFS, stop using the external-file workflow. Enable XFS accounting and enforcement through the mount configuration, then use XFS quota tooling. Running quotacheck against XFS will not convert it into a non-XFS quota setup.

Quota files are absent on a non-XFS filesystem

For version-2 user quotas, the expected file is aquota.user at the filesystem root. Recheck that the filesystem is mounted with user quotas, then run the supported quotacheck command as root. Do not place the file in a user’s home directory.

Quotas appear enabled but limits do not change

  • Confirm the command used the same mount point shown by findmnt.
  • Run quotaon -p MOUNTPOINT and verify that user quotas, not only another quota class, are enabled.
  • Re-read the user’s values with quota -u USER and the filesystem report with repquota -u MOUNTPOINT.
  • Check whether the test writes data to a different mounted filesystem; a quota on /home cannot limit a separate mount under a user’s directory.
  • Re-run the accounting scan during a quiet maintenance window if usage was changing while quotacheck ran.

Operate quotas safely

Record the policy

Document which filesystem is limited, whether the policy is per user or group, the block and inode values, and how soft-limit grace is handled. Keep the policy with the system’s change records so a later administrator can distinguish an intentional limit from an accounting error.

Monitor before users hit hard limits

Schedule administrative checks of repquota and alert on users approaching their soft or hard limits. A report is more useful when it includes the mount point and date of collection, because the same username can have different usage on different filesystems.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Change or remove a limit

Use setquota again with the revised values, then verify with quota -u USER. To remove a class of limit, use the zero values supported by the installed quota utility, but confirm the resulting report; removing a limit does not delete data already stored.

Disable quotas only after planning the transition

Before removing a quota option from /etc/fstab, decide whether existing quota data must be retained for reporting. Stop enforcement using the appropriate tool for the filesystem, update the mount configuration, and remount or reboot. For XFS, use its mount-time configuration rather than non-XFS quota-file commands.

A complete ext4 example

The following sequence assumes that /home is an ext4 filesystem and that the account to limit is alice:

  1. Install the tools with sudo apt install quota.
  2. Confirm the type and mount with findmnt -no FSTYPE,TARGET.
  3. Back up /etc/fstab, then add usrquota to the /home entry.
  4. Apply the option with sudo mount -o remount /home.
  5. Create or refresh user accounting with sudo quotacheck -cum /home during a low-write period.
  6. Enable and inspect quotas with sudo quotaon -v /home and sudo quotaon -p /home.
  7. Assign the policy with sudo setquota -u alice 1048576 1258291 0 0 /home, replacing the example values with your approved limits.
  8. Verify with sudo quota -u alice and sudo repquota -u /home.

If any step reports that quotas are unavailable, return to the filesystem type and active mount-option checks. The fix is normally at that layer, not in the user’s account or home-directory permissions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.