From owner-freebsd-questions@FreeBSD.ORG Thu Aug 13 21:25:43 2009 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 126A31065748 for ; Thu, 13 Aug 2009 21:25:43 +0000 (UTC) (envelope-from lists@lizardhill.com) Received: from kermit.lizardhill.com (kermit7.lizardhill.com [64.69.41.223]) by mx1.freebsd.org (Postfix) with ESMTP id 8657C8FCC0 for ; Thu, 13 Aug 2009 20:37:01 +0000 (UTC) Received: from ip68-224-43-222.lv.lv.cox.net ([68.224.43.222] helo=mickey) by kermit.lizardhill.com with esmtpa (Exim 4.69) (envelope-from ) id 1Mbh2c-0001UT-7V for freebsd-questions@freebsd.org; Thu, 13 Aug 2009 13:36:54 -0700 From: "Don O'Neil" To: Date: Thu, 13 Aug 2009 13:37:00 -0700 Message-ID: <4741DB3C2EAB4B86A7ED3AE96E3584DD@mickey> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcocVc6kVUTqTWNuQYio3CpZbe8E3g== Subject: df -k vs. du -s 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: Thu, 13 Aug 2009 21:25:44 -0000 My /var partition is showing a different value for a df -k on the file system vs a du -s on the file system: df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 2026030 889544 974404 48% / devfs 1 1 0 100% /dev /dev/ad0s1e 2026030 964 1862984 0% /tmp /dev/ad0s1d 8122126 1997988 5474368 27% /usr /dev/ad0s1f 8122126 5301938 2170418 71% /var du -s /var 993261 /var Any ideas why I would see this? Where is the other 4+G? Do I have a bunch of bad sectors in the file system or is it majorly fragmented? If so, how do I find out what the problem is? The other partitions match between the df and du... I'm running 6.1 if that makes a difference.