From owner-freebsd-questions@FreeBSD.ORG Tue Oct 2 14:50:10 2007 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 CF47916A419 for ; Tue, 2 Oct 2007 14:50:10 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 69A3713C4A5 for ; Tue, 2 Oct 2007 14:50:10 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l92EmkuJ077014; Tue, 2 Oct 2007 10:48:46 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l92EmkSu077013; Tue, 2 Oct 2007 10:48:46 -0400 (EDT) (envelope-from jerrymc) Date: Tue, 2 Oct 2007 10:48:46 -0400 From: Jerry McAllister To: Zbigniew Szalbot Message-ID: <20071002144846.GC76893@gizmo.acns.msu.edu> References: <94136a2c0710012212x506ebc0ajf76ef69ec2f36720@mail.gmail.com> <20071002051809.R57595@duane.dbq.yournetplus.com> <94136a2c0710012223q64102a41y93f3f983fcfc0137@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94136a2c0710012223q64102a41y93f3f983fcfc0137@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org, Duane Hill Subject: Re: determining the space used in / partition 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: Tue, 02 Oct 2007 14:50:10 -0000 On Tue, Oct 02, 2007 at 07:23:30AM +0200, Zbigniew Szalbot wrote: > Hello again, > > > > Through df I realized my / partiotion is out of space: > > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > > /dev/ad0s1a 198126 196070 -13794 108% / > > > devfs 1 1 0 100% /dev > > > /dev/ad0s1e 44511308 4217762 36732642 10% /usr > > > /dev/ad0s1d 30462636 3210580 24815046 11% /var > > > devfs 1 1 0 100% /var/named/dev > > > /dev/da0s1c 75685352 34308200 35322324 49% /mnt/usbck > > > > > > How can I determine what occupies the space in it? That is, it is not > > > big as you can see. So I issued: > > > du -hs / > > > but it was taking ages (I am not sure but maybe du -hs counts all > > > directories on the HD? > > > > > > Anyway, I do not really know where to look what has eaten the / space. > > > Were it for /usr or /var, it would be obvious to me where to look for > > > information. > > > > > > Many thanks! > > > > I don't see you have defined a /tmp partition. Perhaps /tmp is taking up > > all the space. Try: > > > > du -h /tmp > > > > and see how much /tmp is taking up. > du -hs /tmp > 1.4M /tmp > > du -hs / > 40GB > > One thing that comes to my mind. Each Sunday I have a script which > makes a full dump of the HD to a back-up USB drive. Last weekend > someone cleaining the computer room, must have accidentally powered > off the USB drive. As a result, the dump has not been completed > because the USB drive was not mounted at that time. I use cron for > this task. Does it matter could have caused this? It probably then wrote a large dump file at the mount point you usually use for the USB drive. It looks like /mnt/usbck now has 34 GB in it. Is /mnt/usbck where the USB is normally mounted? Maybe, if you unmounted the USB and then looked at it, you would find the used up space. But, a previous poster could also be correct that it might be that you have filled up /tmp, maybe with error writes or something. When I use du I like to do the following: cd /directory_of_interest du -sk * That gets the summary of each directory and file in that directory_of_interest. I like the 'k' better than 'h' because the 'h' doesn't use the same divider for each displayed file or directory. It uses the biggest for each with a letter appended to tell which. This is a little difficult to quickly compare with a visual scan. With the 'k' it is always 1,000 and then I can run my eye down the list and easily see which file is bigger/smaller, etc. ////jerry > > Thanks! > > zbigniew szalbot > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"