Actually, this is really easy easy to implement. Here are the scripts that I use all the time.
/usr/local/bin/isomnt
This bash script will mount or unmount an ISO file that you pass to it in the /media folder.
Example:
$-> isomnt myimage.iso
-----------------
#!/bin/bash
# ISO Mount/unmount Script
# Jeremy Pyne
# 01/09/2007
if [ -e "$*" ]; then
if [ -d /media/"$*" ]; then
echo "Unmounting '$*'..."
sudo umount -d /media/"$*"
sudo rmdir /media/"$*"
else
echo "Mounting '$*'..."
sudo mkdir /media/"$*"
sudo mount -o loop "$*" /media/"$*"
fi
else
echo "No image found to mount."
fi
-----------------
~/.gnome2/nautilus-scripts/(Un)Mount ISO
This Nautilus script will mount or unmount an iso file when you right-click->Scripts->Mount, again to the media folder.
-----------------
#!/bin/bash
# ISO Mount/unmount Script (Nautilus)
# Jeremy Pyne
# 01/09/2007
if [ -d /media/"$*" ]; then
gksudo ls /media
sudo umount -d /media/"$*"
sudo rmdir /media/"$*"
else
gksudo mkdir /media/"$*"
wd=$NAUTILUS_SCRIPT_CURRENT_URI#file://
sudo mount -o loop "$wd/$*" /media/"$*"
fi
-----------------
sudo mount /repertori/file.iso -o loop /media/iso
so you should use this comand by choosing favorite aplication
(fakeroot/gksudo) mount 0 -o loop /media/iso
need an existing folder /media/iso
I think the point is that it would be nice to have one of those methods implemented by default and easily accessible by those who don't want or are too afraid to write scripts or run commands at the terminal.
Also it would be nice if it would give you the option of mounting it automatically at boot time. Like if you wanted a ISO to always be mounted (The Ubuntu installation DVD for instance) And an option for you to STOP it from being auto mounted.
I think it should definitely be possible to simply mount .ISO images from Nautilus(/Konqueror/Thunar), it should probably be the default(double-click) action, although opening it in Archive Manager seems logical as well.
It would also be nice if you didn't need root privileges to do this, since you can open the file in Archive Manager anyway.
I'm not sure how stable the cdemu project is, but it would be nice to make use of that to mount other image formats besides .ISO as well.
I voted no for this, because in my opinion, the default action that makes most sense is to open the image in an application to BURN it to a CD. This is certainly what I do most often with ISO's. Other than that, I don't even use them myself.
I do believe, however, that it is a must for ISO files to have a context (right-click) option to mount the image automagically.
Right, I think we all agree there are three "sane" actions to perform when someone double-clicks on an image file:
* mount it as a virtual optical drive
* open it in Archive Manager
* burn it to blank optical media
I believe options 1 and 2 are functionally the same for most users ("Hey, now I can browse the files."). Regardless, it should be trivial to change the default action.
How about asking the user the first time? Pop up a dialog asking:
"This file contains a [CD/DVD/Double-sided DVD/whatever, based on size] image. What should I do?
Pretend it's a real [CD/DVD/etc]
Open it in Archive Manager
Burn it to a real [CD/DVD/etc]
[] Always do this with [CDs/DVDs/etc] images. This setting can be changed later through ."
And of course an appropriate setting would be added in the UI. This would enable the user to, for instance, burn a CD but mount a DVD (assuming they have a combo drive).
We could use a Nautilus script like the proposed one, implemented by the right Click but the user can't confirm sudo password every time he mounts an image. It must be automatic.
Another question would be, why should this require sudo or any sort of root access? Mounting a disk image should be doable entirely in userland. (I recognize that this is difficult today, but there's no reason mounting should need root access - it's just another of the "doing it this way is easier" things that lead to the hideous situation with Windows permissions.)
I agree with most people that mounting ISO files is easy enough, though not obvious. There must be a GUI tool for this.
But one thing i am looking for is a "daemon tools" for linux.
It must support mdf files most importantly, as converting 4-7 gb images to iso format is not fun.
any other image format support will not hurt either.
Afaik there exists already a Gnome virtual fs plugin for this. It handles at least iso's perfectly, I have used it for several times some time ago. If not, this is a place for making new GVFS plugin :-)
Gmount-iso is already here. Its not one click mount, but still quite easy (right click on iso 'open in gmount-iso', then choose location to mount, click mount button - done). Maybe small upgrades to that application would solve all problems.
1. allowing to auto mount lets say inside /tmp and auto open file browser
Lets say we install gmount-iso open it then select 'allow automount' checkbox. After that whenever you right click on iso image and choose 'open in gmount-iso' gmount automatically mount in /tmp/isoname and show you files.
I don't think gnomevfs is a good way to solve this. The answer to this problem should be desktop independent, since we are talking about accesing a type of disk -virtual, yes- legacy applications could/will need to use. Fuse looks like a better way to do it.
Besides, it's a lost of time doing it gnome way instead of general way, since the fix should then need to be ported to kubuntu, xubuntu, mythbuntu...
It is already in launchpad, I have tested and it work pretty fine, just right click, mount and you are ready to go, handled just like a pendrive.
Unmount when you don't want to use it and that's all, simple and could be easily added to the repositories, just a click away, I wouldn't bundle it with the default installation since not everybody want's to mount iso images.
Everyone is only speaking of ISO here. Think about all the other image formats which _can't_ be mounted out of the box. CDEmu is the way to go there. They have a nice light-weight kernel-module and a library that allow reading the images. It is all written with current standards in mind.
The packages are already in REVU and have been worked on alot. So we can expect them to be in universe/multiverse by hardy+1 (intrepid?).
This sounds like a decent idea, but seriously, is this really a top issue? What fraction of users actually experience this, and would adding this feature really improve Ubuntu in the eyes of most users? I'm thinking this issue just got the benefit of a couple days on the "front page" at the very start, despite actually being a pretty minor improvement targeted to a very small set of users.
YokoZar(Ubuntu developer)
wrote on the 4 Mar 08 at 12:09
Would a context menu for .bin files to convert them to .iso be appropriate?
This might not be so important if we could just mount .bin files straight (perhaps with CDEmu), but even then it might have some utility.
Tiger did it too. The vast majority of .iso files don't need to be burned (an exception is boot CD/DVDs). If there was a persistent desktop icon for optical drives, you could:
* Double-click to mount, transforming the .iso file into a CD-drive icon
* Drag the .iso to the existing CD drive, initiating a burn
YES!!! Finally somebody mentions it. We need this feature badly.
----------
>This sounds like a decent idea, but seriously, is this really a top issue? What fraction of users actually experience this, and would adding this feature really improve Ubuntu in the eyes of most users? I'm thinking this issue just got the benefit of a couple days on the "front page" at the very start, despite actually being a pretty minor improvement targeted to a very small set of users
----------------------
Well, check it out, (the votes) does not seem a very small set of users. Quiet a lot of people use .ISO images for mounting. I know I do almost all the time in Windows.
Virtual FS is no way to go, it is not really in the OS and only in the frontend and as Kubuntu User, you would have extra work porting it for me. Also, every program needs a VFS plugin to work with it (and many don't especially app xzy that is unique in providing functionality zyxy), so I am no fan of virtual file systems for that reason.
browny: My theory as to why this only-somewhat-valuable feature gets so many positive votes is because:
1) More people have voted on it, period
2) Most people vote yes (and simply don't vote on the nos)
The reason (1) is true is because it's at the top of a bunch of lists, and thus just gets more visibility than hundreds of other ideas -- may of which probably affect more people in a more direct way.
Most importantly, it was at the top of the *only* list for the first days (weeks?) of Brainstorm existing, meaning that in the first days it had a huge visibility advantage over the other ideas, and thus was given an insurmountable lead in votes (ensuring it always appears at the top of lists, and always gets more votes, etc).
I think this is a serious problem that reduces the overall value of Brainstorm. If you agree (or don't), consider my ideas for how to improve it here:
For me gmountiso could be included by default. For Ubuntu and Xubuntu.
The problem is this: inexperienced users don't know not even what is a mount point and how make it. For some applications is necessary to make it on /media/cdrom*, don't everybody know this and some applications can to give some problems.
gmountiso may be give an "automake cdrom mountpoint" (option enabled by default), it creates automatically the first /media/cdrom* available after the CD/DVD Unit/s installed on the system (fstab) and use it for mountpoint.
Or load the iso image by means of MTAB like an USB FLASH DEVICE or like others removable device.
Goodbye.
We absolutely need a feature like this in Ubuntu. Not only for .ISO files, but also for .bin, .cue and the many other image formats that are out there.
Working with disk image files in Ubuntu is a real PITA if you are unfamiliar with writing scripts or working with the shell. There really isn't any reason why we should have to go to the shell for something simple like mounting an image file.
A few have mentioned gmountiso as an option. The only problem with that is that gmountiso ONLY mounts .iso files, and ONLY comes in French. So unless you speak and read French fluently, it's useless. And if you need to mount something that isn't a .iso file, but is still an image, it's useless. So gmountiso is not really a viable option for the majority of Ubuntu users.
A simple right-click menu, as others have suggested, would be best. The choices of Open, Mount and Burn would also probably be the best options as well. Although having the popup menu choices after double-click would be a nice addition as well.
This script works in the shell and Nautilus, handles multiple files at the same time, and creates symlinks to the mount points named after the ISO files in the same directory as the ISO files.
Not only iso/bin/cue files should be mountable. dmg, squashfs ,dd-dumps and other images should be importable like usb-sticks without root accont.
the best would be a point in the popup-menu with the right-click on the image.
I must agree with what grigio and other's said, fuseiso would be the best way to go about this, firstly because it supports a whole bunch of image formats (iso, bin, mdf, img, nrg according to the description in synaptic), also because its FUSE you don't need root to (un)mount the image.
Also, i think using GVFS for this is a bad idea, as this should be environment independent.
Basically, implement it in nautilus so you can easily (un)mount an image by simply right clicking and choosing said option, which should be in the top level menu, not in the scripts submenu.
Some very basic use cases are impossible for most users, and time consuming for those command-line jockeys.
E.g. play a DVD iso in a media player - this takes ten minutes of mounting, and reconfiguring mplayer/xine/whatever to point /dev/dvd to somewhere else
This really should not require installing more apps, scripts, or command line. The words "quite simple" followed by some pasted shell script is completely unacceptable for >99.9% of the world's computer users.
In Intrepid you can mount ISO images by right clicking on the image and selecting "Open with..."-> Open with "Archive Mounter".
This doesn't work for me. File names look like "SETUP.EXE;1" instead of "Setup.exe" and "SETUP_EX.MAN;1" instead of "Setup.exe.manifest"
saivann(Brainstorm moderator)
wrote on the 18 Nov 08 at 07:00
This feature is now included in intrepid. If you get any problems with this new feature, please open bug reports in http://bugs.launchpad.net/ for gvfs package.
Saivann : What about CUE and other non-iso cdimage formats?
That idea isnt included, is only partialy included, and that is big difference.
ISO is maybe popular, but also simplest CD Image format and in 99% dont works with game CD backups - and that is one of most importants reason to mount CD Images. It doesnt makes sense to make ISO backups of software, if you must also install no-cd cracks to use them and with no-cd crack CD Image is useless :) (and installing nocd cracks might be piracy also)
I dont want to say that ISO mounting is unimportant - its very important, but as first step to have complex CD Image mounting.
saivann(Brainstorm moderator)
wrote on the 21 Nov 08 at 04:43
Endolith : "See comment on Launchpad. This is not enabled in Intrepid unless you go through the "Open with" menu, since it doesn't work with most apps."
It is enabled in default intrepid installation and it is available from the "Open with" menu, exactly. That fits in the initial idea description. The launchpad comment that you linked concerns Hardy.
Dinth : Thanks for mentioning that CUE image are still not supported. According to your comment and since CUE is mentioned in the idea description, I set back this idea to "New".
However, if GNOME does not plan to support it soon, this idea status should go back to "Implemented" and another idea should be posted to ask gvfs to support CUE and/or other image files formats.
It is enabled in default intrepid installation and it is available from the "Open with" menu, exactly.
No, it was relegated to the "Open with" menu and a custom command because it's not working well enough to be a default feature. It's supposed to show up in the main right-click menu for mountable archives, but the support for different formats is very poor at this point.