Sometimes you need to mount an ISO file in order to install some software, and you don’t want to burn it to physical media to make it happen.
In Linux, it’s pretty easy to do this from the command line –
mount /path/to/iso /where/to/mount -o loop. And yet I use it infrequently enough that I have to keep looking it up to get it quite right.
Also, I have a bad tendency to forget I have mounted that ISO file and leave it hanging there until much later.
So I wrote a quick little script (
isobash) in BASH using zenity to ease the pain. It uses the file selection dialog to let you select the ISO file and directory to mount it in with a GUI, leaves a reminder window running while it’s mounted, and when you close that window, it unmounts the ISO file again. Uses
pkexec for elevated privileges.