"modprobe -r cdrom" error.

hello all,
i used modprobe -r usb-storage its working properly but when i use the same command with cdrom module as modprobe -r cdrom it is giving error as Fatal error:module cdrom in use, but i dont have any thing in rom and not using it.
thanx.

You could try running something like:

# fuser -m /dev/cdrom

Which would list all the process that are accessing /dev/cdrom or else confirm that nothing is using it?

tried with "fuser -m /dev/cdrom" it is not giving any results.

It has occurred to me that you may have a line in /etc/fstab that mounts cdroms automatically, perhaps using kudzu, it may be that you have to comment out any cdrom lines in /etc/fstab and reboot before you will be able to remove the cdrom module from the kernel.

the contents on my /etc/fstab file are

/dev/VolGroup00/LogVol00 /
LABEL=/boot /boot
devpts /dev/pts
tmpfs /dev/shm
proc /proc
sysfs /sys

Okay, no cdrom mounts in there then!

in /home i have a anaconda.config file it mentions
install
cdrom
is it the issue?

hello all,
please tell me if there is any other way to disable cdrom as modprobe is not working, i am using red hat linux server 5.
thank you.

May I suggest that as root you run:
# updatedb
# locate modprobe | grep bin

This will tell you where modprobe is and you may then call it using the full path (probably /sbin/modprobe).

If that works then /sbin (or wherever modprobe is) is not in your PATH

thank you,
i tried as you said and found a module ide-cd.
it worked with "modprob -r ide_cd".