添加userquota之后的只读文件系统,groupquota添加到fstab

当我将选项userquota,groupquota添加到我的Debian 6 DirectAdmin服务器的主(/)分区时,它将以只读模式挂载该分区。

笏我做了:

  1. nano / etc / fstab
  2. errors=continue后添加userquota,groupquota errors=continue在'options'列中继续到/ mount-point
  3. 保存文件并退出nano
  4. 重新启动服务器

在重新启动时,它显示了很多错误,都与只读文件系统有关。

有人知道我可能做错了什么? 非常感谢!

编辑:我的fstab看起来像:

 # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # / was on /dev/vda1 during installation UUID=aca09b50-554b-45b6-b3b6-e4444f1f80b6 / ext3 errors=continue,userquota,groupquota 0 1 # swap was on /dev/vda5 during installation UUID=628fb534-f3e4-4c44-93ad-f9f7992feff6 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 

正确的选项是usrquotagrpquota 。 另外,启用配额后,您应该运行quotacheck -uvg /path/to/your/device来创buildaquota。{user,group}文件。

不过,我build议按照本教程中所述设置日记配额