Mount ISOs with Bash (and a GUI) in Linux1 min read

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
  • Review: MAFA - MPD client for Android
  • If there's one Nazi (or a racist) at the table...
  • Weekend Project: Whole House and Streaming Audio for Free with MPD
  • Organizing and Tiling Your Windows on #Openbox Using Only... Openbox
  • Getting the Weather And Forecast with A Bash Script

Recent Posts