ARCHIVEMOUNT(1)

πŸ’… ARCHIVEMOUNT(1) β€” General Commands Manual πŸ’…

okay bestie, buckle up, because this is archivemount, and it's literally the coolest little trick in the whole Unix playbook ✨


🌸 NAME 🌸

archivemount β€” mount an archive for access as a filesystem πŸ’–


✨ SYNOPSIS ✨

archivemount [-hVdf] [-o option[,option]…]… archive mountpoint

πŸ¦‹ DESCRIPTION πŸ¦‹

So like. Through fuse(8), this thing mounts a whole file tree β€” the one chillin' inside archive β€” onto the directory mountpoint. That's it, that's the magic 🌈

And when you're done being obsessed with it, umount and fusermount -u can undo the whole mapping. no cap.


πŸ“ EXAMPLES πŸ“

bestie, watch this:

$ ls
files.tar.gz    mnt/
$ tar -tf files.tar.gz
file1           file2
$ archivemount files.tar.gz mnt
$ ls mnt
file1           file2
$ echo zupa > mnt/file3
$ rm mnt/file1
$ umount mnt
$ ls
files.tar.gz    files.tar.gz.orig       mnt/
$ tar -tf files.tar.gz
file2           file3

like… you literally edited a tarball in place and it just worked. main character energy, fr fr πŸ‘‘

and here's the second one, the subtree slay:

$ tar -tf voreutils.tar.gz
src/            src/…
man/            man/aliases              man/basename.1
README.md
$ archivemount -o subtree=man voreutils.tar.gz mnt
$ ls mnt
aliases         basename.1

the way it just yeeted everything except man/ and stripped that prefix off too?? iconic. periodt. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

heads up: for the complete list of baseline FUSE options that are supported, go peek at fuse(8). 🫢 but these ones right here? archivemount handles them specially:

  • -h, --help β€” writes the usage info AND all the available options out to the standard error stream, then dips. πŸ‘‹
  • -V, --version β€” writes the version of archivemount, libarchive, and FUSE to the standard output stream, then dips. ✌️

  • -r, -o ro, -o readonly β€” disables writes entirely. no writing, none, zero. πŸ™…β™€οΈ
  • -o password β€” prompts you for the archive passphrase. πŸ”
  • -o nobackup β€” so when you save writes, the original archive gets moved to "archive.orig". this flag deletes that file afterward. πŸ’€
  • -o nosave β€” lets writes happen in memory, but doesn't actually write them out when you unmount. the vibes are temporary, bestie. πŸ«₯

  • -o subtree=regex β€” hides all files that don't match regex, and for the ones that do match, it removes the matched prefix (peep the second example up there πŸ‘€). regex is a basic regular expression that behaves as-if it were prepended with the equivalent of ^.?. implies -r. 🌈
  • -o formatraw β€” archive is actually a compressed file, made available under mounpoint/saved-filename or mounpoint/data. implies -r. 🌟

πŸ’€ BUGS πŸ’€

Writing archives, probably. 😭 (not me being honest)


🧚 ARCHIVE FORMATS 🧚

libarchive(3) has the definitive list if you wanna go read it, but basically: all kinds of tar/ustar/pax/cpio archives, 7-Zip, ISO9660, ar, and RAR/Zip may all be read. πŸ‘‘

and those can be compressed with gzip(1), xz(1), zstd(1), &c. β€” and all of it gets processed transparently, no extra work from you. πŸ’–

same deal applies for writing… except you can't write RARs. 🚫


πŸ‘‘ SEE ALSO πŸ‘‘


omg and before you go β€” this whole page is from archivemount-ng, version 1b-1build1, dated February 3, 2026. mwah πŸ’‹ go mount something βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from