Solaris 10 - How to find the total size of my hard disk?

Friends,
I have an 80 GB HDD, but I wish to know if there is a direct command in Solaris 10 to find out the size of my hard disk (similar to fdisk -l in Linux).
Thank you

saagar

have a look at "iostat -E".

You can run "iostat -E" to get disk information. Otherwise, this shell script might help:

#!/bin/ksh
pfexec fdisk -G /dev/rdsk/c0d0p0 | tail -1 | nawk '{
ncyl=$2
nhead=$5
nsect=$6
secsz=$7
sectors=ncyl*nhead*nsect;
bytes=sectors/(1024/secsz);
printf("%7d MiB %7d MB\n", bytes/1024, bytes*1024/1000/1000);
}'

DukeNuke2 and Jilliagre .. thanks so much for the quick replies. iostat -E is not working, it is shows info about my usb disk, but not hard disk... but the script worked perfect. Thanks a lot for you both...