Mount ISOs with Bash (and a GUI) in Linux

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.

You can find isobash at GitHub, GitLab, or my personal repository.

Featured Photo by Clément Hélardot on Unsplash

Was this post helpful or insightful? Buy me a coffee here or here and share this post with others!

Popular posts:

  • The difference between boundaries and rules
  • Two Ways to get CMYK Separation Using GIMP Instead of Photoshop in 2022
  • Weekend Project: Whole House and Streaming Audio for Free with MPD
  • Word Porn Quotes
  • If there's one Nazi (or a racist) at the table...
  • Odds and Ends: Optimizing SSHFS, moving files into subdirectories, and getting placeholder images

Recent Posts