From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 17:28:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 304931065670 for ; Wed, 17 Dec 2008 17:28:21 +0000 (UTC) (envelope-from barry.byrne@wbtsystems.com) Received: from hermes.wbtsystems.com (87-198-244-212.ptr.magnet.ie [87.198.244.212]) by mx1.freebsd.org (Postfix) with ESMTP id E6CBA8FC1C for ; Wed, 17 Dec 2008 17:28:20 +0000 (UTC) (envelope-from barry.byrne@wbtsystems.com) Received: from SUNYA (sunya.wbt.wbtsystems.com [10.12.1.114]) by hermes.wbtsystems.com (Postfix) with ESMTPA id 12FF7F7410; Wed, 17 Dec 2008 17:28:19 +0000 (GMT) From: "Barry Byrne" To: "'John Almberg'" , References: <283ACBF4-8227-4A24-9E17-80A17CA2A098@identry.com> Date: Wed, 17 Dec 2008 17:28:15 -0000 Message-ID: <5FB3CDBC7A1447EF872A0AFD4BA1EA7D@wbt.wbtsystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <283ACBF4-8227-4A24-9E17-80A17CA2A098@identry.com> Thread-Index: Aclga18YK4lXMFqKTWuZcFJRv2JQOwAAR+8w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Cc: Subject: RE: How to find files that are eating up disk space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 17:28:21 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of John Almberg > Sent: 17 December 2008 17:17 > To: freebsd-questions@freebsd.org > Subject: How to find files that are eating up disk space > > Here is another newbie question that is driving me crazy, but is > probably a laughable situation to an experienced admin... > > I've got a smallish server that is suddenly out of disk space in the > '/' partition. > > Probably some log files have gotten out of hand. I am going to start > looking for the culprits by hand... basically inspecting sub > directories, but there must be a better way! > > Is there a command line tool that will help me figure out where the > problem is? > > Even better, is there a way to proactively monitor the file system, > so I can fix problems before I start getting 'out of disk > space' errors? > > Any hints, much appreciated. reebsd-questions-unsubscribe@freebsd.org" As a start you might want to look at the 'du' command. man du for more info. But for a quick start: du -x -d2 -h / should give you some useful info. You generally shouldn't have much writing to the / partition, unless you haven't greated a separate /var partition, which is recommended. - barry