If you like to play with lots of ISO files at the same time, you will inevitably encounter the below error while mounting the ISO files as loop devices.
root@vikas027:~# mount -a mount: could not find any free loop device root@vikas027:~#
I have a PXE Kickstart Server for which I need to mount numerous ISO (RHEL, OEL, Ubuntu, Debian, etc) files at the same time so that the can serve as Kickstart installation trees and yum repositories.
By default Linux (RHEL and Ubuntu at least) kernel supports 8 loop device files, i.e. one can only mount 8 ISOs at the same time.
Fortunately, we can add block device files using mknod as below to mount more ISOs. All we need to take care of is major and minor numbers.