大网数据广告活动
服务器运维问答

quotacheck: Cannot stat() given mountpoint –cugv: No such file or directory

· 52CE 我爱测

I am trying to enable quotas on an ext4 partition of a Debian 9 VM. The partition is mounted on /public with the usrquota,grpquota options. The machine has been rebooted. Here is what happens: root@deb9-fs ~# df -hT /public/ File…

问题原文

原帖链接 · stan · CC BY-SA 4.0

I am trying to enable quotas on an ext4 partition of a Debian 9 VM.

The partition is mounted on /public with the usrquota,grpquota options. The machine has been rebooted.

Here is what happens:

root@deb9-fs ~# df -hT /public/
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/sda4      ext4  4.4G   18M  4.1G   1% /public
root@deb9-fs ~#
root@deb9-fs ~# mount | grep public
/dev/sda4 on /public type ext4 (rw,relatime,quota,usrquota,grpquota,data=ordered)
root@deb9-fs ~# touch /public/test
root@deb9-fs ~# ll /public/
total 16K
drwx------ 2 root root 16K Jan 24 10:46 lost+found/
-rw-r--r-- 1 root root   0 Jan 24 23:13 test
root@deb9-fs ~# quotacheck –cugv /public
quotacheck: Cannot stat() given mountpoint –cugv: No such file or directory
Skipping...
quotacheck: No correct mountpoint specified.
quotacheck: Cannot initialize mountpoint scan.

Am I missing something?

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

You copied and pasted a Unicode character that looks like a hyphen, but is not actually.

The character you pasted was –, which an en dash.

The actual character you should be using is -, which is a plain hyphen as it appears on your keyboard.

This is an error in whatever tutorial you were reading. Some content management systems change hyphens into Unicode dashes if they aren't properly escaped in that CMS's editor.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-01-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。