From owner-freebsd-questions@FreeBSD.ORG Thu Dec 9 08:48:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DBFE16A4CE for ; Thu, 9 Dec 2004 08:48:33 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC09243D2D for ; Thu, 9 Dec 2004 08:48:32 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id iB98mWYs001729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Dec 2004 00:48:32 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id iB98mV56001727; Thu, 9 Dec 2004 00:48:31 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Thu, 9 Dec 2004 00:48:31 -0800 From: "Loren M. Lang" To: thursday Message-ID: <20041209084831.GB32126@alzatex.com> References: <20041208233913.GA28751@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20041208233913.GA28751@SDF.LONESTAR.ORG> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-questions@freebsd.org Subject: Re: idiot 5.3 disk question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 08:48:33 -0000 On Wed, Dec 08, 2004 at 11:39:13PM +0000, thursday wrote: > Greets, >=20 > I haven't been following FreeBSD much at all lately, having gotten a Linx= admin job, so forgive me: >=20 > I'm installing FreeBSD 5.3 on a new machine. I've added a second disk, an= d 80Gig Maxtor IDE drive. I use sysinstall to partition it, and run disklab= el/newfs, etc, mounting it as "/storage".=20 >=20 > In sysinstall, it shows the disk as being 78G - that's fine. 1024 !=3D 10= 00.=20 >=20 > However, when I run df -h it tells me the disk's capacity is 74G, there's= 4.0K in use (it's empty), but only 68G is available. I'm just confused abo= ut where the 12G went.=20 Well, commands like df and du can only estimate about how much disk space there really is used. du may say a file is only 10 bytes, but it probably takes up at least 1k of space. A 900 byte file probably also takes up 1k so it's not a multiplier, but rounding. My favorite way to find out how much diskspace a drive has left is to do cat /dev/zero > /path/to/test/partition/file, then do a ls -l on the file to see how much space it takes up. Only do this if filling up the partiton won't interfere with anyone or any thing else. You can also do a df -h once full just for kicks. Lastly, a non-root user can only fill a partition to 95% by default so, unless you run it as root, u'll still have 5% free space when done. >=20 > Anyone have any helpful pointers to help me understand?=20 >=20 > Also, what's the ".snap/" directory for?=20 >=20 > Thanks so much! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C =20