From owner-freebsd-questions Fri Jul 21 06:17:08 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id GAA28521 for questions-outgoing; Fri, 21 Jul 1995 06:17:08 -0700 Received: from haven.ios.com (haven.ios.com [198.4.75.45]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id GAA28515 for ; Fri, 21 Jul 1995 06:17:06 -0700 Received: (from rashid@localhost) by haven.ios.com (8.6.11/8.6.9) id JAA29837; Fri, 21 Jul 1995 09:19:28 -0400 From: "Rashid Karimov." Message-Id: <199507211319.JAA29837@haven.ios.com> Subject: Re: disk quotas To: moriya@ifi.unicamp.br (Alexandre Moriya - esp) Date: Fri, 21 Jul 1995 09:19:28 -0400 (EDT) Cc: FreeBSD-questions@FreeBSD.org In-Reply-To: <199507211121.IAA02372@by-tor.ifi.unicamp.br> from "Alexandre Moriya - esp" at Jul 21, 95 08:21:01 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: 1776 Sender: questions-owner@FreeBSD.org Precedence: bulk Hi there, > > Hi, > > 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 ... > DISCLAIMER: the way above is the way I go ... The mileage may vary :) Rashid PS !!! The QUOTAs code doesn't lead to kernel locking ! - albeit the premonition a few ppl here had ( me incl. :). Something else causes the locking . Very interesting one BTW - the console driver is alive ( you can switch the virtual screens from the console) , the ping from remote sites works too , when one tries telnet or ftp tp the hung host - it does say "connected" , but that's about it. You can't get anything else ! Any cure? Rashid