Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a large NFS share with a variety of software ISOs on it.

I've only tried this on Red Hat Enterprise Linux, but when trying to do the following, the mount comes back with an error indicating no permissions to mount. Why would this be happening?

NFS is mounted thusly:

mediaserver:path/to/isos /media/nfs

This is the mount call that fails

mount -o loop /media/nfs/product.iso /tmp/product

If I copy the ISO, there is no issue. The NFS share is mounted rw.

How can I loop mount the ISO from the NFS share without copying it first?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted
+25

I don't think you can mount an ISO as read-write.

Try mounting the iso with -o loop,ro,noexec.

You can also modify the NFS /etc/exports as to add no_root_squash. For more info see here.

share|improve this answer
    
thanks, harrymc - I knew it had to be simple :) –  warren Sep 10 '10 at 13:59
    
How come the bounty for this hasn't been awarded? –  imoatama Sep 15 '10 at 3:29
    
@imoatama - my guess is that it will auto-award at the end of the bounty period... but I don't know for sure –  warren Sep 15 '10 at 13:28
    
To the moderator: This is an old question that was given a 50 rep bounty a few months after it was posted. The answer was accepted 6 days ago, but somehow I ended up only today with only 25 rep. Could this glitch be corrected? –  harrymc Sep 16 '10 at 20:50
    
Accept and Bounty are not holding hands any more. meta.stackexchange.com/q/56789/9314 - If the bounty isn't manually awarded, only half is given at the end by the auto-bountifier. –  random Sep 16 '10 at 21:25
show 4 more comments

For the sake of presenting all alternatives for any future viewers the following works also:

mount -o loop -t iso9660 /media/nfs/product.iso /tmp/product

I've found it easier to remember to simply specify the filesystem, in this case ISO using the -t option.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.