Skip to content

A macOS sparsebundle compatible read-write network block device (NBD) / FUSE filesystem

Notifications You must be signed in to change notification settings

bgkoh/sparsebundle-fuse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sparsebundle-fuse

CodeFactor

macOS sparsebundle compatible network block device (NBD) / FUSE filesystem

Prerequisites

  • libfuse
  • nbdkit

Building

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

Usage

NBD

  1. Install nbdkit (see https://github.com/libguestfs/nbdkit, your distro may have this already)
  2. Build nbdkit plugin make sparse-nbd.so
  3. Run nbdkit ./sparse-nbd.so path=SPARSEBUNDLE (refer to man nbdkit)
  4. Connect to NBD (refer to man nbd-client)

FUSE

  1. Install fuse (see https://github.com/libfuse/libfuse, your distro may have this already)
  2. Build fuse program make sparse-fuse
  3. Run ./sparse-fuse SPARSEBUNDLE MOUNTPOINT
  4. There should be a sparsebundle.dmg file under MOUNTPOINT

mksparse

This is a script for creating a sparsebundle.

mksparse [-s SIZE] [-b BLOCKSIZE] SPARSEBUNDLE

mksparse -s 1G ./test.sparsebundle

About

A macOS sparsebundle compatible read-write network block device (NBD) / FUSE filesystem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.6%
  • Other 1.4%