From owner-freebsd-questions@FreeBSD.ORG Tue Jul 6 02:10:31 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 A4A6B16A4CE for ; Tue, 6 Jul 2004 02:10:31 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6657A43D53 for ; Tue, 6 Jul 2004 02:10:31 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i662ASRW007889; Mon, 5 Jul 2004 21:10:28 -0500 (CDT) (envelope-from dan) Date: Mon, 5 Jul 2004 21:10:28 -0500 From: Dan Nelson To: Richard Bradley Message-ID: <20040706021028.GO6574@dan.emsphone.com> References: <200407060229.03972.rtb27@cam.ac.uk> <20040706013649.GN6574@dan.emsphone.com> <200407060259.08128.rtb27@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407060259.08128.rtb27@cam.ac.uk> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: /rescue is 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:10:31 -0000 In the last episode (Jul 06), Richard Bradley said: > On Tuesday 06 July 2004 2:36 am, you wrote: > > In the last episode (Jul 06), Richard Bradley said: > > > I recently tried to add a user to my FreeBSD box, but was amazed > > > to find that the / partition was full! I had a look, and the > > > culprit is the "/rescue" folder, holding 135 statically linked > > > binaries of nearly 4Mb each, giving a folder size of 491Mb! > > > > 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, the used space on / has gone from 550Mb+ to 129Mb. I can't > check the inodes now, as I have `rm`ed them all! If at some point you had copied /rescue with cp (instead of a tar pipe or something else that preserves hardlinks), you would have gotten a separate file for each link. -- Dan Nelson dnelson@allantgroup.com