Mount an ISO File with fstab on Linux

Mount an ISO File with fstab on Linux

Overview

To mount ISO files in Linux is very easy, and sometimes you want to use fstab to auto-mount on boot. I’ll show how to do this in bash.

FSTAB

you can mount ISO file to a folder using the bash command:

mount -o loop /path/to/file.iso /path/to/folder

Add this to your /etc/fstab file to mount iso file on boot.

/path/to/file.iso /path/to/folder iso9660 loop 0 0

don’t forget to leave an empty line at the end and after saving remember to:

mount -a

Good mounting…