LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-18-2002, 04:07 PM   #1
twintip
LQ Newbie
 
Registered: Apr 2002
Distribution: redhat7.2
Posts: 7

Rep: Reputation: 0
Unhappy cdrom


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.
 
Old 04-18-2002, 05:26 PM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
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
 
Old 04-19-2002, 09:04 AM   #3
twintip
LQ Newbie
 
Registered: Apr 2002
Distribution: redhat7.2
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks DMR

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.
 
Old 04-19-2002, 08:53 PM   #4
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
...life was good, and there was much rejoicing (yay).
 
Old 04-22-2002, 09:45 AM   #5
twintip
LQ Newbie
 
Registered: Apr 2002
Distribution: redhat7.2
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up follow up

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.
 
Old 04-22-2002, 10:05 AM   #6
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
use su - when su'ing.
$su -

You will then have the correct path.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 05:46 PM
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 11:43 PM
9.1 install, boot from cdrom, select source as cdrom, Can't find disk jake555 Slackware 1 10-30-2003 11:34 AM
CD problems: /mnt/cdrom and /dev/cdrom okok Linux - Newbie 5 04-09-2003 11:11 AM
fstab and cdrom links - hdc or cdrom? tunedLow Linux - Newbie 5 12-21-2001 01:57 PM


All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration