FuseISO
FuseISO is a FUSE module to let unprivileged users mount ISO filesystem images (.iso, .nrg, .bin, .mdf and .img).
Installation
Usage
Mounting
$ fuseiso image directory
The destination mount point must be writable and have no other mounted files or devices to it.
Run fuseiso -h for all the available options.
Unmounting
$ fusermount -u directory
The command can be used to disconnect other storage devices mounted by other mount tools.
Integration
GNOME Files
For users of GNOME there is an easy way of using fuseiso from the nautilus-context menu.
First you will need the filemanager-actions package, then you need to save the following scripts to a folder of your choice (e.g. ~/.local/bin/ ):
filemanager-actions-iso-mount.sh
#!/bin/sh FILE=$(basename "$1") MOUNTPOINT="$HOME/Desktop/$FILE" fuseiso -p "$1" "$MOUNTPOINT"
filemanager-actions-iso-umount.sh
#!/bin/sh FILE=$(basename "$1") MOUNTPOINT="$HOME/Desktop/$FILE" fusermount -u "$MOUNTPOINT"
Make them executable. Now, start fma-config-tool (System > Preferences > Nautilus Actions Configuration).
Add a new action with the following settings:
- Label: Mount ISO
- Icon: A symbol of your choice (eg: gtk-cdrom)
- Path: /path_to_scripts/filemanager-actions-iso-mount.sh
- Parameters: %F
- Working directory: %d
- Basenames: *.iso ; *.nrg ; *.bin ; *.img ; *.mdf (for each add a seperated entry)
- Match case: «must match one of»
- Mimetypes: */*
With this action you can mount ISO-images to your Desktop. It will create a folder in ~/Desktop with the name of the iso. fuseiso will mount the iso to this folder.
- Label: Unmount ISO
- Icon: A symbol of your choice (eg: gtk-cdrom)
- Path: /path_to_scripts/filemanager-actions-iso-umount.sh
- Parameters: %F
- Working directory: %d
- Basenames: *.iso ; *.nrg ; *.bin ; *.img ; *.mdf (for each add a seperated entry)
- Match case: «must match one of»
- Mimetypes: */*
This second action will unmount the mounted iso and remove the folder from the desktop.
Sometimes you have to logout to be able to mount any image of the given types simply by right clicking it in Files and selecting Mount ISO. To unmount it again, just right click the corresponding folder on your desktop and select Unmount ISO.
Nemo
Nemo as a file browser has a packaged function on right click to mount an iso. unmount is done by clicking on the respective icon of the mounted iso, just like one would do for USB drives.
Arch Linux – Mount ISO Image
You need to do this as root or use sudo. There are ways to set up your system to allow users to mount images rather having to su or sudo but I’m not talking about that at this time.
Create a folder where you’ll mount the ISO image. Once mounted you’ll be able to look at the contents of the image in Thunar or Nautilus or from the CLI.
Then mount the ISO image file:
# mount /path/to/the/iso/file.iso /path/to/mount/point
But I’ve seen some references to using -o switch and calling loop. I’ve found that I do not need to do that. I’ve added the loop daemon to /etc/rc.conf so that it loads on boot up. If you don’t do this you may have to modprobe loop first and then mount.
# mount -o loop /path/to/the/iso/file.iso /path/to/mount/point
You should get confirmation that it mounted, most likely as readonly. And now you can go to the folder and check out the files.
And to un-mount the ISO first list the current mounts. There are a few ways to do this. At the CLI do one of the following:
The command df -H will list the mounts. The newly mounted file.iso should be loop0. If you have other images already mounted then it might be something like loop1 or loop2 etc. Basically each iso.file you mount will get its own loop. Also note that Truecrypt uses loop so it might be a good idea to list the mounts prior to mounting any image files so that you know what you’re un-mounting when the time comes. Typically Truecrypt you’ll see something like /dev/mapper/truecrypt1 for the mount point. So I most likely there won’t be any confusion but I’m not sure how other distributions do this.
# mount /path/to/the/iso/file.iso on /path/to/mount/point
# umount /path/to/the/iso/file.iso
If you get an error when trying to un-mount it try the force switch (-f):
# umount -f /path/to/the/iso/file.iso