Professional Documents
Culture Documents
Linux
Lubos Rendek
Redhat
14 November 2016
Contents
o 1. Objective
o 2. Requirements
o 3. Difficulty
o 4. Conventions
o 5. Instructions
5.1. Locate Block device
5.2. Create a mount point
5.3. Mount CD/DVD temporarily
5.4. Permanent CD/DVD mount using fstab
Objective
The objective is to mount a CD/DVD block device with ISO 9660 disk image/media.
Requirements
Privileged access to your Redhat 7 system.
Difficulty
EASY
Conventions
# - requires given linux commands to be executed with root privileges either
directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged
user
Instructions
Locate Block device
# blkid
/dev/mapper/rhel-swap: UUID="617ccf82-602c-472d-bff6-484d95530293"
TYPE="swap"
Take a note of the relevant block device eg. /dev/sr0 and optionally also take a
note of the shown UUID 2016-10-19-18-32-06-00 .
# mkdir /media/rhel7-repo-iso/
OR
# ls /media/rhel7-repo-iso/
The above will mount your CD/DVD ROM only temporarily. In order to make this
mount permanent after reboot edit /etc/fstab configuration file by adding a
following line replacing UUID to match your previous blkid command output:
After the reboot of your RHEL 7 Linux, the system will mount CD/DVD ROM
automatically.