Ghostly
Welcome!
On GhostBSD, which is based on FreeBSD, many utilities familiar to Linux users such as lsblk
and fdisk
are not available by default. However, equivalents do exist and can be installed or used via the base system.
To get output similar to lsblk
, you can install the FreeBSD-native version with the following command:
sudo pkg install lsblk
This utility is not the same as the Linux version from util-linux
, but it provides similar output by using FreeBSD’s libgeom
to report disk and partition details.
If you are looking for tools to manage partitions, the gpart
utility is the preferred method on FreeBSD-based systems. You can use gpart show
to display partition tables on all detected devices.
For inspecting disks and controllers, camcontrol devlist
will list SATA or SCSI devices, and geom disk list
can provide more detailed information about disk geometry and labels.
In cases where you want to view mount points and devices, mount -v
or mount -p
will give you a clear overview of what is mounted and where.
If you are coming from Linux, it can be helpful to familiarise yourself with these FreeBSD-native tools, as the design philosophy differs slightly but remains very powerful once you get used to it.
For deeper reading, the FreeBSD Handbook’s section on storage devices is an excellent starting point:
https://docs.freebsd.org/en/books/handbook/disks/