{"id":146,"date":"2005-09-11T16:39:21","date_gmt":"2005-09-11T13:39:21","guid":{"rendered":"https:\/\/void.gr\/kargig\/blog\/?p=146"},"modified":"2005-09-13T17:30:56","modified_gmt":"2005-09-13T14:30:56","slug":"howto-mount-iso-images-with-rox","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2005\/09\/11\/howto-mount-iso-images-with-rox\/","title":{"rendered":"HOWTO mount iso images with rox"},"content":{"rendered":"<p>1) create the file mountiso.sh:<br \/>\n<code><br \/>\n#!\/bin\/bash<br \/>\nSTR=\"\/tmp\/iso_image_link\"<br \/>\necho \"Mounting $1\"<br \/>\nln -sf \"$1\" $STR<br \/>\nmount \/mnt\/image<br \/>\n<\/code><\/p>\n<p>then chmod +x mountiso.sh and put it in your \/usr\/bin\/ directory<\/p>\n<p>2) edit your \/etc\/fstab file and add an entry that looks like this:<br \/>\n<code><br \/>\n\/tmp\/iso_image_link     \/mnt\/image      iso9660         ro,noauto,user,loop     0 0<br \/>\n<\/code><\/p>\n<p>3) open up rox and find a .iso file. Right click on it and go to File\/Set Run Action. Then type there:<br \/>\n<code>mountiso.sh \"$@\"<\/code><\/p>\n<p>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 &#8220;name&#8221; 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. <\/p>\n<p>This way you can mount dynamically named iso images through the \/tmp\/iso_image_link symlink.<\/p>\n<p>Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) create the file mountiso.sh: #!\/bin\/bash STR=&#8221;\/tmp\/iso_image_link&#8221; echo &#8220;Mounting $1&#8221; ln -sf &#8220;$1&#8221; $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. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":3275,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}