Hi,
I figured out what it was. I had a quota file, but it was
empty and that was causing the "Invalid argument" error.
By the way, webmin has an easier way of enabling quotas. But
I think there is a bug in the "webmin method" because, it
was trying to turn-on quota twice in the same script file !
These quota commands are in /etc/rc.d/rc.sysinit (for your info).

I have been using linux for 2 months now and this has been a
nice experience for me.

Thanks Mr.Sridar and all.

Anand





On Tue, 2 Jul 2002, Sridhar Dhanapalan wrote:

> On Mon, 1 Jul 2002 23:40:55 -0500 (CDT), Anand Kumar Kalyanasundaram
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I am trying to enable userquota on my /home partition. I
> > added the following script to a file in /etc/rc.d/rc5.d
> > directory:
> >
> > # Check quota and then turn quota on.
> > if [ -x /usr/sbin/quotacheck ]
> > then
> >     echo "Checking quotas. This may take some time."
> >     /usr/sbin/quotacheck -avug
> >     echo " Done."
> > fi
> >
> > if [ -x /usr/sbin/quotaon ]
> > then
> >     echo "Turning on quota."
> >     /usr/sbin/quotaon -avug
> > fi
> >
> > I get the following error:
> >
> > Jul  1 23:10:49 localhost quotaon: quotaon: using
> > /home/aquota.user on /dev/hda6: Invalid argument
> > Jul  1 23:10:49 localhost rc.sysinit: Enabling local
> > filesystem quotas:  failed Jul  1 23:10:50 localhost
> > quotaon: quotaon: using /home/aquota.user on /dev/hda6:
> > Invalid argument
> >
> > I get this "Invalid argument" error even when I try to
> > enable userquotas using webmin.
> >
> > Can someone tell me what I am doing wrong here ?
>
> Is your /home partition ReiserFS? ReiserFS needs to be patched to support
> quotas.
>
> --
> Sridhar Dhanapalan
>
>       We are Linux. Resistance is measured in Ohms.
>
>


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to