AMP AMP

How to install Archivemount on Ubuntu 16.04

How to install Archivemount on Ubuntu 16.04

The Archivemount command is used to mount the file tree contained in the archivepath on the directory mountpoint. It is a FUSE-based file system that mounts the archives to a mount point where it can be read from or written to as other file system. This tutorial explains the installation process of Archivemount on Ubuntu.

Installation procedure

To start the installation procedure, add the repo to the system by executing the following command.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
 This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.

+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of

+-------------------------------------------------------------------------------------+
| To add this repository, to your Ubuntu installation, invoke:
+-------------------------------------------------------------------------------------+
$ sudo add-apt-repository ppa:eugenesan/ppa
.
.
.
gpg: keyring `/tmp/tmp6jp7grtr/secring.gpg'  created
gpg: keyring `/tmp/tmp6jp7grtr/pubring.gpg'  created
gpg: requesting key 8313A596 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp6jp7grtr/trustdb.gpg: trustdb created
gpg: key 8313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

The repositories are added to the system. Now update the repo by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease          
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:3 http://ppa.launchpad.net/eugenesan/ppa/ubuntu xenial InRelease [17.5 kB]                          
Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                        
Get:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                                        
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu xenial/main amd64 Packages [40.6 kB]             
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu xenial/main i386 Packages [40.5 kB]             
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu xenial/main Translation-en [24.7 kB]                                            
Fetched 430 kB in 8s (52.4 kB/s)                                                                                                    
Reading package lists... Done

The system is updated with the repositories. Then install the archivemount package and press y to continue with the installation process.

root@linuxhelp1:~# apt-get install archivemount -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  archivemount
0 upgraded, 1 newly installed, 0 to remove and 480 not upgraded.
Need to get 25.6 kB of archives.
After this operation, 69.6 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu xenial/main amd64 archivemount amd64 0.8.7-0~eugenesan~xenial1 [25.6 kB]
Fetched 25.6 kB in 2s (10.7 kB/s)       
Selecting previously unselected package archivemount.
(Reading database ... 176594 files and directories currently installed.)
Preparing to unpack .../archivemount_0.8.7-0~eugenesan~xenial1_amd64.deb ...
Unpacking archivemount (0.8.7-0~eugenesan~xenial1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up archivemount (0.8.7-0~eugenesan~xenial1) ...

The archivemount is installed successfully in the target system. Execute the following command to know more about the options used in the archivemount.

root@linuxhelp1:~# archivemount -h
usage: archivemount archivepath mountpoint [options]

general options:
    -o opt,[opt...]        mount options
    -h   --help        print help
    -V   --version        print version

archivemount options:
    -o readonly        disable write support
    -o nobackup        remove archive file backups
    -o nosave            do not save changes upon unmount.
                Good if you want to change something
                and save it as a diff,
                or use a format for saving which is
                not supported by archivemount.

    -o subtree=< regexp>     use only subtree matching ^.?< regexp>  from archive
                it implies readonly

    -o formatraw        treat input as a single element archive
                it implies readonly

FUSE options:
    -d   -o debug          enable debug output (implies -f)
    -f                     foreground operation
    -s                     disable multi-threaded operation

    -o allow_other         allow access to other users
    -o allow_root          allow access to root
    -o auto_unmount        auto unmount on process termination
    -o nonempty            allow mounts over non-empty file/dir
    -o default_permissions enable permission checking by kernel
    -o fsname=NAME         set filesystem name
    -o subtype=NAME        set filesystem type
    -o large_read          issue large read requests (2.4 only)
    -o max_read=N          set maximum size of read requests

    -o hard_remove         immediate removal (don' t hide files)
    -o use_ino             let filesystem set inode numbers
    -o readdir_ino         try to fill in d_ino in readdir
    -o direct_io           use direct I/O
    -o kernel_cache        cache files in kernel
    -o [no]auto_cache      enable caching based on modification times (off)
    -o umask=M             set file permissions (octal)
    -o uid=N               set file owner
    -o gid=N               set file group
    -o entry_timeout=T     cache timeout for names (1.0s)
    -o negative_timeout=T  cache timeout for deleted names (0.0s)
    -o attr_timeout=T      cache timeout for attributes (1.0s)
    -o ac_attr_timeout=T   auto cache timeout for attributes (attr_timeout)
    -o noforget            never forget cached inodes
    -o remember=T          remember cached inodes for T seconds (0s)
    -o nopath              don' t supply path if not necessary
    -o intr                allow requests to be interrupted
    -o intr_signal=NUM     signal to send on interrupt (10)
    -o modules=M1[:M2...]  names of modules to push onto filesystem stack

    -o max_write=N         set maximum size of write requests
    -o max_readahead=N     set maximum readahead
    -o max_background=N    set number of maximum background requests
    -o congestion_threshold=N  set kernel' s congestion threshold
    -o async_read          perform reads asynchronously (default)
    -o sync_read           perform reads synchronously
    -o atomic_o_trunc      enable atomic open+truncate support
    -o big_writes          enable larger than 4kB writes
    -o no_remote_lock      disable remote file locking
    -o no_remote_flock     disable remote file locking (BSD)
    -o no_remote_posix_lock disable remove file locking (POSIX)
    -o [no_]splice_write   use splice to write to the fuse device
    -o [no_]splice_move    move data while splicing to the fuse device
    -o [no_]splice_read    use splice to read from the fuse device

Module options:

[iconv]
    -o from_code=CHARSET   original encoding of file names (default: UTF-8)
    -o to_code=CHARSET        new encoding of the file names (default: UTF-8)

[subdir]
    -o subdir=DIR        prepend this directory to all paths (mandatory)
    -o [no]rellinks        transform absolute symlinks to relative

For removing the package, run the following command and press y to continue with the uninstallation process.

root@linuxhelp1:~# apt-get remove archivemount -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  archivemount
0 upgraded, 0 newly installed, 1 to remove and 480 not upgraded.
After this operation, 69.6 kB disk space will be freed.
(Reading database ... 176601 files and directories currently installed.)
Removing archivemount (0.8.7-0~eugenesan~xenial1) ...
Processing triggers for man-db (2.7.5-1) ...

Wasn' t that an easy installation process? The Archivemount can access, compress the contents of the archive.

FAQ
Q
what is the command to check the options of archivemount?
A
Execute the following command to know more about the options used in the archivemount
# archivemount -h
Q
what is the purpose of archivemount?
A
The Archivemount command is used to mount the file tree contained in the archivepath on the directory mountpoint. It is a FUSE-based file system that mounts the archives to a mount point where it can be read from or written to as other file system
Q
How to Make ensure the archivemount package were installed?
A
use the following command # dpkg-query -l | grep archivemount *
Q
any Faster alternative to ArchiveMount?
A
the alternative of ArchiveMount are
You could also create a compressed squashfs image

mksquashfs /etc squashfs.img -comp xz
mkdir img
mount -o squashfs,ro squashfs.img img
Q
How to check version of archivemount?
A
use the following command to check version of archivemount # archivemount -V