• Stars
    star
    295
  • Rank 140,902 (Top 3 %)
  • Language
    C
  • License
    Other
  • Created over 12 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

FUSE filesystem to mount squashfs archives
         squashfuse - Mount SquashFS archives using FUSE

               https://github.com/vasi/squashfuse

Squashfuse lets you mount SquashFS archives in user-space. It supports almost
all features of the SquashFS format, yet is still fast and memory-efficient. So
that everyone can use it, squashfuse supports many different operating systems
and is available under a permissing license.

SquashFS is an efficiently compressed, read-only storage format. Support for it
has been built into the Linux kernel since 2009. It is very common on Live CDs
and embedded Linux distributions.

Quick start:
  $ ./configure && make
  $ ./squashfuse foo.squashfs mountpoint


1. Table of contents
====================
0. Introduction
1. Table of contents
2. Getting started
   - System requirements
   - Getting the source
   - Building
   - Usage
3. About squashfuse
   - Is squashfuse for you?
   - What's included?
   - Features
   - Known bugs
4. References
   - Licensing
   - Acknowledgements
   - Links


2. Getting started
==================

2a. System requirements
-----------------------
To build and use squashfuse, you must be able to use the terminal of your
operating system.

Runtime requirements:
  - FUSE 2.5 or later
  - At least one of the following compression libraries
      - zlib
      - lzo2
      - xz (aka. liblzma)
      - lz4
      - zstd
  - (optional) libattr, for better extended attribute support on Linux

Build requirements:
  - A C compiler
  - make (any variant)
  - sed
  - (optional) pkg-config, for detection of dependencies

To build from the development repository, rather than a tarball, you'll need:
  - autoconf 2.60 or later
  - automake 1.11 or later
  - libtool 2

Known fully-supported platforms:
  - Linux
  - Mac OS X
  - FreeBSD
  - NetBSD
  - OpenIndiana
  - Android
  - other platforms may work too!

For a precise list of packages you will need on your OS, and other platform
notes, please see the file `PLATFORMS'.


2b. Getting the source
----------------------
The squashfuse distribution can be downloaded from SourceForge:
https://sourceforge.net/projects/squashfuse/files/

The development repository uses git, at GitHub:
http://github.com/vasi/squashfuse


2c. Installation
----------------
Squashfuse is built with the usual `configure && make'. If you need more
detailed instructions:

0. Ensure you're at your terminal, in the directory containing this README.

1. (if needed) If the file `configure' is already present, skip this step.
   Otherwise, run `./autogen.sh' to generate one.

2. Run `./configure' to set up the build. You can find useful configuration
   options in the file `CONFIGURATION', or by running `./configure --help'.

   If configure fails, check that you really have all the requirements
   installed. You may also want to check the `PLATFORMS' file to see if there
   are any special notes for your operating system.

3. Run `make' to build `squashfuse'.

4. (optional) If you want to use squashfuse in this directory, that's ok.
   But if you'd rather install it, run `make install'. If you need root
   privileges, `sudo make install' may work.


2d. Example: Ubuntu
-------------------

For example on Ubuntu 16.04:

sudo apt-get -y install git autoconf libtool make gcc libtool libfuse-dev liblzma-dev
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure --with-xz=/usr/lib/
make


2e. Usage
---------
You'll need a SquashFS archive to use squashfuse. If you don't already have
one, you can create one using the `mksquashfs' utility from the squashfs-tools
project.

To create a SquashFS archive:
  $ mksquashfs DIRECTORY ARCHIVE

To mount a SquashFS archive with squashfuse:
  $ squashfuse ARCHIVE MOUNTPOINT

To unmount when you're done:
  $ umount MOUNTPOINT         # On Mac/BSD
  $ fusermount -u MOUNTPOINT  # On Linux

For more options, see the man page squashfuse(1).


3. About squashfuse
===================

3a. Is squashfuse for you?
--------------------------
Squashfuse is a great option if you have a SquashFS archive, and:
  - You're not running Linux, or
  - You don't have root access, or
  - You're too concerned about security to use root, or
  - You find it inconvenient to elevate privileges, or
  - SquashFS is not built into your kernel, but FUSE is, or
  - You want to hack on the SquashFS format without risking kernel panics.

