From owner-freebsd-questions@freebsd.org Tue Jan 26 11:29:57 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 F2F48A46FA3 for ; Tue, 26 Jan 2016 11:29:57 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from outbound-queue-2.mail.thdo.gradwell.net (outbound-queue-2.mail.thdo.gradwell.net [212.11.70.35]) by mx1.freebsd.org (Postfix) with ESMTP id BA8A21C2F for ; Tue, 26 Jan 2016 11:29:57 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from outbound-edge-1.mail.thdo.gradwell.net (bonnie.gradwell.net [212.11.70.2]) by outbound-queue-2.mail.thdo.gradwell.net (Postfix) with ESMTP id 0AFBC552A8; Tue, 26 Jan 2016 11:29:03 +0000 (GMT) Received: from relay.gradwell.com (HELO arthur.home.qeng-ho.org) (212.11.70.4) (smtp-auth username arthur@pop3.qeng-ho.org, mechanism plain) by outbound-edge-1.mail.thdo.gradwell.net (qpsmtpd/0.83) with ESMTPA; Tue, 26 Jan 2016 11:29:02 +0000 Subject: Re: What's taking up all my disk space? To: Anton Sayetsky , Murk Fletcher References: Cc: FreeBSD Questions From: Arthur Chance Message-ID: <56A7587C.8070003@qeng-ho.org> Date: Tue, 26 Jan 2016 11:29:00 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Gradwell-MongoId: 56a7587e.35d-5afc-1 X-Gradwell-Auth-Method: mailbox X-Gradwell-Auth-Credentials: arthur@pop3.qeng-ho.org 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 11:29:58 -0000 On 26/01/2016 10:23, Anton Sayetsky wrote: > 26 янв. 2016 г. 12:21 пользователь "Murk Fletcher" > написал: >> >> 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? > Try "du -sh /*" first. There aren't so many sub-directories in / that it's difficult to spot the largest but du -sh /* | sort -rh will order the list from largest to smallest. Very useful (possibly with head added to the pipeline) if you've got a lot of subdirectories. -- Moore's Law of Mad Science: Every eighteen months, the minimum IQ necessary to destroy the world drops by one point.