6
submitted 4 weeks ago by vermaden@lemmy.ml to c/bsd@lemmy.sdf.org
you are viewing a single comment's thread
view the rest of the comments
[-] pfr@lemmy.sdf.org 1 points 2 weeks ago* (last edited 2 weeks ago)

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

NetBSD-lsblk.sh

[-] vermaden@lemmy.ml 1 points 2 weeks ago

Thanks - I tried it under NetBSD in FreeBSD Bhyve VM - but no luck for me:

netbsd# uname -prsm
NetBSD 10.1 amd64 x86_64

netbsd# ./lsblk.NetBSD
DEV      LABEL        FS     SIZE   USED USE% MOUNT
----------------------------------------------------------------------
disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device

this post was submitted on 08 Jul 2025
6 points (100.0% liked)

Berkeley Software Distribution

511 readers
3 users here now

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.

founded 2 years ago
MODERATORS