Login
You're viewing the y.diskcat.com public feed.
  • Sep 30, 2026, 10:20 PM

    Alright, serious question for #NetBSD experts: is there any way to mount and access a BTRFS partition in NetBSD?

    I have been looking and looking and LOOKING for information about this, but keep finding crappy dead ends. I need some means of being able to mount two BTRFS partitions so that I can migrate the data to something that both Linux and NetBSD will use. Here is what I have found:
    1) github.com/adam900710/btrfs-fu A read-only FUSE driver for BTRFS. Appears to be Linux only?
    2) github.com/rustutils/btrfsutils Buried in here is another read-only FUSE driver for BTRFS. Again, seems to be aimed at Linux only.
    3) github.com/maharmstone/btrfs WinBtrfs, Windows-oriented... but is willing to relicense to make it BSD-friendly. github.com/maharmstone/btrfs/i
    4) github.com/lkl/linux/ Linux Kernel Library, aka LKL, which allows for using the Linux kernel as a FUSE driver. There is a version for FreeBSD: freshports.org/filesystems/lkl/ but even I, a complete newbie to the world of the BSD Boys, knows that FreeBSD and NetBSD are completely different operating systems, so I have no idea how portable this is to NetBSD. However if this DOES work with NetBSD, then this would be an excellent solution...

    💬 1🔄 10⭐ 7

Replies

  • Oct 1, 2026, 12:39 PM

    A friend has (in followers only toots??) stated that LKL might work as-is in NetBSD, but doesn't have any BTRFS partitions to test with. If anyone else reading this thread can give it a shot and cook up usage documentation, we might finally have a solution. And the solution would be that Rick and Morty meme:
    🐧What is my purpose?
    🐺BTRFS driver
    🐧Oh, my God

    💬 1🔄 0⭐ 8
  • Oct 1, 2026, 3:30 PM

    "Techo how serious are you about this migration?" I just got home from Walmart with the 2TB NVMe SSD that will become the NetBSD boot disk.
    "Wait WHAT" Yeah I'm just as surprised as you are that you can just walk into a Walmart and buy computer hardware now! Only thing they are missing are motherboards

    💬 1🔄 1⭐ 8
  • Oct 1, 2026, 6:50 PM

    Looks like the current solution is going to be something like:
    -Backup EVERYTHING from Storage Barn (my bigass hoarding drive)
    -Reformat that to be ZFS
    -Move everything back into place
    -Backup my Linux root into Storage Barn
    -Install NetBSD onto new SSD

    I was hoping to try and do something more in-place-y for converting that drive? But when I looked up docs it appears that ZFS wants the entire disk to itself for its pool, so my original plan of "shrink BTRFS volume -> make ZFS volume -> move everything to the ZFS volume -> remove BTRFS volume to reclaim space" wasn't going to work (or if it could have worked, THERE'S NO DOCS FOR IT)

    💬 1🔄 0⭐ 4
  • Oct 1, 2026, 7:32 PM

    This is going to take a while. 81GB of files? Not too bad. But over 2 MILLION FILES? Jesus this is going to take a while :blobfoxgooglyholdingitsheadinitshands: (for the record this is my collection of cloned git repos)

    💬 0🔄 1⭐ 3
  • 💬 0🔄 0⭐ 0
  • Oct 1, 2026, 1:18 AM

    @rl_dane no, because the disks live inside my computer and one of them is currently the primary boot NVMe. (I plan to sink money into a new NVMe disk for NetBSD to preserve the existing Linux install as an emergency backup)

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Oct 1, 2026, 12:40 PM

    @rl_dane That sounds very convoluted and I've not done enough with VM shenanigans to know where to begin.

    💬 0🔄 0⭐ 1
  • Oct 1, 2026, 7:13 PM

    @techokami @rl_dane Well with QEMU one can just pass a disk blockdevice exactly like with raw images files: qemu-system-$arch -enable-kvm -hda /dev/$disk

    (I've done that trick quite a lot here, either to repair systems or tests if it would boot back up after having done a major upgrade)

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 1⭐ 0
  • 💬 0🔄 0⭐ 0