From owner-freebsd-questions Fri Jul 21 11:54:34 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id LAA17609 for questions-outgoing; Fri, 21 Jul 1995 11:54:34 -0700 Received: from mpp.minn.net (mpp.Minn.Net [204.157.201.242]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id LAA17603 for ; Fri, 21 Jul 1995 11:54:31 -0700 Received: (from mpp@localhost) by mpp.minn.net (8.6.11/8.6.9) id NAA04181; Fri, 21 Jul 1995 13:49:27 -0500 From: Mike Pritchard Message-Id: <199507211849.NAA04181@mpp.minn.net> Subject: Re: disk quotas To: rashid@haven.ios.com (Rashid Karimov.) Date: Fri, 21 Jul 1995 13:49:26 -0500 (CDT) Cc: moriya@ifi.unicamp.br, FreeBSD-questions@FreeBSD.ORG In-Reply-To: <199507211319.JAA29837@haven.ios.com> from "Rashid Karimov." at Jul 21, 95 09:19:28 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1924 Sender: questions-owner@FreeBSD.ORG Precedence: bulk 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"