15

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?

13

Install the package avfs then execute:

mountavfs

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

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

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).

  • 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
  • Nice! I was searching for a tool that could mount a rar split into several files, like File.part1.rar, File.part2.rar, etc... or the alternate chunk.rar, chunk.r00 chunck.r01, etc... Apparently avfs is not capable of doing that. Any other solution? – Zakhar Dec 14 '18 at 20:53
4

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)

  • 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 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.