It's possible to mount a compressed archive in Linux as if it were a directory using tools like archivemount or gvfsd-mount, both of which depend on libarchive. This only works for "proper archives", though; collections of multiple files with a directory structure. Is there a way to mount single compressed files? In other words, mount a .bz2 as opposed to a .tar.bz2.

Previous discussions:

  • @slm: That link does not answer the question. Zip files are archives of multiple files, bz2 files are not. Are you sure it can be used with bz2 files? – endolith Nov 22 '13 at 14:59
  • Ah, I missed that last sentence of your Q. I'm not sure it can, sorry. – slm Nov 22 '13 at 15:03

Why, yes there is, sort of. There's a FUSE filesystem called fuseflt that does almost what you want. Rather than mounting a single file, it mounts a directory. Within the mount, you can set up arbitrary filters. The documentation gives your specific example: mounting a directory full of zipped files so that they appear to be unzipped.

  • That looks promising, but I have yet to try it. – endolith Oct 16 '09 at 14:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.