Enabling Quotas on Linux Server - Troubleshooting the "Filesystem Does Not Support Quotas" Error

Enabling Quotas on /home Directory

Question

A systems administrator is enabling quotas on the /home directory of a Linux server.

The administrator makes the appropriate edits to the /etc/fstab file and attempts to issue the commands to enable quotas on the desired directory.

However, the administrator receives an error message stating the filesystem does not support quotas.

Which of the following commands should the administrator perform to proceed?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

https://www.tecmint.com/set-filesystem-disk-quotas-on-ubuntu/

The error message "the filesystem does not support quotas" indicates that the filesystem on which the /home directory is located does not have quota support enabled. To enable quotas on a filesystem, it must be mounted with the appropriate options in the /etc/fstab file.

The first step is to edit the /etc/fstab file and add the appropriate options to the line for the filesystem on which the /home directory is located. Typically, the options for enabling quotas are "usrquota" and "grpquota". For example, the line in /etc/fstab for the filesystem on which the /home directory is located might look like this:

bash
/dev/sda1 /home ext4 defaults,usrquota,grpquota 0 2

After making the changes to /etc/fstab, save the file and run the following command to remount the filesystem with the new options:

bash
mount -o remount /home

Next, run the quotacheck command to scan the filesystem and create the necessary quota files:

bash
quotacheck -cg /home

The -c option tells quotacheck to create new quota files if they don't already exist, and the -g option tells it to check group quotas as well as user quotas.

Finally, run the following command to turn on quota enforcement on the /home directory:

bash
quotaon /home

This will enable the quotas that have been set up on the filesystem.

In summary, the correct answer is A: mount -o remount /home.