I was recently looking around to see if there was a BSD equivalent to the lsblk
command or perhaps even a port of blkutils
to BSD. I didn't find much, except for this nearly 10 year old post by vermaden.
I don't have a FreeBSD system so I'd be curious to know if this script still works on FreeBSD. Is surely doesn't work on NetBSD, but I wonder if anyone might be able to work with this as a starting point to getting a workable script on NetBSD?
I agree with vermaden, I just really like the lsblk
command. I know it's not a necessity, but it's neat nonetheless.
Unless there is some other tool that does the same job that I've missed? There is rsblk which is a rust rewrite of lsblk
but again, only for FreeBSD.