Solved

Problems with mounting an .iso

Posted on 2006-07-07
4
483 Views
Last Modified: 2010-04-20
I had originally tried to mount an .iso via loopback and it worked
fine if you wanted to nfs mount exactly that share. But if you nested it
so that it was in a directory (like dir1) it wouldn't follow the second
mount.

Any ideas how to get around this issue?

thanks
jculkincys
0
Comment
Question by:jculkincys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 11

Accepted Solution

by:
KurtVon earned 500 total points
ID: 17058984
I'm not sure what you mean by this.  Do you mean you can mount /diskimage.iso but not /dir1/diskimage.iso (which is an odd problem) or do you mean that diskimage.iso has a directory in it called dir1 that you want to mount directly?

If the latter, there isn't much you can do since the ISO image is more than just a directory structure -- it contains a full file system with allocation tables, etc.  The easiest way I know of to "mount" the directory would be to mount the iso and then create a symbolic link to the directory.

Hope this helps.
0
 
LVL 4

Expert Comment

by:yurisk
ID: 17061710
Sequence and the goal of your actions are not clear enough - what is your final goal? What are you
trying to achieve?
What do you do (step by step commands) that problem appears?
0
 
LVL 7

Expert Comment

by:computerfixins
ID: 17063718
I second mr kurt :)

ln -s is the only way i could find, had the same issue...
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 17066523
Ok so you mount your iso as say /mnt/dir1/iso instead of /mnt/iso and you can no longer nfs-mount it - is that the problem?
The system where the iso is mounted needs to export the new mount point. To do this, edit /etc/exports. Then issue the command:-

   exportfs -v -r

to sync the kernel with the changed file.
Now you should be able to do the nfs mount on a remote system. As an example, I have an iso mounted loopback:

  /usr/iso/slackware-10.2-install-d1.iso on /home/dunc/slk1 type iso9660 (ro,noexec,nosuid,nodev,loop=/dev/loop1,user=dunc)

This iso contains a subdirectory called slackware:

10:40:17$ ls -Fx /home/dunc/slk1
ANNOUNCE.10_2     BOOTING.TXT        CHECKSUMS.md5    CHECKSUMS.md5.asc  COPYING    COPYRIGHT.TXT  CRYPTO_NOTICE.TXT  ChangeLog.txt  FAQ.TXT  FILELIST.TXT  GPG-KEY  PACKAGES.TXT  README.NPTL  README.TXT  RELEASE_NOTES
SPEAKUP_DOCS.TXT  SPEAK_INSTALL.TXT  Slackware-HOWTO  UPGRADE.TXT        isolinux/  kernels/       slackware/

I wish to be able to mount slackware from any system on my local LAN, so /etc/exports contains the line:

  /home/dunc/slk1/slackware *.local.net(ro,sync,wdelay)

On another system, I can do:

  mount dimstar:/home/dunc/slk1/slackware /mnt/iso
  ls -Fx /mnt/iso
CHECKSUMS.md5  CHECKSUMS.md5.asc  FILE_LIST  MANIFEST.bz2  PACKAGES.TXT@  README.TXT
a/             ap/                d/         e/            f/             k/
l/             n/                 tcl/       x/            xap/           y/

Further Reading:
=============

  man 5 exports
  man 8 exportfs

Post /etc/exports if problems persist
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 105
postfix start error! 9 85
Granting root permissions to a user (in Debian Jessie) 17 81
regular expression help for sed command 5 62
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question