Below content retrieved from ArchWiki
Unmounting
To unmount the image, usefusermount -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 filemanager-actions package, then you need to save the following scripts to a folder of your choice (eg./usr/local/bin
):
filemanager-actions-iso-mount.sh
#!/bin/bash FILE=$(basename "$1") MOUNTPOINT="$HOME/Desktop/$FILE" fuseiso -p "$1" "$MOUNTPOINT"
filemanager-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/filemanager-actions-iso-*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: */*
And a second one:
- 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: */*
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.
沒有留言:
張貼留言