The objective is to mount a CD/DVD block device with ISO 9660 disk image/media.

In this tutorial you will learn:
  • How to detect CD/DVD block device
  • How to create mount point
  • How to mount CD/DVD
  • How to unmount CD/DVD
CD/DVD ROM on CentOS / RHEL Linux
CD/DVD ROM on CentOS / RHEL Linux

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System CentOS 6/7/8, RHEL 6/7/8
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
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

How to mount CD/DVD ROM on CentOS / RHEL Linux step by step instructions

  1. Locate CD/DVD block device: First we need to find a correct CD/DVD block device. To do this execute a command blkid as root user:
    # blkid 
    /dev/sda1: UUID="d9704e79-b05e-4c9d-b94a-09643ba70592" TYPE="xfs" PARTUUID="83288aa1-01"
    /dev/sda2: UUID="21291424-9d73-4c7e-b039-ce311702c75f" TYPE="swap" PARTUUID="83288aa1-02"
    /dev/sr0: UUID="2019-08-15-21-52-52-00" LABEL="CentOS-8-BaseOS-x86_64" TYPE="iso9660" PTUUID="3e04f576" PTTYPE="dos"
    Take a note of the relevant block device eg. /dev/sr0 and optionally also take a note of the shown UUID 2019-08-15-21-52-52-00.
  2. Create Mount Point:
    Mount point will be a directory where you wish to mount your CD/DVD drive. It can be any arbitrary directory. For example in this case we will be using /media/iso as a directory mount point:
    # mkdir /media/iso 

  3. Looking for Linux Systems Analyst !

    The UAF Geophysical Institute, is looking for an experienced Linux Systems Analyst to join their team of research cyber infrastructure analysts and engineers. LOCATION: Fairbanks, Alaska, USA


  4. Mount CD/DVD:
    We are now ready to mount CD/DVD by using the mount command:
    # mount /dev/sr0 /media/iso/
    # mount /dev/cdrom /media/iso/
    mount: /media/iso: WARNING: device write-protected, mounted read-only.
    At this point you should be able to access all files on your CD/DVD drive:
    $ ls /media/iso/
    AppStream  BaseOS  EFI  images  isolinux  media.repo  TRANS.TBL
  5. Permanent CD/DVD mount:

    To mount your drive permanently edit /etc/fstab by adding the following line. Change UUID and mount point to fit your environment:
    UUID=2019-08-15-21-52-52-00             /media/iso                iso9660 ro,user,auto  0 0
    Once ready mount the CD/DVD by:
    # mount /media/iso/
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
Get extra help by visiting our LINUX FORUM or simply use comments below.

Comments and Discussions