From owner-freebsd-questions@FreeBSD.ORG Tue Jul 6 02:27:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9A2716A4CE; Tue, 6 Jul 2004 02:27:59 +0000 (GMT) Received: from ppsw-0.csi.cam.ac.uk (ppsw-0.csi.cam.ac.uk [131.111.8.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7713443D31; Tue, 6 Jul 2004 02:27:59 +0000 (GMT) (envelope-from rtb27@cam.ac.uk) Received: from rtb27.robinson.cam.ac.uk ([131.111.217.214]:51403) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:465) with esmtp (SSLv3:RC4-MD5:128) (Exim 4.34) id 1Bhfga-00051S-IM; Tue, 06 Jul 2004 03:27:56 +0100 From: Richard Bradley To: Greg 'groggy' Lehey Date: Tue, 6 Jul 2004 03:25:50 +0100 User-Agent: KMail/1.5.4 References: <200407060229.03972.rtb27@cam.ac.uk> <200407060259.08128.rtb27@cam.ac.uk> <20040706021144.GB1069@wantadilla.lemis.com> In-Reply-To: <20040706021144.GB1069@wantadilla.lemis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407060325.50076.rtb27@cam.ac.uk> X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ X-Cam-AntiVirus: No virus found X-Cam-SpamDetails: Not scanned cc: freebsd-questions@freebsd.org Subject: Re: /rescue [may or may not have actually been] huge!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 02:27:59 -0000 On Tuesday 06 July 2004 3:11 am, you wrote: > On Tuesday, 6 July 2004 at 2:59:08 +0100, Richard Bradley wrote: > > On Tuesday 06 July 2004 2:36 am, Dan Nelson wrote: > >> Check the inode number of each file in /rescue (ls -li /rescue). > >> You'll notice they're all the same, which means they're all hardlinks > >> to the same file. "du /rescue" should report under 4MB. > >> > >> Your space is probably being taken up somewhere else. > > > > That's very strange if true, because since deleting the "/rescue" > > folder, > > I'm a little irritated by the use of the term "folder". Do you mean > mail? /rescue is a directory. Yes, I mean directory. I switch between unix and the other OS family and sometimes get sloppy with my terminology. Apologies. > > > the used space on / has gone from 550Mb+ to 129Mb. > > How do you measure this? If you created a 100 MB partition or > thereabouts, you can't store 550 MB in it. I measured this using kdf. The partition size is 512Mb. I was unable to write to the partition, and df was reporting 120% disk usage. Since I rm'ed the / rescue directory, kdf reports 23% disk usage and I can write to the partition. I thought that all the space was being used by /rescue, because kdirstat reported the size of the directory at ~400Mb, but after some experimentation, it appears kdirstat counts multi-linked files once for each link, so the directory may not have been taking up all that space. Regardless of the accuracy of kdf and kdirstat, I did receive a "disk full" message from "pw" on a partition which now has 380Mb free, so something funny is going on... > 100 MB should be plenty of space for the root file system assuming > that you have separate /usr and /var file systems (not something that > I recommend, but that's what the handbook recommends). I'd guess that > you've made some mistake somewhere and have been confused by the > concept of links. I have almost certainly made a mistake somewhere, but my goal is to find out what and not to repeat it. Things seem to be ok now (apart from I have no rescue dir). As far as I can tell, I understand links, but one can rarely know what one doesn't know ;-) Regards, Rich