From owner-freebsd-questions@freebsd.org Tue Jan 26 10:39:13 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A27A6A6EAD5 for ; Tue, 26 Jan 2016 10:39:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C6E61EFE for ; Tue, 26 Jan 2016 10:39:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-101-208.dynamic.qsc.de [92.195.101.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id CA13B3CE8E; Tue, 26 Jan 2016 11:39:09 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u0QAd8w6004308; Tue, 26 Jan 2016 11:39:08 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 26 Jan 2016 11:39:08 +0100 From: Polytropon To: Murk Fletcher Cc: User Questions Subject: Re: What's taking up all my disk space? Message-Id: <20160126113908.4bf3d4a9.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2016 10:39:13 -0000 On Tue, 26 Jan 2016 11:21:25 +0100, Murk Fletcher wrote: > Hi! > > Woke up to a nasty surprise this morning: > > /: write failed, filesystem is full > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/gpt/rootfs 38G 35G -7.4M 100% / > devfs 1.0K 1.0K 0B 100% /dev > fdescfs 1.0K 1.0K 0B 100% /dev/fd > linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc > > I have no idea why this is because I'm only using my FreeBSD VPS to run a > small Rails app in `/usr/home/`: > > # du -sh /usr/home > 8.6G /usr/home > # du -sh /usr/ > 12G /usr/ > # du -sh / > 34G / > > Maybe there's a way to use `du` to show all files larger than 1GB and then > pass it on to some other command to sort them by size? First determine which top-level directory entry is abnormally huge: # du -hs /* Then narrow down the problem. I suspect /var or /tmp... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...