使用者工具

網站工具


quota

這是本文件的舊版!


# touch /mnt/WD30EFRX/quota.user /mnt/WD30EFRX/quota.group
# touch /mnt/WD30EFRX/aquota.user /mnt/WD30EFRX/aquota.group
/etc/fstab:

UUID=34ed2310-f731-48c4-bf02-27fe22ebedca /mnt/WD30EFRX/        ext4 rw,nosuid,nodev,noexec,nouser,noauto,async,quota,iversion,user_xattr,acl 0 0

# quotaon -a -v

quotaon: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotaon: Cannot find quota file on /mnt/WD30EFRX [/dev/sda2] to turn quotas on/off.

# edquota -f /mnt/WD30EFRX feuer

edquota: Cannot find any quota file to work on.
edquota: Not all specified mountpoints are using quota.

# quotacheck -avugm

quotacheck: Cannot guess format from filename on /dev/sda2. Please specify format on commandline.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.



# modprobe quota

modprobe: FATAL: Module quota not found in directory /lib/modules/5.10.70-server-1.mga8

# modprobe quota_v2
# modprobe quota_v

modprobe: FATAL: Module quota_v not found in directory /lib/modules/5.10.70-server-1.mga8

# rm aquota.user aquota.group

rm: remove regular empty file 'aquota.user'? y
rm: remove regular empty file 'aquota.group'? y

# quotacheck -avugm

quotacheck: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotacheck: WARNING - Quotafile /mnt/WD30EFRX/quota.user was probably truncated. Cannot save quota settings...
quotacheck: Scanning /dev/sda2 [/mnt/WD30EFRX] done
quotacheck: Old group file name could not been determined. Usage will not be subtracted.
quotacheck: Checked 1520051 directories and 4673448 files

# ls -l quota*

-rw-r----- 1 root root       0 Oct 24 15:05 quota.group
-rw-r----- 1 root root 2621400 Oct 24 15:17 quota.user

# edquota feuer

edquota: Cannot open quotafile /mnt/WD30EFRX/aquota.user: No such file or directory
No filesystems with quota detected.

# ln -s quota.user aquota.user # edquota -f /mnt/WD30EFRX feuer

Disk quotas for user feuer (uid 1000):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/sda2                   5095332          0          0      16768        0        0



# quotacheck -avugm

quotacheck: Quota file /mnt/WD30EFRX/aquota.user has corrupted headers. You have to specify quota format on command line.
quotacheck: Cannot guess format from filename on /dev/sda2. Please specify format on commandline.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

# quotacheck -avugm -F vfsv0

quotacheck: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotacheck: WARNING - Quota file /mnt/WD30EFRX/aquota.user has corrupted headers

# quotacheck -avugm -F vfsv1

quotacheck: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotacheck: WARNING - Quota file /mnt/WD30EFRX/aquota.user has corrupted headers

# quotacheck -avugm -F vfsv2

quotacheck: Unknown quota format: vfsv2
Supported formats are:
  vfsold - original quota format
  vfsv0 - standard quota format
  vfsv1 - quota format with 64-bit limits
  rpc - use RPC calls
  xfs - XFS quota format

# quotacheck -avugm -F vfsold

quotacheck: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotacheck: Scanning /dev/sda2 [/mnt/WD30EFRX] done
quotacheck: Old group file name could not been determined. Usage will not be subtracted.
quotacheck: Checked 1520051 directories and 4673449 files
quota.1635061590.txt.gz · 上一次變更: 2021/10/24 07:46 由 fire