Hi,
Great to see your reply,
I would like to explain you in detail,
I am currently writing a java code which tries to find out the total physical storage of an OpenBSD machine. Infact I would like to know the complete partition table in an OPenBSD machine.
I have gone through the disklabel and fdisk command but both these command take the device name as a parameter. So my first question would be to know all the devices which are attached and may or may not be mounted. Once this is obtained, I would run the above commands to get the information about each device.
Or
Is there any option which would directly give the complete physical storage information.
Hannah Schroeter wrote:
Hi!
On Thu, Dec 06, 2007 at 05:21:08AM -0800, Shachi Rai wrote:
>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.
I don't exactly understand what you really want. But I guess you want to
check which disks exist: grep '^[sw]d' /var/run/dmesg.log (I guess that
should cover most disk devices, save for very exotic stuff and floppy
disks).
For exact information, see fdisk(8), disklabel(8), and df(1). For
potential mounts, see fstab(5), for actual mounts, see mount(8).
Kind regards,
Hannah.