# quotacheck -cug /homeĤ) How to Synchronize Disk Quota on Linux Using the quotacheck Command The quotacheck command is used to scan a file system for disk usage, create, check and repair quota files. Make a note: It’s advised to run the above command only once for each partition to create disk quota database file. If it is not found in the given partition, it will create “er” and “oup” files. TThis command creates the required database files when you run them for first time. # mount -o remount /homeģ) How to Create Quota Files on Linux Using the quotacheck Command If you can not reboot it due to dependency then remount it. $ sudo dnf install quotaįor Debian/Ubuntu systems, use APT-GET Command or APT Command to install quota. The disk quota package is available in the distribution official repository, so use the package manager to install it.įor Fedora system, use DNF Command to install quota. Grace Period: Users are allowed to create new files during the grace period, even if they have reached a hard limit.Inode Limit: Once a given inode limit is reached, the user cannot create new files.Soft Limit: When the soft limit is reached, the user can create a new file, but the user receives a warning message saying “disk quota exceeded”, but they can create a new file until it reaches the hard limit.Hard Limit: Once the hard limit is reached, the user cannot create new files.Users are only allowed to use the allocated disk space.You do not need to enable this if you do not share the server with others. Make a note: You may need to enable disk quota on a system where multiple users share the disk space such as file server or ftp server or shared hosting. ![]() You can make the necessary changes to a specific user using the following disk quota management commands such as quotacheck, edquota, quota, repquota, quotaoff and quotaon. You can set the following parameters such as soft limit, hard limit, grace period, block size and Inode number when enabling disk quota on a particular file system. ![]() This will allow a user to use only the allocated disk space.Īlso, it keeps your partition under threshold limit. Disk space usage can be controlled by implementing disk quota on Linux.
0 Comments
Leave a Reply. |