This question was #3 in google today on the topic of mounting 2 ISO images to the same directory. Figured I'd answer it once I figured it out.
There are 4 tools at your disposal:
- UnionFS-FUSE
- UnionFS
- aUFS
- UnionMount
The first is preferred because it only requires
FUSE support and in Fedora/CentOS/RHEL it is already packaged by Fedora/EPEL.
Whereas the rest require patching core parts of your distribution and probably isn't worth the effort for something this simple.
So this assumes using fuse-unionfs. In RHEL/CentOS you can install the necessary software like so (Assuming you have the EPEL repository enabled).
Code:
sudo yum -y install funionfs
Then all you need to do is create 3 empty mount points. Call them disc1, disc2, and full.
Mount the first iso into disc1, the second into disc 2.
Code:
(sudo mount -o loop /path/to/image.iso /mnt/disc1)
Lastly, merge the 2 mountpoints.
Code:
funionfs none /mnt/full -o dirs=/mnt/disc1=ro:/mnt/disc2=ro
I never did get this to work using `mount -t fuse funionfs#' syntax.
LJ Article introducing UnionFS. Also,
this blog post was helpful. The man page explains why I used 'none' as the second parameter.
HTH!