From owner-freebsd-questions@FreeBSD.ORG Mon Feb 28 12:26:17 2011 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 6F89B106564A for ; Mon, 28 Feb 2011 12:26:17 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E15698FC08 for ; Mon, 28 Feb 2011 12:26:16 +0000 (UTC) Received: by bwz12 with SMTP id 12so4005421bwz.13 for ; Mon, 28 Feb 2011 04:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Jj/pHl9z7cjTraMPpL6mYjvveeWhBFyutqB6xhM/hFA=; b=j8zyNJH2au54d7IIBJhtWbhsH/QO1PRhqbJPPtW353G7W7MO3yiE2pe60WKvMdjuKX s4p6iXlW33FiHHWFtB3D3uBl9M/rO3TiWzDZV2Pja11pBistsrRUQGanv4w3UJzsUwQ2 aHYiSeY76mc6oh/sDofj5flU7zK16c9T8zXTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=gqXvXisRv2MDWIMcYfjUDXsAbFCuNECnKyUtn2i8MRVCma5hFWUrJHwuSxbzC2ePXt wOnl3gBgRZPyB+Ir+jK15IkjbVDtIXK6qK8MhmGKe0WWHL5c9fF52JtOQHA15suGqxqL fyoT/KZLs3MF6pmtkvhA7xLT29lLWWAdnLnUk= MIME-Version: 1.0 Received: by 10.204.75.142 with SMTP id y14mr4602376bkj.114.1298895974646; Mon, 28 Feb 2011 04:26:14 -0800 (PST) Received: by 10.204.157.21 with HTTP; Mon, 28 Feb 2011 04:26:14 -0800 (PST) Received: by 10.204.157.21 with HTTP; Mon, 28 Feb 2011 04:26:14 -0800 (PST) In-Reply-To: <201102281218.p1SCIR87034416@mail.r-bonomi.com> References: <201102281218.p1SCIR87034416@mail.r-bonomi.com> Date: Mon, 28 Feb 2011 12:26:14 +0000 Message-ID: From: Chris Rees To: Robert Bonomi Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, nr1c0re@gmail.com Subject: Re: / file system is full, but du does not show that it's full X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2011 12:26:17 -0000 On 28 Feb 2011 12:12, "Robert Bonomi" wrote: > > > From owner-freebsd-questions@freebsd.org Mon Feb 28 05:31:46 2011 > > Date: Mon, 28 Feb 2011 14:24:30 +0300 > > From: c0re > > To: Matthew Seaman > > Cc: FreeBSD > > Subject: Re: / file system is full, but du does not show that it's full > > > > 2011/1/6 Matthew Seaman : > > > On 06/01/2011 11:26, c0re wrote: > > >> # df -h > > >> Filesystem Size Used Avail Capacity Mounted on > > >> /dev/ad0s1a 496M 466M -9.8M 102% / > > >> > > >> So it's full. > > >> > > >> But by du it's not appeared to be full > > >> > > >> > > >> # du -hxd 1 / > > >> 2.0K /.snap > > >> 512B /dev > > >> 2.0K /tmp > > >> 2.0K /usr > > >> 2.0K /var > > >> 1.9M /etc > > >> 2.0K /cdrom > > >> 2.0K /dist > > >> 1.0M /bin > > >> 131M /boot > > >> 10M /lib > > >> 356K /libexec > > >> 2.0K /media > > >> 12K /mnt > > >> 2.0K /proc > > >> 7.2M /rescue > > >> 296K /root > > >> 4.7M /sbin > > >> 4.0K /lost+found > > >> 157M / > > >> > > > > > > Do you have partitions mounted at /tmp, /usr, /var etc? Does the > > > output of your du command change if you unmount those partitions? (It > > > might be an idea to boot into a livefs CD or DVD given that du(1) lives > > > in /usr/bin, so a bit tricky to unmount /usr and then run du) > > > > > > My guess is that you've at one time created files beneath what is > > > usually a mount point. Mounting the partition over them makes those > > > files inaccessible, but they still take up space on the drive. > > > > > > Cheers, > > > > > > Matthew > > > > > > -- > > > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > > > Flat 3 > > > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: > > > matthew@infracaninophile.co.uk Kent, CT11 9PW > > > > > > > > > > At last I found time to check it. Booted with frenzy life cd, mounted > > only / partition and saw trash > > /var/spool. Deleted it and it solved problem. > > But later was and idea to mount device of / (/dev/da0s1a) as /mnt/root > > and just delete those files without need of livecd. It works in Linux. > > But in freebsd i got > > > > # mount /dev/da0s1a /mnt/root/ > > mount: /dev/da0s1a : Operation not permitted > > > > So only single user mode or live cd could solve it. > > *NOT* true. Stopping any daemons that were using "/var/spooll", and then > umount(1)-ing it would have done the trick from multi-user mode. > > > umount / ??? Chris