What's the FreeBSD variant of Linux's lsblk
and blkid
?
I want something that provides the same sort of information as lsblk
does in the example below:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
/dev/sda 8:0 0 465.8G 0 disk
├─/dev/sda1 8:1 0 1007K 0 part
├─/dev/sda2 8:2 0 256M 0 part /boot
├─/dev/sda3 8:3 0 9.8G 0 part [SWAP]
├─/dev/sda4 8:4 0 29.3G 0 part /
├─/dev/sda5 8:5 0 29.3G 0 part /var
├─/dev/sda6 8:6 0 297.6G 0 part /home
└─/dev/sda9 8:9 0 16.3G 0 part
/dev/sr0 11:0 1 1024M 0 rom
I've tried running commands like man -k blk
and apropos dev
. There's devinfo
, but I'm not sure if that's what I'm really looking for since it doesn't seem to give me to /dev/<DEVICE>
path for the devices listed.
I even tried devstat
, but that seems equally unhelpful
EDIT:
All I really need to know is the /dev/<DEVICE>
path for each block device connected, and maybe the label of said device (if any); regardless of whether or not they have been mounted yet.
camcontrol devlist
is probably what I want.lsblk
is very essential and FreeBSD shold really consider adapting it.