我想在我的 Ubuntu 12.04 LTS 服务器上使用组配额。
我已从以下步骤开始:
$ apt-get install quota
编辑 /etc/fstab
proc /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
# /dev/hda1 during Installation (RescueSystem)
UUID=9f906035-68d3-4066-9d58-2b070298e175 none swap sw 0 0
# /dev/hda2 during Installation (RescueSystem)
UUID=467ed71a-2c16-4b17-9a25-2b2962cf2431 /boot ext3 defaults 0 0
# /dev/hda3 during Installation (RescueSystem)
UUID=1f06497c-cd88-6f4d-a10b-8d30b7646adb / ext4 defaults,grpquota 0 0
重新启动我的服务器。
$ quotacheck -avg
quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.
所以我尝试
$ quotacheck -avgm
quotacheck: Scanning /dev/disk/by-uuid/1f06497c-cd88-6f4d-a10b-8d30b7646adb [/] done
quotacheck: Old user file name could not been determined. Usage will not be substracted.
quotacheck: Cannot stat old group quota file //aquota.group: No such file or directory. Usage will not be substracted.
quotacheck: Checked 29572 directories and 309976 files
quotacheck: Old file not found.
重启配额服务
$ /etc/init.d/quota restart
现在我被困在这里
$ repquota /
repquota: Not all specified mountpoints are using quota.
我的错误在哪里?
谢谢
答案1
运行带有参数“g”的命令解决了我的问题:
$ repquota -g /