LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-30-2005, 04:13 PM   #1
ritme909
Member
 
Registered: Nov 2004
Location: Washington DC
Distribution: Debian, LFS, FC2
Posts: 43

Rep: Reputation: 15
Mounting 2 ISO's to the same directory


Hi, I was wondering if it is possible to mount two ISO's to the same directory. For example I try this:

mount -o loop firstiso.iso mountpoint
then
mount -o loop second.iso mountpoint

But when I mount the second ISO it seems to unmount the first (or at least the files from the first ISO are no longer there). I need all the files from both ISO's in the same directory. I hope this makes sense, any help is appreciated.

Thanks
 
Old 04-30-2005, 04:23 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Nope, you can't do that. When you mount the second, it overlays the first mount. If you were to unmount the second, the first would probably reappear.

You'll need to do one of a couple things:
1. Create a new image file that contains the files from both. You could do that by mounting each file separately, but copying their contents to a single, other directory. For instance:
Code:
mount -o loop firstiso.iso /first_iso
mount -o loop secondiso.iso /second_iso
cp -R /first_iso/* /new_iso_directory
cp -R /second_iso/* /new_iso_directory
Then create the new iso from the contents of /new_iso_directory, or simply just access what you need from there.


2. Again, mount the iso files separately, but then do a symbolic link to the files from another directory. Basically the same thing as above, but using ln.
 
Old 04-30-2005, 04:38 PM   #3
ritme909
Member
 
Registered: Nov 2004
Location: Washington DC
Distribution: Debian, LFS, FC2
Posts: 43

Original Poster
Rep: Reputation: 15
Option number 1 isn't possible because I have very limited disk space, but the symbolic link idea works great, thanks!
 
Old 08-17-2011, 08:41 PM   #4
Garlic Overtone
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora Core
Posts: 6

Rep: Reputation: 0
Talking Solved

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:
  1. UnionFS-FUSE
  2. UnionFS
  3. aUFS
  4. 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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting iso's sonic04002 Linux - Newbie 26 11-24-2005 08:41 AM
mounting iso's Haloony Linux - Newbie 8 10-27-2005 01:02 AM
mounting iso's lofi dawharl Solaris / OpenSolaris 4 11-15-2004 03:03 AM
Mounting ISO's InsaneBob Linux - Software 1 09-26-2003 09:09 PM
mounting .iso's hyperpimp Linux - Networking 4 05-15-2002 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration