Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I read the posts about cdrom "not a block block device" error when trying to mount the cdrom. One of the responses said that using the command "depmod -ae" fixes this problem. Tried to run the command "depmod -ae" as root recieved error "command not found" even though I am at the /sbin directory where I found the command with "find / -name depmod".
Any help getting the command "mount /mnt/cdrom" to work when the disk is in the drive and /mnt/cdrom is defined in /etc/fstab
would be appreciated.
There is a known (and documented) bug in Rh 7.2 which causes the CD-ROM not to be recognized. Running depmod is the recommended fix.
Make sure that /sbin is in root's PATH (it should be, but...):
echo $PATH
If it isn't:
export PATH=$PATH:/sbin (assuming you're using bash)
In general, if you're currently in the directory in which a program you want to run resides, type ./ before the command name. The ./ tells the shell to look in the current directory for the executable, something the shell, for security reasons, does not do by default:
./depmod -ae
Also, /mnt/cdrom is usually a symlink to the actual CD-ROM device. Make sure that the link points to your physical CD-ROM drive. For example, if your CD-ROM is installed as the Secondary Master IDE device, it would be /dev/hdc. Check the link with the following:
ls -l /dev/cdrom
If the link points to the wrong device, delete it and create a new link. Again assuming the CD-ROM is /dev/hdc:
rm /dev/cdrom
ln -s /dev/hdc /dev/cdrom
Thanks for the feedback. Checked $PATH and sbin is in the path. Tried "depmod -ae" and it worked. I don't know why it wasn't working yesterday. I can't believe I fat fingered it 4 or 5 times.
Just wanted to post this follow up in case anyone else is following this thread to try and trouble shoot thier cd-rom. The reason depmod -ae was not found as a command is related to the path declaration as DMR suspected. If I log in as root /sbin is in the PATH. If I log in as the user I have created at install and then su to root /sbin is not in the path.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.