Difference between revisions of "Fuseiso"

From ArchWiki
Jump to: navigation, search
(rm template stub)
 
(38 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
{{Lowercase title}}
 
[[Category:File systems]]
 
[[Category:File systems]]
{{stub}}
+
[[ja:Fuseiso]]
 +
The ''fuseiso'' command line program is a simple tool that uses [[wikipedia:Filesystem_in_Userspace|FUSE]] and helps for a regular user to mount [[wikipedia:ISO_9660|ISO]] disk images. The ''fuseiso'' tool does not create an automatically generated destination by a pattern and is specialized on mounting of the optical disk image formats as {{ic|.iso}}, {{ic|.nrg}}, {{ic|.bin}}, {{ic|.mdf}} and {{ic|.img}}.
  
==Introduction==
+
== Installation ==
Normally, when you want to mount an image, you have to become root using su or sudo. This is quite inconvenient. But luckily there is [http://en.wikipedia.org/wiki/Filesystem_in_Userspace FUSE] (Filesystem in Userspace).
+
  
==fuseiso==
+
[[Install]] {{Pkg|fuseiso}} from the [[official repositories]].
Using FUSE to mount image files is easy enough. Just install the fuseiso package:
+
pacman -S fuseiso
+
  
To mount an image, just type (the mountpoint has to be writable by the user) :
+
== Basic functions ==
fuseiso <imagefile> <mountpoint>
+
  
To unmount the image, use:
+
=== Mounting an ISO image ===
fusermount -u <mountpoint>
+
  
'''NOTE''': fuseiso currently supports images of the following types: ''.iso, .img, .bin, .mdf, .nrg''
+
The syntax for mounting an image is:
  
===Using it with Nautilus===
+
# fuseiso ''source_imagefile'' ''destination_directory''
  
'''NOTE''': The following is based on the scripts taken from [http://www.grumz.net/?q=node/282 here].
+
The destination mount point must be writable and have no other mounted files/devices to it.
 +
 
 +
Run {{ic|fuseiso -h}} for all the available options.
 +
 
 +
==== Unmounting ====
 +
 
 +
To unmount the image, use {{ic|fusermount -u ''mountpoint''}}, it works fine even with many other unmount tools like ''pumount'' or ''umount''. The {{ic|fusermount -u}} command can be used to disconnect any other storage devices that were mounted by other mount tools.
 +
 
 +
== Using with GNOME Files ==
  
 
For users of GNOME there is an easy way of using fuseiso from the nautilus-context menu.
 
For users of GNOME there is an easy way of using fuseiso from the nautilus-context menu.
First you will need the nautilus-actions package:
+
First you will need the {{Pkg|nautilus-actions}} package, then you need to save the following scripts to a folder of your choice (eg. {{ic|/usr/local/bin}}):
pacman -S nautilus-actions
+
  
Then you need to save the following scripts to an folder of your choise (eg. /usr/bin)
+
{{hc|nautilus-actions-iso-mount.sh|<nowiki>
 
+
  #!/bin/bash
nautilus-actions-iso-mount.sh:
+
  #! /bin/bash
+
 
   
 
   
  FILE=`basename "$1"`
+
  FILE=$(basename "$1")
 
  MOUNTPOINT="$HOME/Desktop/$FILE"
 
  MOUNTPOINT="$HOME/Desktop/$FILE"
 
   
 
   
 
  fuseiso -p "$1" "$MOUNTPOINT"
 
  fuseiso -p "$1" "$MOUNTPOINT"
 +
</nowiki>}}
  
nautilus-actions-iso-umount.sh:
+
{{hc|nautilus-actions-iso-umount.sh|<nowiki>
  #! /bin/bash
+
  #!/bin/bash
 
   
 
   
  FILE=`basename "$1"`
+
  FILE=$(basename "$1")
 
  MOUNTPOINT="$HOME/Desktop/$FILE"
 
  MOUNTPOINT="$HOME/Desktop/$FILE"
 
   
 
   
 
  fusermount -u "$MOUNTPOINT"
 
  fusermount -u "$MOUNTPOINT"
 +
</nowiki>}}
  
 
and make them executable:
 
and make them executable:
  chmod +x /<path_to_scripts>/nautilus-actions-iso-*
+
  chmod +x ''/path_to_scripts/''nautilus-actions-iso-*
 
+
Now, start ''nautilus-actions-config'' (''System -> Preferences -> Nautilus Actions Configuration'').
+
  
 +
Now, start ''nautilus-actions-config'' (''System > Preferences > Nautilus Actions Configuration'').
  
 
Add a new action with the following settings:
 
Add a new action with the following settings:
  
*Label: ''Mount ISO''
+
* Label: ''Mount ISO''
*Icon: A symbol of your choice (eg: ''gtk-cdrom'')
+
* Icon: A symbol of your choice (eg: ''gtk-cdrom'')
*Path: ''/<path_to_scripts>/nautilus-actions-iso-mount.sh''
+
* Path: {{ic|''/path_to_scripts/''nautilus-actions-iso-mount.sh}}
*Parameters: ''%F''
+
* Parameters: ''%F''
*Working directory: ''%d''
+
* Working directory: ''%d''
*Basenames: ''*.iso ; *.nrg ; *.bin ; *.img ; *.mdf (for each add a seperated entry)''
+
* Basenames: ''*.iso ; *.nrg ; *.bin ; *.img ; *.mdf (for each add a seperated entry)''
*Match case: ''"must match one of"''
+
* Match case: ''"must match one of"''
*Mimetypes: ''*/*''
+
* Mimetypes: ''*/*''
 
+
With this action you can mount ISO-images to your Desktop. It will create an folder in ~/Desktop with the name of the iso. fuseiso will mount the iso to this folder.
+
  
 +
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.
  
 
And a second one:
 
And a second one:
  
*Label: ''Unmount ISO''
+
* Label: ''Unmount ISO''
*Icon: A symbol of your choice (eg: ''gtk-cdrom'')
+
* Icon: A symbol of your choice (eg: ''gtk-cdrom'')
*Path: ''/<path_to_scripts>/nautilus-actions-iso-umount.sh''
+
* Path: {{ic|''/path_to_scripts/''nautilus-actions-iso-umount.sh}}
*Parameters: ''%F''
+
* Parameters: ''%F''
*Working directory: ''%d''
+
* Working directory: ''%d''
*Basenames: ''*.iso ; *.nrg ; *.bin ; *.img ; *.mdf (for each add a seperated entry)''
+
* Basenames: ''*.iso ; *.nrg ; *.bin ; *.img ; *.mdf (for each add a seperated entry)''
*Match case: ''"must match one of"''
+
* Match case: ''"must match one of"''
*Mimetypes: ''*/*''
+
* Mimetypes: ''*/*''
  
 
This second action will unmount the mounted iso and remove the folder from the desktop.
 
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''.
Sometimes you have to logout to be able to mount any image of the given types simply by right clicking it in Nautilus and selecting ''Mount ISO''. To unmount it again, just right click the corresponding folder on your desktop and select ''Unmount ISO''.
+
 
+
==MPlayer==
+
Mplayer can play some images without mounting. Open Mplayer and choose to open a file. At the bottom change video file to the type of image  that you have and navigate to the image.
+

Latest revision as of 19:08, 3 April 2016

The fuseiso command line program is a simple tool that uses FUSE and helps for a regular user to mount ISO disk images. The fuseiso tool does not create an automatically generated destination by a pattern and is specialized on mounting of the optical disk image formats as .iso, .nrg, .bin, .mdf and .img.

Installation

Install fuseiso from the official repositories.

Basic functions

Mounting an ISO image

The syntax for mounting an image is:

# fuseiso source_imagefile destination_directory

The destination mount point must be writable and have no other mounted files/devices to it.

Run fuseiso -h for all the available options.

Unmounting

To unmount the image, use fusermount -u mountpoint, it works fine even with many other unmount tools like pumount or umount. The fusermount -u command can be used to disconnect any other storage devices that were mounted by other mount tools.

Using with GNOME Files

For users of GNOME there is an easy way of using fuseiso from the nautilus-context menu. First you will need the nautilus-actions package, then you need to save the following scripts to a folder of your choice (eg. /usr/local/bin):

nautilus-actions-iso-mount.sh
 #!/bin/bash
 
 FILE=$(basename "$1")
 MOUNTPOINT="$HOME/Desktop/$FILE"
 
 fuseiso -p "$1" "$MOUNTPOINT"
nautilus-actions-iso-umount.sh
 #!/bin/bash
 
 FILE=$(basename "$1")
 MOUNTPOINT="$HOME/Desktop/$FILE"
 
 fusermount -u "$MOUNTPOINT"

and make them executable:

chmod +x /path_to_scripts/nautilus-actions-iso-*

Now, start nautilus-actions-config (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/nautilus-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.

And a second one:

  • Label: Unmount ISO
  • Icon: A symbol of your choice (eg: gtk-cdrom)
  • Path: /path_to_scripts/nautilus-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.