On Thu, 6 Dec 2007 05:21:08 -0800 (PST), Shachi Rai wrote > Hi, > > Currently I am facing a small problem in OpenBSD. I want to get the > information about the total physical Storage and the partition table > > (mounted and unmounted). Please let me know if there is any way out > for getting this information.
Disklabel information, which includes the physical drive (partition c) can be obtained from the disklabel(8) command. If the drive has non-OpenBSD MBR partitions, *and* the disklabel was built after those MBR partitions were created, they will have assigned partitions in the disklabel. Show, in gigabytes, the layout of SCSI drive #0: # disklabel -p g sd0 Show, in megabytes, the layout of IDE/ATA drive #1: # disklabel -p m wd1 Show, in gigabytes/megabytes/kilobytes as needed, the capacity and current utilization of all mounted disks: $ df -h

