macOS sparsebundle compatible network block device (NBD) / FUSE filesystem
- libfuse
- nbdkit
Linux
(The fuse implementation is also macOS compatible, but you should use the system built-in Disk Utility instead of this.)
git clone --recursive https://github.com/gyf304/sparsebundle-fuse.git
cd sparsebundle-fuse
autoreconf -i
./configure
# build everything
make
- Install nbdkit (see https://github.com/libguestfs/nbdkit, your distro may have this already)
- Build nbdkit plugin
make sparse-nbd.so
- Run
nbdkit ./sparse-nbd.so path=SPARSEBUNDLE
(refer toman nbdkit
) - Connect to NBD (refer to
man nbd-client
)
- Install fuse (see https://github.com/libfuse/libfuse, your distro may have this already)
- Build fuse program
make sparse-fuse
- Run
./sparse-fuse SPARSEBUNDLE MOUNTPOINT
- There should be a
sparsebundle.dmg
file underMOUNTPOINT
This is a script for creating a sparsebundle.
mksparse [-s SIZE] [-b BLOCKSIZE] SPARSEBUNDLE
mksparse -s 1G ./test.sparsebundle