Today i am going to share, how to block or disable CD/DVD ROM in Linux.
Please find the below procedure is working fine on RHEL ( Red Hat Enterprise Linux 5).
1) You need to be root user to perform steps.
[root@localhost]$ su -
2) Go to Directory Where your kernel drivers stored. Follow exact command.
[root@localhost]# cd /lib/modules/$(uname -r)/kernel/drivers/cdrom
3) Now list directory.
[root@localhost cdrom]# ls
cdrom.ko
cdrom.ko
4) Now rename or delete cdrom.ko file with following command.
[root@localhost cdrom]# mv cdrom.ko cdrom.ko-ok
To Delete file execute below command
[root@localhost 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 information helps you.
Thank you for such a wonderful Information !!
ReplyDeleteHere is a list of Top LINUX INTERVIEW QUESTIONS
Veritas Cluster Interview Questions
SAMBA Server Interview Questions
Linux FTP vsftpd Interview Questions
SSH Interview Questions
Apache Interview Questions
Nagios Interview questions
IPTABLES Interview Questions
Ldap Server Interview Questions
LVM Interview questions
Sendmail Server Interview Questions
YUM Interview Questions
NFS Interview Questions
Read More at :- Linux Troubleshooting