|
| 1 | +sparsebundlefs |
| 2 | +================ |
| 3 | + |
| 4 | +FUSE filesystem for reading Mac OS sparse-bundle disk images. |
| 5 | + |
| 6 | +Mac OS X v10.5 (Leopard) introduced the concept of sparse-bundle disk images, where the data is |
| 7 | +stored as a set of small fixed-size *band* files instead of as a single monolithic file. This |
| 8 | +allows for more effective backups of the disk image, as only the changed bands need to be |
| 9 | +stored. |
| 10 | + |
| 11 | +One common client of sparse-bundles is Mac OS's backup utility, *Time Machine*, which stores |
| 12 | +the backup data within a sparse-bundle image on the chosen backup volume. |
| 13 | + |
| 14 | +This software package implements a FUSE virtual filesystem for read-only access to the sparse- |
| 15 | +bundle, as if it was a single monolithic image. |
| 16 | + |
| 17 | +Installation |
| 18 | +------------ |
| 19 | + |
| 20 | +Clone the project from GitHub: |
| 21 | + |
| 22 | + git clone git://github.com/torarnv/sparsebundlefs.git |
| 23 | + |
| 24 | +Or download the latest tar-ball: |
| 25 | + |
| 26 | + curl -L https://github.com/torarnv/sparsebundlefs/tarball/master | tar xvz |
| 27 | + |
| 28 | +Install dependencies: |
| 29 | + |
| 30 | + - [OSXFUSE][osxfuse] on *Mac OS X* |
| 31 | + - `apt get install libfuse-dev libfuse2 fuse-utils` on Debian-based *GNU/Linux* distros |
| 32 | + - Or install the latest FUSE manually from [source][fuse] |
| 33 | + |
| 34 | +Compile: |
| 35 | + |
| 36 | + make |
| 37 | + |
| 38 | +**Note:** If your FUSE installation is in a non-default location you may have to |
| 39 | +export `PKG_CONFIG_PATH` before compiling. |
| 40 | + |
| 41 | +Usage |
| 42 | +----- |
| 43 | + |
| 44 | +To mount a `.sparsebundle` disk image, execute the following command: |
| 45 | + |
| 46 | + sparsebundlefs [-o options] sparsebundle mountpoint |
| 47 | + |
| 48 | +For example: |
| 49 | + |
| 50 | + sparsebundlefs ~/MyDiskImage.sparsebundle /tmp/my-disk-image |
| 51 | + |
| 52 | +This will give you a directory at the mount point with a single `sparsebundle.dmg` file. |
| 53 | + |
| 54 | +You may then proceed to mount the `.dmg` file using regular means, *eg.*: |
| 55 | + |
| 56 | + mount -o loop -t hfsplus /tmp/my-disk-image/sparsebundle.dmg /mnt/my-disk |
| 57 | + |
| 58 | +This will give you read-only access to the content of the sparse-bundle disk image. |
| 59 | + |
| 60 | +License |
| 61 | +------- |
| 62 | + |
| 63 | +This software is licensed under the [BSD two-clause "simplified" license][bsd]. |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | +[osxfuse]: http://osxfuse.github.com/ "Fuse for OSX" |
| 68 | +[fuse]: http://fuse.sourceforge.net/ "FUSE" |
| 69 | +[bsd]: http://opensource.org/licenses/BSD-2-Clause "BSD two-clause license" |
0 commit comments