17 hours ago · Tech · 0 comments

FreeBSD newcomers regularly ask me “what’s the equivalent to this Linux command?”. The most common of said commands is lsblk(8) that lists block devices. FreeBSD has a several options depending on the exact details you require: # camcontrol devlist # gpart show # geom disk list # geom -t (this gets the closest to lsblk(8)) And if you’re using GELI for volume encryption, HAST for replication, and ZFS respectively: # geli list # hastctl list # zpool status We also have prolific FreeBSD writer Vermaden’s lsblk script. I didn’t realise until today that it’s even in FreeBSD ports, hence my writing of this post: # pkg update # pkg install lsblk # lsblk As always, the FreeBSD Handbook is your friend. I first typo’d that as fiend, which is rather funny. The purpose of such questions This was originally a caveat at the start of the post, but I spared people my usual waffle until the end this time. Belgians make better waffles than this Scottish/German guy born in Australia who grew up in…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.