Shachi Rai wrote:
> 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.
Try `sysctl -n hw.disknames'
then run disklabel on each of them
That might give you what you want.
/Alexander