hello everyone welcome to encryption the
tech tips and tutorial channel
in this video tutorial i'm going to show
you how to mount cd or dvd permanently
so that it remains mounted in the next
boots as well
doing this you don't have to mount the
drive manually each time you reboot the
system and you want to use the drive
i'm here in my red hat enterprise linux
8 servers bass terminal
to list all the block devices i run
lsblk command
here we can see the dvd drive of the
system the sr0
which has now rail at dvd inserted to
use the drive we need to mount it to a
directory otherwise we can't access any
of its file
if we mount it to a directory with the
mount command and then the directory
name it's mounted temporarily until the
next boot
each time you power on the server and
want to use the files of the dvd then
you will need to mount it manually
but when we make it persistent we don't
have to mount it each time we reboot the
server
i want to mount the dvd drive to a
directory which is in my root directory
of the server and the directory name is
slash dvd install
i have already created this directory
so you should create a directory if you
don't already have
and i want to mount this drive sr0 to
the directory dvd install
run the command blk id and the dvd name
as slash dev slash sr0
copy the uuid which we can see inside
the double quote
note that don't copy the double quote
now open the fstab file which is inside
slash etc directory
with a text editor such as vi or vim
go to the last line
and go to the end of the line
press i to switch into insert mode
press right arrow and press enter to go
to the next line
here type as uuid equals press ctrl
shift b to paste
slash dvd install
iso
9660
defaults space 0 space 0
here slash dvd install is the mount
point directory name
press escape key
type column x to save and exit from the
file
now if you run mount space hyphen a
command
the drive is mounted on the mount point
directory that we specified on the slash
atc slash fsta file
to verify if it's mounted run lsblk
command
as you can see the drive is mounted to
the directory slash dvd install
now let's reboot the server and check
back again
it should have been mounted
automatically
okay the system is rebooted
i login to the system
to open the terminal click on activities
and click on the terminal
now if you run lsblk command we can see
the drive sr0 is mounted on the mount
point directory slash dvd install
this is how we can configure a cd dvd
drive for persistent mount
that's all for now i hope the video was
useful to you
thanks for watching the video see you in
the next until then have a nice time
goodbye