Difference between revisions of "Fuseiso"

From ArchWiki
Jump to: navigation, search
(Using it with Nautilus)
m
Line 18: Line 18:
 
'''NOTE''': fuseiso currently supports images of the following types: ''.iso, .img, .bin, .mdf, .nrg''
 
'''NOTE''': fuseiso currently supports images of the following types: ''.iso, .img, .bin, .mdf, .nrg''
  
==Using it with Nautilus==
+
===Using it with Nautilus===
  
 
'''NOTE''': The following is based on the scripts taken from [http://www.grumz.net/?q=node/282 here].
 
'''NOTE''': The following is based on the scripts taken from [http://www.grumz.net/?q=node/282 here].
Line 49: Line 49:
 
  chmod +x /<path_to_scripts>/nautilus-actions-iso-*
 
  chmod +x /<path_to_scripts>/nautilus-actions-iso-*
  
Now, start ''nautilus-actions-config'' (''System -> Settings -> Nautilus Actions Configuration'').
+
Now, start ''nautilus-actions-config'' (''System -> Preferences -> Nautilus Actions Configuration'').
  
  

Revision as of 16:32, 30 January 2008

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Fuseiso#)

Introduction

Normally, when you want to mount an image, you have to become root using su or sudo. This is kinda inconvenient. But luckily there is FUSE (Filesystem in Userspace).

fuseiso

Using FUSE to mount image files is easy enougth. Just install the fuseiso package:

pacman -S fuseiso

To mount an image, just type (the mountpoint has to be writable by the user) :

fuseiso <imagefile> <mountpoint>

To unmount the image, use:

fusermount -u <mountpoint>

NOTE: fuseiso currently supports images of the following types: .iso, .img, .bin, .mdf, .nrg

Using it with Nautilus

NOTE: The following is based on the scripts taken from here.

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:

pacman -S nautilus-actions

Then you need to save the following scripts to an folder of your choise (eg. /usr/bin)

nautilus-actions-iso-mount.sh:

#! /bin/bash

FILE=`basename "$1"`
MOUNTPOINT="$HOME/Desktop/$FILE"

mkdir -p "$MOUNTPOINT"
fuseiso "$1" "$MOUNTPOINT"

nautilus-actions-iso-umount.sh:

#! /bin/bash

FILE=`basename "$1"`
MOUNTPOINT="$HOME/Desktop/$FILE"

fusermount -u "$MOUNTPOINT"
rmdir "$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: %M
  • Filenames: *.iso ; *.nrg ; *.bin ; *.img ; *.mdf
  • Match case: disable
  • Mimetypes: */*
  • Appears if selection contains: only files
  • Appears if selection has multiple files or folders: disable

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.


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: %M
  • Filenames: *.iso ; *.nrg ; *.bin ; *.img ; *.mdf
  • Match case: disable
  • Mimetypes: */*
  • Appears if selection contains: only folders
  • Appears if selection has multiple files or folders: disable

This second action will unmount the mounted iso and remove the folder from the desktop.


After logging out and in again, you should 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.