Squashfuse is probably not the right tool for the job, if:
  - You don't have FUSE.
    More and more systems have FUSE, but some don't. Squashfuse requires it.
    
  - You have a very old SquashFS archive.
    Neither squashfuse nor the Linux kernel support SquashFS versions less
    than 4.0. Use `unsquashfs' from the squashfs-tools project.

  - You want to create or modify a SquashFS archive.
    Neither squashfuse nor the Linux kernel support write access, use
    `mksquashfs' from squashfs-tools.

  - You want to extract an entire SquashFS archive.
    If you don't want to mount anything, it's more efficient and convenient
    to just use unsquashfs.

  - You want your root filesystem `/' to be SquashFS.
    This isn't well-tested, though it may be possible.
  
  - You're highly concerned about bugs.
    The SquashFS kernel module has seen much more testing than squashfuse.


If you don't yet use SquashFS, consider starting, now that squashfuse exists.
For many uses, the chief drawbacks of SquashFS were requiring Linux and root
access, but squashfuse has that covered.

  - Use SquashFS for archival and backup, instead of tar.
    It offers faster creation (multi-core), and browsing without unpacking.
  
  - Use SquashFS instead of zip. 
    It has better compression, and faster directory lookup.
    
  - Use SquashFS instead of compressed disk images like DMG, uzip or Partimage.
    It has better compression and portability.
  

3b. What's included?
--------------------
Squashfuse currently comprises three programs:

  * squashfuse      Allows you to mount a squashfs filesystem.
  
  * squashfuse_ll   Like `squashfuse', but implemented using the low-level
                    FUSE API. It's a tiny bit faster, but less portable.
  
  * squashfuse_ls   Lists all the files in a squashfs archive. A demonstration
                    of using the squashfuse core in the absence of FUSE.


3c. Features
------------
Squashfuse supports the following SquashFS features: 
  - zlib, LZO, LZMA2, LZ4 and zstd decompression
  - Fast, indexed directory lookup
  - Fast, indexed seeking within files
  - Caching of decompressed blocks
  - De-duplicated files
  - Sparse files
  - Extended attributes
  - Files larger than 4GB

Squashfuse is missing the following features:
  - LZMA1 compression (deprecated)
  - Support for SquashFS versions less than 4.0
  - Multi-core decompression


3c. Known bugs
--------------
- On 32-bit systems with a large inode cache, when mounting a large SquashFS
  archive created with the "-no-exports" option, squashfuse_ll may use a large
  amount of memory. This is due to a bug in the FUSE API, where ino_t is shrunk
  to 32-bits.


4. References
=============

4a. Licensing
-------------
Squashfuse is copyright (c) 2012-2014 Dave Vasilevsky <[email protected]>
Squashfuse is distributed under the 2-clause BSD license. See the file LICENSE
for details.


4b. Acknowledgements
--------------------
Thanks to:

* Phillip Lougher, for designing the SquashFS format, and implementing support
  in the kernel. Also for providing permission to use and distribute
  squashfs_fs.h under a BSD-style license.

* MaΓ«l Kerbiriou, for implementing LZ4 support.


4c. Links
---------
* SquashFS
  - SquashFS home page, includeing squashfs-tools:
    http://squashfs.sourceforge.net/
  - squashfs-tools for non-Linux: https://github.com/vasi/squashfs-tools

* FUSE
  - FUSE home page: http://fuse.sourceforge.net/
  - OSXFUSE (FUSE for Macs): http://osxfuse.github.io/

* Other implementations of the SquashFS format
  - Linux kernel: https://github.com/torvalds/linux/tree/master/fs/squashfs
  - 7-zip / p7zip: http://www.7-zip.org/
  - GRUB 2 bootloader: http://www.gnu.org/software/grub/

More Repositories

1

pixz

Parallel, indexed xz compressor
C
708
star
2

osxutils

Mac-specific command line utilities (UPDATES)
C
108
star
3

positioned-io

Read and write from offsets in Rust.
Rust
63
star
4

vmdk-raw-parts

Create virtual disks which expose partitions of physical disks
Python
55
star
5

qcow2-fuse

Gain access to qcow2 virtual disk images as a user-space filesystem
Rust
53
star
6

lzopfs

Random access to compressed files with a FUSE filesystem
C++
26
star
7

diskfile

Expose a disk block device as a regular file (FUSE)
C
21
star
8

b2gui

A Mac build of the BasiliskII GUI (OBSOLETE)
C++
17
star
9

cloudflare-dns-backup-tool

