tldr/pages/linux/quotacheck.md

29 lines
744 B
Markdown
Raw Normal View History

2016-10-16 14:51:30 +01:00
# quotacheck
> Scan a filesystem for disk usage; create, check and repair quota files.
> It is best to run quota check with quotas turned off to prevent damage or loss to quota files.
2016-10-16 16:43:32 +01:00
- Check quotas on all mounted non-NFS filesystems:
2016-10-16 14:51:30 +01:00
`sudo quotacheck --all`
2016-10-16 16:43:32 +01:00
- Force check even if quotas are enabled (this can cause damage or loss to quota files):
2016-10-16 14:51:30 +01:00
`sudo quotacheck --force {{mountpoint}}`
- Check quotas on a given filesystem in debug mode:
`sudo quotacheck --debug {{mountpoint}}`
2016-10-16 16:43:32 +01:00
- Check quotas on a given filesystem, displaying the progress:
2016-10-16 14:51:30 +01:00
`sudo quotacheck --verbose {{mountpoint}}`
- Check user quotas:
`sudo quotacheck --user {{user}} {{mountpoint}}`
- Check group quotas:
`sudo quotacheck --group {{group}} {{mountpoint}}`