On a FreeBSD system, you can use the sysctl command to display information about the hard disks installed on the system.
To list all hard disks installed on the system, you can use the following sysctl command:
# sysctl kern.disks
This will display a list of all hard disks detected by the system, along with their device names and sizes.
For example, the output of the sysctl kern.disks command might look like this:
kern.disks: ada0 ada1
To display information about a specific hard disk, you can use the sysctl command followed by the device name of the hard disk. For example:
# sysctl dev.ada0.%desc
This will display a summary of the hard disk's attributes, including its size and model number.
For more information about using the sysctl command to display information about hard disks, you can refer to the sysctl man page by running man sysctl on the command line.