SIMULATION -
In the system, mounted the iso image /root/examine.iso to/mnt/iso directory. And enable automatically mount (permanent mount) after restart system.
SIMULATION -
In the system, mounted the iso image /root/examine.iso to/mnt/iso directory. And enable automatically mount (permanent mount) after restart system.
To mount the ISO image /root/examine.iso to /mnt/iso directory and ensure it is automatically mounted after a system restart, you should edit the /etc/fstab file. Add the following line to /etc/fstab: '/root/examine.iso /mnt/iso iso9660 loop 0 0'. This line ensures that the ISO image will be mounted to the /mnt/iso directory using the ISO 9660 file system type and the loop device. This entry will remain in the /etc/fstab file and will automatically mount the ISO image each time the system starts. To immediately mount the ISO image without restarting, run 'mount -a'. This command reads the /etc/fstab file and mounts everything listed in it.
In RHEL8: /root/examine.iso /mnt/iso iso9660 loop 0 0 mount -a
echo '/root/examine.iso /mnt/iso iso9660 loop 0 0' >> /etc/fstab
automatic and permanent, this can also be active by autofs #dnf install autofs #systemctl start autofs #systemctl enable --now autofs by default autofs(/etc/auto.misc) is configured to mount cdrom on /misc/cd #cd /misc/cd ; ls