LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-19-2002, 10:35 PM   #1
XASCompuGuy
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Rep: Reputation: 0
Question CD-ROM Stops Working After a Week


I am running Redhat 7.3 (Vahalla), recently upgrading from 2.4.18-3smp to 2.4.18-5smp using the RPM's. I initially messed up the CD-RW drive by using the Redhat Up2Date wizard to update my kernel to 2.4.18-5smp. After restoring the system back to 2.4.18-3smp, I was told to "correctly" update my kernel using these commands:

rpm -Uvh kernel-smp-2.4.18-5.rpm
rpm -Uvh kernel-2.4.18-5.rpm

The CD-ROM then worked. A week later, today, as I was attempting to mount my CD-RW drive to back up some research, I get a message to the effect that the CD-RW and floppy driver is not installed. The floppy drive does mount floppies correctly though. After typing "mount /mnt/cdrom" a few more times, the error message about the driver not being installed is gone. Instead, I get this:
mount: /dev/cdrom is not a valid block device
and only as root. I try it as a regular user and Linux notifies me that only root can mount the cdrom. The cdrom device does appear in /etc/fstab and as a directory in /mnt/cdrom. Also, I have a link in /dev: /dev/cdrom -> /dev/hda. Here is the info on the directories and file.

/mnt
4 drwxr-xr-x 2 root root 4096 Jul 10 15:22 cdrom

/dev
lrwxrwxrwx 1 root root 8 Jul 10 15:22 /dev/cdrom -> /dev/hda

I checked the obvious: There is a CD-ROM in the drive and it does mount correctly before this screw-up. /dev/hda is the CD-RW drive, as the command dmesg confirms. I also tried this:
mount /dev/cdrom /mnt/cdrom -t iso9660
but I get this error message:
mount: /dev/cdrom is not a valid block device


What could be wrong? Why would the CD-RW drive stop working after a week? I look forward to your advice. Thank you.

XASCompuGuy
 
Old 07-19-2002, 11:02 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Try depmod -a it might correct it.
 
Old 07-20-2002, 01:47 PM   #3
XASCompuGuy
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Original Poster
Rep: Reputation: 0
neo77777

That did not do the trick. I also tried depmod -ae (the Redhat 7.2 module dependency fix).

I should also mention that this is a dual Athlon CPU system. I used the RPMs in the athlon directory. Do I also need to use the RPMs in the i686 directory? Additionaly, shortly after posting my above message, I attempted to mount the floppy disk drive, but it gave the same error as the CD-ROM drive about it being an invalid block device.

I did some research yesterday on Redhat's website for updating a kernel. It said that you should also update any kernel*.rpm files that are newer than those in your system, such as the kernel headers, kernel drivers, etc. These instructions are for RH 5 and lower and thus outdated. I see no such files in updates.redhat.com for 7.3, so I assume that I do not need them and that Redhat as since consolidated everything into one neat RPM package. I guess the question is "Did I update my kernel correctly"?
 
Old 07-20-2002, 08:07 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I've learned not long ago - upgrading kernel by RPM is not a good option, try to get the latest stable release from http://www.kernel.org and compile it yourself, you said it is a dual CPU system, so make sure you enable smp in kernel - so you'd actually squeeze multi-processing power from your system, if you need an assistance compiling new kernel I suggest going to famous http://www.tldp.org to read kernel howto. If you've never compiled your own kernel before it would take awhile for you - it might not work after first attempt, so be patient and read documentation provided with the kernel.
Good luck.
 
Old 07-20-2002, 08:10 PM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
And one more thing I see that your cd-rom is /dev/hda meaning it is a primary master IDE device, is it so?
 
Old 07-20-2002, 10:33 PM   #6
XASCompuGuy
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, /dev/hda is the cd-rom drive. The hard drives (two) are SCSI.
Finally, thanks for the links. I will read up on it.
 
Old 07-21-2002, 12:01 AM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Yeah, that's what I thought you have a scsi drives and EIDE cdrom, oh well when you compile your kernel make sure to enable scsi and ide support,
have fun
 
  


Reply



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
oracle + working with date/week champ Programming 8 11-28-2011 05:45 PM
Set up my first server last week. Now it is not working adrian29uk Linux - Networking 4 06-22-2005 03:44 AM
unable go set up a wlan with ndiswrapper, working for a week! dchirdon Linux - Wireless Networking 9 03-29-2005 07:44 PM
keyboard stops working NiallC Slackware 1 02-08-2005 03:11 PM
Mysql not working but it did last week dsiguy Linux - General 2 05-27-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:07 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
Open Source Consulting | Domain Registration