You forgot to post any content on this.
Berkeley Software Distribution
This community is for people to discuss and share anything BSD/Unix related.
While it's not intended to be a "unixporn" clone, screenshots of cool setup's are welcome.
Hi, if you don't mind I add the original link because I think you forgot it in your post:
https://vermaden.wordpress.com/2025/07/08/crucial-freebsd-toolkit
I am a big fan of lsblk
, naturally it is installed on every freebsd box, you did a good job with this tool ;-)
Very informative blog post, thank you.
Thanks :)
Hi Vermaden, great to see you here.
I remember reading about the lsblk.sh some time ago and tried testing it on NetBSD. I ran into some errors, which I can't remember right now. Will test it again and post the output here later.
Hi and thanks for testing it on NetBSD - let me know how it went - we can add that to my repo and I can 'maintain' lsblk(8) that will both for FreeBSD and NetBSD :)
This is what I get on NetBSD 10.1 STABLE
Doesn't look like glabel
is available on NetBSD
Doesn’t look like
glabel
is available on NetBSD
Is there some alternative command for labels on NetBSD?
gpt show sd0
and gpt show -l sd0
will show partition labels (if using GPT)
Could also use dkctl sd0 listwedges
to show wedge names..
I'll have a little play and see what might work best
I would love to sit down on this and just port it to NetBSD ... but this month time is my 'valuable' thing - and I need to provide some things that I need to do for a living - please try and share what you found to work - I would really like to make lsblk(8) also work on NetBSD - as if FreeBSD would not exist - the NetBSD UNIX is the system I would be using instead :)
Yeah, I looked deeper into it and there's just too many differences between each system to make a completely portable *BSD script. Well, is out of scope for my skills at least.
I whipped up a quick and dirty script that sort of emulates lsblk on NetBSD..
Not my finest, but it works on my machine
Also ... is there some gpart(8)
FreeBSD equivalent on NetBSD?