Tuesday, January 7, 2020

Oracle Linux 7.7 -- How to mount CD\DVD Drive

Problem

You want to mount a CD\DVD ROM to a mount point on your Linux system

Solution

First identify the block device corresponding to you CD\DVD drive:

[root@oelinux76 sf_Shared]# blkid
/dev/sda1: UUID="1525d63c-7d41-4468-b407-f546916a447a" TYPE="xfs"
/dev/sda2: UUID="wsXTWM-9BTe-GH2T-WFNL-wSc1-j9W0-pp02wg" TYPE="LVM2_member"
/dev/sr0: UUID="2015-07-10-12-16-03-00" LABEL="VBOXADDITIONS_4.3.30_101610" TYPE="iso9660


Take a note of the block device. In this case it is  /dev/sr0


Create a mount point:

[root@oelinux76 /]# mkdir /cdrom


Mount CD\DVD

[root@oelinux76 /]# mount -t iso9660 -o ro /dev/sr0 /cdrom

Or:

[root@oelinux76 sf_Shared]# mount -t iso9660 -o ro /dev/cdrom /cdrom

No comments: