Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 May 2004 10:03:47 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Stephen Liu <satimis@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Command to display the complete picture of hard drive
Message-ID:  <20040515090347.GD56326@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040515072628.38116.qmail@web40311.mail.yahoo.com>
References:  <20040515072628.38116.qmail@web40311.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040515090347.GD56326>