Allow user mount of ISO on loop device?

Bug #18078 reported by Karl Hegbloom
30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pmount (Ubuntu)
Confirmed
Wishlist
Unassigned
Nominated for Jaunty by mrl586
Nominated for Karmic by mrl586

Bug Description

It would be nice to have an option to loop mount an ISO image when I right click
on the icon. The 'archive-manager' can look inside a CDROM image, but you
cannot browse HTML files there, for instance. Loop mounting it would allow
that. For now, I'm adding them to /etc/auto.misc, and that works, but it would
be cooler to be able to select 'mount' from the Nautilus menu.

Q: Is there a limited number of loop devices? Are they cleaned up properly by
umount? Does ISOFS support UID mount option?

Q: What about other file system image types, such as user mode Linux drive
images, VMware volumes, or initrd.gz images?

Revision history for this message
Andrea Garbarini (garba) wrote :

this is one damn cool feature i'd like to see implemented

Revision history for this message
paniq (paniq) wrote :

i second this. its hot.

Revision history for this message
Clebson Abati Graeff (cgraeff) wrote :

It would be great. I'm just looking for a way to do that with scripts, but it's not as cool as having a option in the context-menu. It would be nice to umount in Nautilus the same way of ejecting a CD (with scripts you need to choose umount in the context menu of the file you umounted, and it's not graceful)

Revision history for this message
Clebson Abati Graeff (cgraeff) wrote :

[...] in the context menu of the file you *umounted*, and [...]

I mean the file you mounted

Revision history for this message
Martin Pitt (pitti) wrote :

BTW, Feisty does not use pmount any more, we use hal's mounting backend now. Thus this needs a different solution again (using FUSE would do the trick quite nicely; however, since file-roller opens ISO images just fine this still isn't urgent)

Revision history for this message
David Tomaschik (matir) wrote :

One should take note of the security implications of this, though they are no different from any removable media: executables, particularly those setuid root...

Revision history for this message
Victor Engmark (victor-engmark) wrote :

I second this, with a couple cents added:

Has anyone checked out the script at http://ubuntu.wordpress.com/2005/10/24/nautilus-script-to-mount-iso-files/ ?

What do you think about adding a step to the mounting process creating a symbolic link to /media/iso (or whatever) from the directory where the ISO file is, named after the ISO file? E.g., add the following to the script in the link:
sudo ln -s /media/iso "`dirname $isofile`/`basename $isofile`"

Revision history for this message
Victor Engmark (victor-engmark) wrote :

Awright, here's a mount script that works in Nautilus and on the shell (albeit with graphical dialogs).

As a bonus, it will create a symlink as described above - I.e., if you mount /home/user/foo.iso, you'll have a symlink at /home/user/foo to the mount point.

Working on the unmount script...

Revision history for this message
Victor Engmark (victor-engmark) wrote :

PS: To use, just copy the script to ~/.gnome2/nautilus-scripts/ and either:
- right-click one / several ISO files and select Scripts -> mountiso.sh or
- run it in a shell with the file names as parameters

Revision history for this message
Victor Engmark (victor-engmark) wrote :

...and here's the unmount script. Same procedure.

Revision history for this message
Victor Engmark (victor-engmark) wrote :

Sorry for all the messages, but there's a new version available - It now checks that the files are ISO compatible before attempting to (un-)mount them. I'll keep posting updates at http://l0b0.net/blog/?p=117

Revision history for this message
Martin Pitt (pitti) wrote :

I'm not maintaining pmount any more.

Changed in pmount:
assignee: pitti → nobody
Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

Could this script be added to the official Ubuntu repository?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.