Disable (Block) CD/DVD ROM Linux ( RHEL )

Hello Friends,

Today i am sharing one howto about how to block or disable CD/DVD ROM in Linux.

Below procedure is working fine on RHEL ( Red Hat Enterprise Linux 5).

1) You need to be root user to perform steps.

[blog@ask4it]$  su -

2) Go to Directory Where your kernel drivers stored. Follow exact command.

[root@ask4it]# cd /lib/modules/$(uname -r)/kernel/drivers/cdrom

3) Now list directory.

[root@ask4it cdrom]# ls
cdrom.ko

4) Now rename or delete cdrom.ko file with following command.

[root@ask4it cdrom]# mv cdrom.ko cdrom.ko-ok

To Delete file execute below command

[root@ask4it cdrom]# rm -rf cdrom.ko

5) Now reboot your computer and Insert CD or DVD into Drive. It will not detect.

6) If you dont want to reboot your computer then just execute below command.

modprobe -r sr_mod

Hope this helps you

Let’s Have some feedback

Enjoy Linux :) Enjoy Blocking…….

Content Protection by DMCA.com

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


11 Comments »

 
 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


one − = 0