I am looking for a way to mount a ZIP archive as a filesystem so that I can transparently access files within the archive. I only need read access — the ZIP will not be modified. RAM consumption is important since this is for a (resource constrained) embedded system. What are the available options?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
fuse-zip is an option and claims to be faster than the competition.
# fuse-zip -r archivetest.zip /mnt
archivemount is another:
# archivemount -o readonly archivetest.zip /mnt
Both will probably need to open the whole archive, therefore won’t be particularly quick. Have you considered extracting the ZIP to a HDD or USB-stick beforehand and simply mounting that read-only?
Method 2
You can use fuse-zip to mount zip as read only.
1 — Install fuse-zip on your system.
UBUNTU
sudo apt-get install fuse-zip
CENTOS/REDHAT/FEDORA
yum install fuse-zip
2 — Run below command to mount zip as read only.
fuse-zip -o ro /path/abcd.zip /path/to/mount/directory
3 — Use below command to unmount directory
fusermount -u /path/to/mount/directory
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0