Actions
Support #32
openDisplay disk information
Status:
New
Priority:
Normal
Assignee:
-
Start date:
05/01/2026
Due date:
% Done:
0%
Estimated time:
Actions
Added by Sam Bracewell 11 months ago. Updated 11 months ago.
0%
FreeBSD Disk Information
To show all disks in FreeBSD, use geom disk list for all physical drives or gpart show to list partitions on GEOM providers (disks), while mount or sysctl kern.disks show mounted filesystems. The best command depends on what you need: geom disk list for raw devices, gpart show for partitions, and mount for what's currently in use.
To list all physical disks:
geom disk list: Shows all disk-like devices, including physical drives, USBs, and their properties.
sysctl kern.disks: Lists the names of available disks (e.g., ada0, da0).
To see partitions on disks:
gpart show: Displays partition layouts for GEOM providers (disks).
gpart show : Shows partitions for a specific disk, like gpart show ada0.
To list mounted filesystems:
mount: Lists all currently mounted filesystems and their locations.
df -h: Shows disk space usage for mounted filesystems (similar to Linux).
After you add a new disk check if it's recognized using
dmesg | less
or
camcontrol devlist
Then you need to create the desire partition scheme
To add a GPT scheme you can use (For ada1)
gpart add -s GPT ada1
Then the disk will be visible under
gpart show
After that you can add ZFS partition on the disk.
Please read the manual of gpart(8)
Note:
Also there's option to use the whole disk for ZFS pool instead of creating freebsd-zfs partitions. Make some research what are pros and cons for that.