[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/etc/init.d/quota : quotacheck create aquota.user but quotaon looks for quota.user



Hello,
I would like to use quota on a server but the /etc/init.d/quota script
reports an error.
It creates the file aquota.user (version 2) through 'quotacheck' but
'quotaon' looks for a file named 'quota.user' which is the old format
(version 1).
As there is no way to tell 'quotaon' to use a specific format I force
quotacheck to create an old format file and then it works fine.

My question is :
How to use quota version 2 on debian 3.0r0 ?


Please reply on both the mailing list and my own email,
thanks,
Renaud Cabrol

--------------------------------------------------------------------------------------------------------

Here is the detail of all commands and their output :

I'm runing debian 3.0r0 :
# uname -a
    Linux cabinet 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586
unknown

I installed the quota package :
# dpkg -l quota
    ii  quota  3.04-1  An implementation of the disk quota system.

and edited the /etc/fstab file for /home :
    /dev/hde2  /home  ext2
rw,nosuid,nodev,noexec,auto,nouser,async,usrquota  0  2

then I umount and mount /home :
# umount /home
# mount /home
# mount
    /dev/hde2 on /home type ext2 (rw,noexec,nosuid,nodev,usrquota)

and run /etc/init.d/quota to start quota:
# /etc/init.d/quota start
    Checking quotas...
    Cannot get exact used space... Results might be inaccurate.
    done.
    Turning on quotas.
    quotaon: can't find /home/quota.user on /dev/hde2 [/home]
# quotaon -ap
    user quota on /home (/dev/hde2) is off

the script /etc/init.d/quota creates the file /home/aquota.user :
# ls -l /home
    -rw-------    1 root     staff        8192 sep 15 12:03 aquota.user

but quotaon looks for the file quota.user which is the old format and
reports an error as it doesn't find it .
# quotaon -a
    quotaon: can't find /home/quota.user on /dev/hde2 [/home]

but man quotaon says :
# man quotaon
    The filesystem quota files must be present in the root directory of
the specified filesystem and be named either aquota.user (for version 2
user quota), quota.user (for version 1 user quota), aquota.group (for
version 2 group quota), or quota.group (for version 1 group quota).

and /usr/doc/quota/README.Debian says :
# less /usr/doc/quotaon/README.Debian
    Note, however, that quota by default tries to use the newest format
it knows.

if i force quotacheck to create an old format file :
# quotacheck -acF vfsold
    Cannot get exact used space... Results might be inaccurate.
# ls -l /home
    -rw-------    1 root     staff     2097120 sep 15 12:36 quota.user

and then run quotanon, it works fine.
# quotaon -a
# quotaon -ap
    user quota on /home (/dev/hde2) is on



Reply to: