Command to display the complete picture of hard drive

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat May 15 02:03:52 PDT 2004


On Sat, May 15, 2004 at 03:26:28PM +0800, Stephen Liu wrote:

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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040515/b2bb96c3/attachment.bin


More information about the freebsd-questions mailing list