LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing quota (https://www.linuxquestions.org/questions/linux-software-2/installing-quota-143826/)

drenal 02-08-2004 06:05 PM

installing quota
 
Hello, I have just installed quota and read howto.. But I have a problem with this tool..
Here is some errors while system boot:

Code:

Checking filesystem quotas:  /sbin/quotacheck -avugM
quotacheck: Scanning /dev/hda7 [/home] done
quotacheck: Checked 1504 directories and 18222 files
Activating filesystem quotas:  /sbin/quotaon -avug
quotaon: using /home/aquota.user on /dev/hda7 [/home]: No such process 
quotaon: Quota format not supported in kernel.

I have the lastest quota installed and it's compiled in my 2.4.24-ow and some settings for testing user:

[CODE}
# quota tester
Limity dyskowe dla user tester (uid 1011):
System plików bloki miękki twardy pobł. pliki miękki twardy pobł.
/dev/hda7 1928* 1024 1024 22 120 120

[/CODE]
(It's in polish)

but when I try to run 'quota' as user 'tester' there is permission denied to /home/aquota.user (root 600) and checking quota fails.

trickykid 02-08-2004 06:14 PM

What filesystem are you using and are you sure you enabled it in your kernel?

And I assume your running or starting it logged in as root?

drenal 02-08-2004 06:17 PM

# cat /usr/src/linux/.config | grep EXT3
CONFIG_EXT3_FS=y

# mount | grep /home
/dev/hda7 on /home type ext3 (rw,usrquota)

trickykid 02-08-2004 06:24 PM

And your output of this: cat /usr/src/linux/.config | grep QUOTA

drenal 02-08-2004 06:26 PM

# cat /usr/src/linux/.config | grep QUOTA
CONFIG_QUOTA=y

synaptical 02-08-2004 06:53 PM

did you run the quotacheck -c option to make the quota files?

quotacheck -acug /dir

just a shot in the dark, but from what you posted it didn't look like you ran that yet.

drenal 02-08-2004 07:32 PM

I have just ran 'quotacheck -acug' manually and it did check my /home without errors, but after reboot there is the same output with errors while booting
Code:

quotaon: using /home/aquota.user on /dev/hda7 [/home]: No such process 
quotaon: Quota format not supported in kernel.


trickykid 02-08-2004 07:40 PM

Quote:

Originally posted by drenal
I have just ran 'quotacheck -acug' manually and it did check my /home without errors, but after reboot there is the same output with errors while booting
Code:

quotaon: using /home/aquota.user on /dev/hda7 [/home]: No such process 
quotaon: Quota format not supported in kernel.


How are you editing the quota file? And why do you have it named as aquota.user? In most cases it should be named just quota.user.

In your home directory since that is where you want quota's, you should have both quota.user and quota.group

trickykid 02-08-2004 07:51 PM

Can you post your quota.user file? Looking over and over, everything seems to be ok but yet the error your getting clearly states your format of the file is not supported.

Heres an example of one of mine I use on one of my Slackware servers:
Code:

Disk quotas for user tarts (uid 502):
  Filesystem                  blocks      soft      hard    inodes    soft    hard
  /dev/hdb5                      8024      50000      60000        45        0        0

After issuing the 'edquota -u <username>' command to edit the quota for a particular user.

drenal 02-08-2004 07:55 PM

I user quota-3.09 installed from tgz pack. I use only usrquota on /home and I edit it in standard way:
#edquota -u tester
and I haven't created /home/aquota.user because edquota created this file (I think)


taken from man edquota:
Code:

FILES
      aquota.user or aquota.group
                          quota file at the filesystem root (version 2 quota, non-XFS filesystems)
      quota.user or quota.group
                          quota file at the filesystem root (version 1 quota, non-XFS filesystems)

I don't have /home/(a)quota.group but do I really need it?

trickykid 02-08-2004 07:59 PM

Quote:

Originally posted by drenal
I user quota-3.09 installed from tgz pack. I use only usrquota on /home and I edit it in standard way:
#edquota -u tester
and I haven't created /home/aquota.user because edquota created this file (I think)


taken from man edquota:
Code:

FILES
      aquota.user or aquota.group
                          quota file at the filesystem root (version 2 quota, non-XFS filesystems)
      quota.user or quota.group
                          quota file at the filesystem root (version 1 quota, non-XFS filesystems)

I don't have /home/(a)quota.group but do I really need it?

No shouldn't need it if your not going to use group quota's. If you created the quota file by edquota then it must be version 2 that your using.

Can you post the output of the file, I have a feeling its the format that its not reading correctly as that is why your getting that error.

drenal 02-08-2004 08:07 PM

this is some settings in '#edquota -u tester'
Code:

Limity dla user tester (uid 1011):
  System plików                bloki        miękki    twardy  i-węzły    miękki  twardy
  /dev/hda7                      1928      2000      2100        22      25      26


trickykid 02-08-2004 08:26 PM

I think this might be a problem with your version. If its compiled in try this:

modprobe quota_v2

And then see if you can't manually start quota with the quotaon command. Saw this on a google mailing list but was geared towards Suse, not sure if its going to work with Slackware.

trickykid 02-08-2004 08:30 PM

And what version of the quota utilities do you have installed and or did you complie quota as a module or builtin?

drenal 02-08-2004 08:37 PM

bingo! :))

thx man:) that's why you are Moderator not me; ) I did search in google but I should trust more google:>

I always say 'if you are looking for somn, ask google":) now you remember me this: )
thx again


All times are GMT -5. The time now is 07:51 AM.