Operating System - Linux
1820751 Members
3478 Online
109627 Solutions
New Discussion юеВ

setting filesystem quotas for users

 
Gerald Penyweit
Occasional Contributor

setting filesystem quotas for users

I am running RH7.2 kernel rev
2.4.7-10. I am trying to set
filesystem quotas for users.
When I issue the command
"edquota -u , I get
"No filesystems with quota
detected"

LABEL=/1 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy msdos noauto,owner,kudzu 0 0

Above are my filesystem mount
points. Prior to issuing the
edquota command, I performed
a "quotaon -u -a", and ran
"touch /quota.user". What am
I doing wrong, and what does
the message mean?

Thank You
Life is beautiful
2 REPLIES 2
Mark Fenton
Esteemed Contributor

Re: setting filesystem quotas for users

Gerald, to understand what's happening, I think you would be well served by looking at /etc/fstab. The file systems you have available to you are mounted with defaults (which doesn't include quotas). You will need to edit fstab to read something like:

LABEL=/1 / ext3 rw,quota 1 1

and reboot ((since to enfore quotas, the file system needs to be mounted with quotas enabled, and root cannot be unmounted while the system is running))

hope this helps.

Mark
Gerald Penyweit
Occasional Contributor

Re: setting filesystem quotas for users

Mark,


Thanks for your initial reply,
but I am still getting the
message:

"quotaon: using //aquota.user on /dev/hda7: Invalid argument" when I execute the
command " quotaon -u -a". This
is after I made the recommended changes in your initial reponse.
Life is beautiful