Backup DNS settings from CloudFlare, and auto-push them to a git repo
Ruby
13
star
10

qcow2-rs

Rust support for qcow2 virtual disk images.
Rust
12
star
11

partorrent

Download only selected pieces of a torrent
Python
12
star
12

evnova-utils

Tools for examining Escape Velocity Nova files
Perl
10
star
13

rEFInd

EFI boot manager (PATCHES)
C
9
star
14

macports-tools

Tools for keeping MacPorts tidy
Ruby
9
star
15

hfsj

Hacky write access to journaled HFS+ on Linux
C
9
star
16

rhfs

Ruby tools for managing HFS disk images
Ruby
8
star
17

block_access_records

Fast block visibility checking for Drupal 8
PHP
7
star
18

partclone-utils

Mount partclone images (PATCHES)
C
7
star
19

event_sort

Drupal module for custom views sort of events
PHP
6
star
20

vdfuse

Mount virtual disks (FORK)
C
6
star
21

firefox-dock-progress

Displays a progress bar in the Mac OS X dock when files are downloading (deprecated)
JavaScript
6
star
22

squash.rb

Pure-ruby squashfs implementation
Ruby
6
star
23

qcow2

qcow2 disk image handling in Go. Also provides a FUSE filesystem!
Go
4
star
24

nicotine.app

Nicotine+ built for Mac OS X
Shell
3
star
25

lmnopuz

multiplayer web-based crosswords (FORK)
Ruby
3
star
26

pystickies

Print OS X stickies to the terminal, even from another OS
Python
3
star
27

montreal-election-data

Election data for the city of Montreal
Ruby
3
star
28

debsizes

Find which packages are using all your disk space (PROTOTYPE)
Python
3
star
29

repo-backup

Backup repositories from hosting services
Ruby
3
star
30

time-machine-size

Determine the disk space used by Time Machine backups
C
3
star
31

migrate_process_file

Drupal 8 migration process for importing files
PHP
3
star
32

gt5

diff-capable 'du-browser' (PATCHES)
Shell
3
star
33

resourcefork

Native reading and writing of resource forks in ruby, no Carbon required
Ruby
2
star
34

nhl_goals

Drupal module to demonstrate scraping paged data with RollingCurl
PHP
2
star
35

fuse-misc

Miscellaneous small FUSE filesystems
C
2
star
36

DockProgressTester

Test Firefox Mac dock progress performance
Objective-C
2
star
37

brewfoster

Keep a clean brew install
Ruby
2
star
38

gpt-print

Dump GPT partition tables
Ruby
2
star
39

drupal_dbtrace

Tracing DB queries in Drupal
1
star
40

vmfuse

Mount foreign filesystems using VirtualBox and lightweight clones (INCOMPLETE)
Ruby
1
star
41

popcon-graph

Terrible attempt at fetching and graphing Ubuntu popcon data
PHP
1
star
42

gitosis2gitlab

Proxy from old gitosis remotes to gitlab
Shell
1
star
43

sshjour

SSH to machines that may or may not be on the LAN
Ruby
1
star
44

edebtags

Ersatz Debian tags and popularity tool
Ruby
1
star
45

toggl2rm

Copy timelogs from Toggl to Redmine
Ruby
1
star
46

docker-netbsd-anita

QEMU-based NetBSD docker image, backed by qcow2
Dockerfile
1
star
47

hotstring

Automatic text expansion in GNOME (proof of concept)
Python
1
star
48

NSMine

Bug-fixed and customized version of the minesweeper app (FORK)
Objective-C
1
star
49

uzip2ulzma

Convert FreeBSD uzip compressed images to higher-compression ulzma
Go
1
star
50

rpmkeeper

Find unused RPM packages
Python
1
star
51

kdelibs

KDE core libraries (PATCHES)
C++
1
star
52

lvmfuse

Make LVM volumes available via FUSE (UNFINISHED)
C++
1
star
53

fuse-uzip

FUSE implementation of FreeBSD's geom_uzip compressed images
C
1
star
54

advent2022

Rust
1
star
55

mac-app-format

Show the executable formats of Mac applications
Perl
1
star
56

xmoto-build

Build scripts for X-Moto on OS X
Shell
1
star
57

honduras-election-2013

Scraped data for the Honduras election
Ruby
1
star
58

migrate_field_translated

Allow field-translated content to be migrated into Drupal 8 [WIP]
PHP
1
star