From owner-freebsd-questions@FreeBSD.ORG Sat May 15 02:03:52 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 6C36516A4CE for ; Sat, 15 May 2004 02:03:52 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5275143D58 for ; Sat, 15 May 2004 02:03:51 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i4F93l5d057241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 15 May 2004 10:03:47 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i4F93lbi057240; Sat, 15 May 2004 10:03:47 +0100 (BST) (envelope-from matthew) Date: Sat, 15 May 2004 10:03:47 +0100 From: Matthew Seaman To: Stephen Liu Message-ID: <20040515090347.GD56326@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Stephen Liu , freebsd-questions@freebsd.org References: <20040515072628.38116.qmail@web40311.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5oH/S/bF6lOfqCQb" Content-Disposition: inline In-Reply-To: <20040515072628.38116.qmail@web40311.mail.yahoo.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Command to display the complete picture of hard drive 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: Sat, 15 May 2004 09:03:52 -0000 --5oH/S/bF6lOfqCQb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 15, 2004 at 03:26:28PM +0800, Stephen Liu wrote: > FreeBSD 5.2 >=20 > What command will be used to display the complete > history of the hard drvice (other than fdisk) listing > all partitions, their allocated space, used space, > available space, date of creation, etc. I don't think that there is a single command that will get you all that. There are quite a few commands that will get you bits of that: fdisk(8), bsdlabel(8), fsinfo(8), df(1) although I don't think that all of the dates you want to see are stored anywhere. The Unix way of dealing with this sort of thing is to write a script wrapping together all of those tools and massaging the output into whatever form you want. Which does presuppose some reasonable facility with shell programming. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --5oH/S/bF6lOfqCQb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFApdzziD657aJF7eIRAjNYAJ9foTSBPLPru1a7QytHTQVrJspyRwCdE/lk ZUJx/kvMYVeF3dJ/khTj/V4= =2V/e -----END PGP SIGNATURE----- --5oH/S/bF6lOfqCQb--