How to mount CD/DVD in linux command prompt

How to mount CD/DVD in linux command prompt

 

Question: How to mount CD/DVD in linux command prompt

Answer: To mount CD/DVD from linux command prompt use mount command.

 

Mounting CD/DVD from linux command prompt is one of the basic task of linux administrator. It is very simple task and it is very useful. Mounting CD/DVD is used more often for linux admin.

How to mount CD/DVD in linux command prompt

How to mount CD/DVD from linux command prompt

To mount CD/DVD from linux command prompt use mount command. Lets see how to mount CD/DVD from linux command prompt using an example.

In our example we will use mount point as /media. Media directory is used for mounting removable media like CD, DVD, pen-drive etc., To mount the CD/DVD follow the below steps

#mkdir /media/cdrom
#mount /dev/cdrom /media/cdrom

How to mount CD/DVD in linux command prompt

To eject CD/DVD from the CD/DVD drive in linux fire the below command

#eject

or

#eject /dev/cdrom




Leave a Reply

Your email address will not be published. Required fields are marked *