Re: Command to display the complete picture of hard drive

2004-05-16 Thread Matt Navarre
On Saturday 15 May 2004 00:26, Stephen Liu wrote:
 Hi folks,

 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.

disklabel(8) and df(1) should give you most of what you need. They'll 
certainly tell you about partitions, used/free space, etc . As for time of 
creation, I don't know of anything that will tell you that. I'd be surprised 
if that was information that was available, it doesn't seem like the kind of 
thing a filesystem needs to know.

 TIA

 B.R.
 Stephen Liu

-- 
[EMAIL PROTECTED]   
it was a hard sell, since he's a database person, and as far as I've seen, 
once those database worms eat into your brain, it's hard to ever get anything 
practical done again. To a database person, every nail looks like a thumb. Or 
something like that. - jwz
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Command to display the complete picture of hard drive

2004-05-15 Thread aekelly
Stephen,

Try using df - it may be what you need.

#df

And, #man df will give you a list of flags.

Alex

On Saturday 15 May 2004 03:26 am, Stephen Liu wrote:
 Hi folks,

 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.

 TIA

 B.R.
 Stephen Liu

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Command to display the complete picture of hard drive

2004-05-15 Thread Stephen Liu
Hi Alex,

 Try using df - it may be what you need.
 
 #df
 
 And, #man df will give you a list of flags.

Tks for your advice.  'df' is the command I'm
searching for.

$ df -ahi
FilesystemSize   Used  Avail Capacity iused  
ifree %iused  Mounted on
/dev/ad4s1a   248M43M   185M19%1791  
312315%   /
devfs 1.0K   1.0K 0B   100%   0  
0  100%   /dev
...

Why the denotation of hard drive = /dev/ad4sla, not
/dev/hda, etc.

B.R.
Stephen


 On Saturday 15 May 2004 03:26 am, Stephen Liu wrote:
  Hi folks,
 
  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.
 
  TIA
 
  B.R.
  Stephen Liu
  

=
Best Regards
Stephen Liu

___
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Command to display the complete picture of hard drive

2004-05-15 Thread Matthew Seaman
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


pgp3a5co40nMK.pgp
Description: PGP signature


Re: Command to display the complete picture of hard drive

2004-05-15 Thread Stephen Liu
Hi, 

Tks for your advice.

- snip -

  Why the denotation of hard drive = /dev/ad4sla,
 not
  /dev/hda, etc.
 
 Because afaik, /dev/hda is a Linuxism. The
 /dev/ad2s1a convention has
 been there long before Linux was even conceived of.

I suppose '/dev/ad2sla' with the HD connected to the
IDE slot of motherboard.

For '/dev/ad4sla' the HD is connected to a controller
card as in my case.

If I am wrong please correct me.

TIA

B.R.
Stephen

___
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Command to display the complete picture of hard drive

2004-05-15 Thread Chuck Swiger
Stephen Liu wrote:
[ ... ]
Why the denotation of hard drive = /dev/ad4sla, not
/dev/hda, etc.
FreeBSD isn't Linux.  ad referrs to (A)TAPI (D)isk, the 4 refers to an IDE 
device which is after the standard primary  secondary channels (which are 
ad0 - ad3), and s1a refers to the first FDISK partition, slice a.

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]