Kamran Agayev's Oracle Blog

Oracle Certified Master

Archive for November 21st, 2012

How to mount CD-ROM in Linux using CLI

Posted by Kamran Agayev A. on 21st November 2012

Just wanted to share with you steps to mount CD-ROM in Linux without having GUI.

First of all, you should check /mnt and /media folders and see if it has already been mounted. If it’s not, then you have to mount it by your own

For this make sure you do have CD-ROM plugged in using the following command:

dmesg | grep CD
– Added public key D4A26C9CCD09BEDA
scsi 4:0:0:0: CD-ROM Optiarc DVD RW AD-7270H 1.80 PQ: 0 ANSI: 5
Uniform CD-ROM driver Revision: 3.20
sr 4:0:0:0: Attached scsi CD-ROM sr0

 

If you got an output something like above, it means that you’ve CD-ROM plugged to the server. Next ,check /dev folder, cdrom should be there:

[root@localhost cdrom1]# ls -ltr /dev/cd*
lrwxrwxrwx. 1 root root 3 Nov 21 13:55 /dev/cdrw -> sr0
lrwxrwxrwx. 1 root root 3 Nov 21 13:55 /dev/cdrom -> sr0
[root@localhost cdrom1]#

 

And last, create a folder and mount /dev/cdrom to that folder:

mkdir /cdrom 

mount /dev/cdrom -t iso9660 -r /cdrom

 

For more information on CD-ROM mounting, check the following useful link:

http://www.linuxfocus.org/English/September1999/article106.html

Posted in Oracle on Linux | 1 Comment »