Instructions
Locate Block device
First we need to find a correct CD/DVD block device. To do this execute a command blkid
:
# blkid
/dev/sda1: UUID="937c8752-0206-4c5a-a25f-63a187b1a749" TYPE="xfs"
/dev/sda2: UUID="fWxSbV-Y4mQ-CJbE-HUTb-XsnF-DsGB-1ThV6s" TYPE="LVM2_member"
/dev/sr0: UUID="2015-10-30-11-11-49-00" LABEL="RHEL-7.2 Server.x86_64" TYPE="iso9660" PTTYPE="dos"
/dev/mapper/rhel-root: UUID="63b73273-3de4-423d-9a85-8c99701fb137" TYPE="xfs"
/dev/mapper/rhel-swap: UUID="0f3f07ac-d817-4f2c-9b74-b7223b486605" TYPE="swap"
/dev/mapper/rhel-home: UUID="467a69d7-6fec-4a07-bec9-e1e9d7cb1ad8" TYPE="xfs"
Take a note of the relevant block device eg. /dev/sr0
and optionally also take a note of the shown UUID 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-
.
Create a mount point
Next, create a new directory or use existing to be used as a mount point:# mkdir /media/rhel
Permanent CD/DVD mount using fstab
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:
UUID=2015-10-30-11-11-49-00 /media/rhel iso9660 ro,user,auto 0 0
[root@xyz ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 50G 3.3G 47G 7% /
devtmpfs 2.9G 0 2.9G 0% /dev
tmpfs 2.9G 140K 2.9G 1% /dev/shm
tmpfs 2.9G 8.9M 2.9G 1% /run
tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
/dev/mapper/rhel-home 144G 3.9G 140G 3% /home
/dev/sda1 497M 157M 340M 32% /boot
tmpfs 581M 28K 580M 1% /run/user/0
/dev/sr0 3.8G 3.8G 0 100% /media/rhel
No comments:
Post a Comment