LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   browsing an iso file in a nfs share (https://www.linuxquestions.org/questions/linux-newbie-8/browsing-an-iso-file-in-a-nfs-share-547209/)

linuxnewbie_2007 04-18-2007 11:23 PM

browsing an iso file in a nfs share
 
how do i brose an iso file located in a NFS share? Lets say I have the installation iso files located in a NFS share, I have mounted the installation iso files at /mnt/remote. Now if i run the #ls -la all i see is disk1.iso, disk2.iso etc. but I need to see the detailed files (ie. rpm, EULA, .diskinfo) like the ones i can see if i mount the first installation cd and run #ls -la.

thanks for your help.

MS3FGX 04-19-2007 12:39 AM

Unless I am misunderstanding your question, you just mount the ISOs as a loopback device like you would if they were on the local file system.

linuxnewbie_2007 04-19-2007 02:53 AM

yes thats what i was trying to do. Now since i am a newbie, how do i do that? I tried # mount -t nfs -o loop 192.168.0.100:/mnt/inst/disk1.iso /mnt/share but i am getting an error:
192.168.0.100:/mnt/inst/disk1.iso: No such file or directory.
I know the NFS server is working because if run #mount -t nfs 192.168.0.100:/mnt/inst /mnt/remote it works.

thanks for your help.

Bruce Hill 04-19-2007 06:28 AM

In a terminal as root:
Code:

mount -oloop /mnt/inst/disk1.iso /mnt/share
where /mnt/inst/disk1.iso is the location of that ISO image, and /mnt/share is where you want to mount it. You must have the loop module in your kernel, also. If "lsmod" does not list loop, then issue "modprobe loop" as root first.

windycity_linux 04-19-2007 12:41 PM

but dont i need to specify the server address as well? JUst wondering.

MS3FGX 04-19-2007 01:05 PM

No, if the NFS share is already mounted, then as far as the system is concerned, that is a local file system.

So you just mount it how you would if the ISO was on your own HDD.

Bruce Hill 04-19-2007 04:30 PM

Mounting a NFS (or other) filesystem and mounting an ISO image are two separate issues. You appear to already know how to mount the NFS filesystem. Once you've done that, then the ISO image is just a file there -- so now you mount that *.iso using the method outlined above.

The reason you got the error
Code:

192.168.0.100:/mnt/inst/disk1.iso: No such file or directory
is because you were trying to mix the mounting of the NFS share and the ISO image in one command. Therefore, there was no file to be mounted. Mount the NFS filesystem first, then mount the ISO image.


All times are GMT -5. The time now is 08:58 AM.