LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   User Quota (https://www.linuxquestions.org/questions/linux-general-1/user-quota-19400/)

chuck77 04-25-2002 01:43 AM

User Quota
 
/dev/ida/c0d0p9 / ext2 defaults 1 1
/dev/ida/c0d0p1 /boot ext2 defaults 1 2
/dev/ida/c0d0p6 /home ext2 defaults,usrquota
1 2
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/ida/c0d0p7 /tmp ext2 defaults 1 2
/dev/ida/c0d0p5 /usr ext2 defaults 1 2
/dev/ida/c0d0p10 /var ext2 defaults 1 2
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/ida/c0d0p8 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0
0


Above is my /etc/fstab.

After setting the file aquota.user in /home and reboot. When i type the command

#./edquota -u test
#Can't read quotafile header: No data available


How do i solve this ?

PS: i am using Redhat 7.1 on Compaq Alpha.

kylo8787 04-26-2002 12:27 PM

you have to add a quota file to the partion with the the quota limit i forgot how to do its been a while but here is a how to.
http://www.tldp.org/HOWTO/mini/Quota.html#toc6

auge 05-27-2002 02:15 AM

Well, I just had the same problem. But it works now for me ...
try to move (!) the aquota.user file to quota.user in every fs-root-dir with quota
the reason for that is, if your system automatically uses quota1 (older quota in kernel for example) but the quotatools create/check for quota2 files with the "a" at the begining

newb13 11-16-2002 09:21 AM

Ok, how do you fix this ?

I have both aquota.* and quota.* in the /home directory
fstab is setup properly. I have double checked and I have had 3 others look into this. The system is redhat. I took and recompiled the kernel to 2.4.19-grsec. Yes quota support is enabled in the kernel.

repquota: Quotafile format detected differs from the specified one (or the one kernel uses on the file).
repquota: Not all specified mountpoints are using quota.

quota
Disk quotas for user tech (uid 541): none

it looks like the kernel wants one quota format and the quota system wants another ! How do you corrent this problem ?
I didnt have this problem on my other servers.

Here is more info if you need it to help me solve this problem:
[root@snapper home]# quotacheck -avugm
quotacheck: Scanning /dev/hda2 [/home] done
quotacheck: Checked 2251 directories and 25153 files
quotacheck: Scanning /dev/hda9 [/home2] done
quotacheck: Checked 3 directories and 8 files
[root@snapper home]# repquota -u /home
repquota: Can't open quotafile /home/quota.user: No such file or directory
repquota: Not all specified mountpoints are using quota.

yet when running quotacheck it generated aquota.user and aquota.group.


All times are GMT -5. The time now is 10:14 PM.