I've installed quota on my server, but I cannot initialize it. I did the following:
touch /aquota.user /aquota.group
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug
and I get this error when I try to turn on quota:
quotaon: using //aquota.group on /dev/sda1 [/]: Invalid Argument
quotaon: Maybe create new quota files with quotacheck(8)?
quotaon: using //aquota.user on /dev/sda1 [/]: Invalid Argument
quotaon: Maybe create new quota files with quotacheck(8)?
I tried to create new quota files with quotacheck and the -n parameter but it's still not working.
This is my fstab file
Code:
/dev/sda1 / ext3 defaults,usrquota,grpquota 1 1
LABEL=/opt1 /opt ext3 defaults 1 2
LABEL=/tmp1 /tmp ext3 defaults 1 2
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
Any clue??