Hello. I’m interested in store several files (about a few GB) in a BFS filesystem, to make use of the extended attributes.
At the same time, I also would like to have an easy way to made a backup of them (preserving the extended atributes). Until now, I use to zip them before copying to an external drive, or upload them to Dropbox.
I noticed the “diskimage” tool, that allow to create a virtual BFS filesystem on a file and mout it as a disk. I found interesting the posibility of use it like a BFS disk inside Haiku, and at the same time, the posibility of backup it under other filesystems preserving their atributes, without the need to create a zip file.
Anyone tried this before? There is some advice about my idea?
Totally possible. For example:
Create a 100 MiB image:
dd if=/dev/zero of=MyImage.img bs=1M count=100
Register the image:
diskimage register MyImage.img
Open DriveSetup, find the MyImage.img in the list and format as BFS.
Now you can mount MyImage.img via double-click and unmount with Tracker. Or mount from UserBootscript with:
mkdir -p /MyImage
mount /path/to/the/MyImage.img /MyImage
Reminded me on a small tutorial made by rennj and I translated in Dutch here: http://users.skynet.be/Begasus/boot.htm
I find this feature a very useful one. I have used something similar countless times on macOS, where its Disk Utility app allows easy disk image creation. Maybe one day it gets included in a nice GUI utility.
Thank you to everyone for your answers!
An old tutorial, mkbfs are changed to makefs iirc.
You can mount ans iso, bfs with a double click in the file (haiku). But bfs are haiku only, orther systems does not know bfs (Linux driver are available iirc)