HOWTO mount iso images with rox

1) create the file mountiso.sh:

#!/bin/bash
STR="/tmp/iso_image_link"
echo "Mounting $1"
ln -sf "$1" $STR
mount /mnt/image

then chmod +x mountiso.sh and put it in your /usr/bin/ directory

2) edit your /etc/fstab file and add an entry that looks like this:

/tmp/iso_image_link /mnt/image iso9660 ro,noauto,user,loop 0 0

3) open up rox and find a .iso file. Right click on it and go to File/Set Run Action. Then type there:
mountiso.sh "$@"

Now when you click on an iso file inside rox that will call mountiso.sh which creates a symlink from the file you want to mount to /tmp/iso_image_link. This way the “name” of the iso is always the same (/tmp/iso_image_link). The entry on the fstab file sets a static mount point for the iso images.

This way you can mount dynamically named iso images through the /tmp/iso_image_link symlink.

Enjoy.

No comments yet. Be the first.

Leave a reply