[root@localhost jack]# quotacheck
bash: quotacheck: command not found
[root@localhost jack]# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jack/bin:/bin:/usr/local/bi:/sbin:/sbin::/root/bin:/sbin:/usr/bin:/usr/sbin
/sbin:
主要放置一些系统管理的必备程式例如:cfdisk、dhcpcd、dump、 e2fsck、fdisk、halt、ifconfig、ifup、 ifdown、init、insmod、lilo、lsmod、mke2fs、modprobe、quotacheck、reboot、rmmod、 runlevel、shutdown等。 :0)1
fujiefujie 于 2011-02-17 14:46:04发表:
一般情况 大多系统的内核都支持磁盘配额的 而且也有quota软件包
quotacheck 后边加参数 如 quotacheck -augcv
a是检查所有分区 u g 分别对应的是检查用户和组的配额信息 c是创建新的配额文件 v是显示命令执行详细输出
系统启动自动检查是否有磁盘配额文件,有的话直接启用配额 在/etc/rc.d/rc.sysinit 有quotaon 的脚本设置
action $"Checking root filesystem quotas: " /sbin/quotacheck -nug / # 然后执行 quotacheck -nug / 对 / 文件系统进行检查,并打印提示信息
vernice 于 2011-01-06 14:33:28发表:
3# yhzm1314
] filesystem|-a
quota包安装上了,可是启动后Boot Message 中Enabling local filesystem quotas: [FAILED]
[root@localhost jack]# quota
quota: Quota file not found or has wrong format.
[root@localhost jack]# quotacheck
Bad number of arguments.
Utility for checking and repairing quota files.
quotacheck [-gucbfinvdmMR] [-F
-u, --user check user files
-g, --group check group files
-c, --create-files create new quota files
-b, --backup create backups of old quota files
-f, --force force check even if quotas are enabled
-i, --interactive interactive mode
-n, --use-first-dquot use the first copy of duplicated structure
-v, --verbose print more information
-d, --debug print even more messages
-m, --no-remount do not remount filesystem read-only
-M, --try-remount try remounting filesystem read-only,
continue even if it fails
-R, --exclude-root exclude root when checking all filesystems
-F, --format=formatname check quota files of specific format
-a, --all check all filesystems
-h, --help display this message and exit
-V, --version display version information and exit
Bugs to jack@suse.cz
[root@localhost jack]#
vernice 于 2011-01-06 13:51:38发表:
2# age
好的,我yum一下试试
vernice 于 2011-01-06 13:51:11发表:
3# yhzm1314
嗯,多谢指点。我以为系统quota会自带呢……改了半天环境变量最后还是不行,呵呵。
yhzm1314 于 2011-01-06 13:07:28发表:
要安装相关的软件套件才会有。
话说类似的问题这几天已经有很多人在问。
不要什么都按书上的照搬过来。
age 于 2011-01-06 13:04:32发表:
装quota包, 不同版本名称可能不一样
看你的发行版, 用apt-get或yum之类的搜索下quota吧