Post #1700574
2026-04-26 20:38 UTC
truncate -s 128M fs.img
parted fs.img
mklabel gpt
mkpart primary btrfs 1MiB 100%
quit
sudo losetup --find --partscan --show fs.img
sudo mkfs.btrfs /dev/loop0p1
You should be able to skip thee loop device stuff and work on an actual device instead.
Replies (1)
-
@vortexal@lemmy.ml 2026-04-26 21:29
I got brtfs working on a different storage device but I can’t tell if I set it up properly or not. I’m using the documentation that another user posted but it’s a bit confusing to me and I need to test it more. For my 128 MB sd card, I am trying f2fs because that’s working. It does seem to write much faster than it did with ext4 but it seems to take up more space and it now has about 25% less free space, and it doesn’t seem to compress files. I’ll have to do more testing before I determine whether this what I go with or not. As for squashfs, I probably don’t want that.