Joseph Herlant
version 1.0.0, 2013-12-02 : Initial version

Just use the `getconf DISK_SIZE /dev/hdiskX`command replacing the "X" by your hdisk number.

It outputs the size in Mb.

Example:

# getconf DISK_SIZE /dev/hdisk1
51200