Date: Fri, 21 Jul 1995 13:49:26 -0500 (CDT) From: Mike Pritchard <mpp@mpp.minn.net> To: rashid@haven.ios.com (Rashid Karimov.) Cc: moriya@ifi.unicamp.br, FreeBSD-questions@FreeBSD.ORG Subject: Re: disk quotas Message-ID: <199507211849.NAA04181@mpp.minn.net> In-Reply-To: <199507211319.JAA29837@haven.ios.com> from "Rashid Karimov." at Jul 21, 95 09:19:28 am
next in thread | previous in thread | raw e-mail | index | archive | help
Rashid Karimov. wrote: > > I hope it is the right place to my question. > > Has anybody been in touch with disk quotas in FreeBSD 2.0 ? > > If you are talking about 2.0 , I'm afraid you are out of luck :( > The first really working QUOTAS are in 2.0.5Release. They > _do work 100%. > > > > > I was not able to configure it ! > > I recompiled the kernel with the option ('options QUOTA'), but > > then, I could not set any user disk quotas ... > > I tried 'edquota', but when I checked if the quota was set > > correctly, it was as it hasn't been set ! > > Ooops, I also create the file 'quotas' and then 'quotas.user' but > > it didn't work ... > > First compile the kernel with QUOTA defined > Boot new kernel > edit /etc/fstab to mark the partitions you want to QUOTA to > be on > Create empty files quota.[user|group] : > > touch /u/u1/user.quota > > in the corresponding partitions ( on the upper level > of directory structure) > > Run quotacheck on those partitions: > > quuotacheck /u/u1 > so on ... > > NOTICE: > I've mentioned that sometimes quotacheck -a ( for all > partitions marked to be with QUOTAs in /etc/fstba doesn't > work for some reason ) > > > now ( finally ) run quotaon for those partitions to > switch the QUOTAs on: > > quotaon /u/u1 > so on ... There isn't really a need to run all of those commands by hand. After rebuilding a kernel with quota support, edit /etc/fstab to enable user/group quotas on the appropriate file systems, then edit /etc/sysconfig and set "check_quotas=YES". Reboot the new kernel, and all of the initial quota files will be built by /etc/rc and enabled. Verify that quotas have been enabled on all of the correct file systems by running: quota -v # for user quotas quota -vg # for group quotas Edquota should then work. -- Mike Pritchard mpp@mpp.minn.net "Go that way. Really fast. If something gets in your way, turn"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507211849.NAA04181>