Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I mount a zip (or other non-solid (so that accessing a file wouldn't decompress the whole archive) compressed archive format file) as a file system in Ubuntu?

share|improve this question

Install the package avfs then execute:


Say you have a zip file in ~/Documents/, then

cd ~/.avfs/home/$USER/Documents
ls -l

You could also browse the content in Nautilus, but you need to add a trailing # character by hand to the path (Ctrl-L to access the address bar).

share|improve this answer
Very cool!! At the moment it supports floppies, tar and gzip files, zip, bzip2, ar and rar files, ftp sessions, http, webdav, rsh/rcp, ssh/scp. Quite a few other handlers are implemented with the Midnight Commander's external FS – nealmcb Jan 22 '15 at 14:58

In Nautilus, right click on the archive and then click "Open with Archive Mounter", once you've done this, your archive will show up as a new “drive” in Nautilus. (check tutorial here)

share|improve this answer
Intriguing - thanks. But this doesn't actually mount the file like avfs does. I.e. /proc/mounts doesn't change. Archive Mounter uses gvfs, which I guess lets you use gvfs-copy, gvfs-ls, gvfs-rm etc, but I see no way to use most commands, e.g. md5sum. – nealmcb Jan 22 '15 at 15:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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