quotacheck怎么安裝,quotacheck:cannot


quotacheck怎么安裝,quotacheck:cannot

文章插圖
請教quotacheck命令找不到,怎么解決:
quotacheck怎么安裝,quotacheck:cannot

文章插圖
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 ] filesystem-a -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
linux系統中磁盤配額的相關問題,求大神??! 磁盤配額的時候想用quotacheck,但是出現:
【quotacheck怎么安裝,quotacheck:cannot】磁盤配額的大體步驟:
1、硬盤分區
2、格式化
3、掛載
4、配額
你的提示錯誤是:沒有文件系統 。也就是說沒有格式化 。
linux建立配額記錄文件報錯,用命令quotacheck -guva時,報錯:
quotacheck -cmug 試下
linux中quota命令的使用?。?br /> quota

1.作用
quota命令用來顯示磁盤使用情況和限制情況,使用權限超級用戶 。

2.格式
quota [-g][-u][-v][-p] 用戶名 組名

3.參數
-g:顯示用戶所在組的磁盤使用限制 。
-u:顯示用戶的磁盤使用限制 。
-v:顯示沒有分配空間的文件系統的分配情況 。
-p:顯示簡化信息 。

4.應用實例
在企業應用中磁盤配額非常重要,普通用戶要學會看懂自己的磁盤使用情況 。要查詢自己的磁盤配額可以使用下面命令步聚如下:
1、首先修改“/etc/fstab”文件,在第一行的defaults后面加上usrquota,grpquota字段,然后退出保存 。具體如圖所示:
2、重新掛載文件系統,或者重啟:reboot
3、用quotacheck -cmug命令創建配額文件 。根據你說的對/分區進行配額,則命令為:quotacheck -cmug / ,通過這一命令,就會在在根分區下面生成兩個文件,一個是aquota.group、aquota.user,因為你是對用戶進行配額,aquota.group其實對你無用 。先前在修改“/etc/fstab”文件時,也不用添加grpquota這個字段 。
4、設置配額 。edquota -u stu1 ,edquota -u stu2 ,edquota -u stu3.這種方法是最簡單的,其實還有其它方法,就是把這3個用戶加入一個組,然后對這個組進行配額 。
在這一步中,你要將第一個soft下面的0改為少于5*1024*1024,hard下面的0改為5*1024*1024,后面的soft下面的0改為小于5,hard下面的0改為5 。然后保存退出 。前面的是容量配額,后面是的文件數配額,soft是軟限制,hard是硬限制 。
5、讓配額生效quotaon -a
6、測試 。用mkdir、touch創建文件或目錄來測試文件數配額 。
用dd命令生成一定容量的文件測試容量配額 。
另外,站長團上有產品團購,便宜有保證

    推薦閱讀