LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Why no CDrom when upgrading to 2.6.17.13smp kernel? (https://www.linuxquestions.org/questions/slackware-14/why-no-cdrom-when-upgrading-to-2-6-17-13smp-kernel-505203/)

pipesmoker 11-27-2006 06:56 AM

Why no CDrom when upgrading to 2.6.17.13smp kernel?
 
A problem revisited.

Having followed previous advice to include myself in /etc/groups I have been able to play CD's in Slackware 11. Ok until today when I upgraded to the 2.6.17.13smp kernel, followed all the instructions, but now I get the following message when I try to play a CD:

CD-Rom read or access error (no disc indrive) when there is
Make sure you have access permissions to /dev/cdrom.

I have used Slackware for 12 maybe 13 years and I used to get around the problem by chmodding /dev/cdrom to root permissions. It's not there any longer so I am stuck.

My box, with dual processor goes like stink since I upgraded, it really would be nice to play my CD's if you can please help me.

It often makes me wonder why I stick with Slackware, I love it, I have the T shirts, it's bloody frustrating when other distros do simple things but in Slackware it has to be fixed. With your help this old geezer will get there.

manwichmakesameal 11-27-2006 08:51 AM

Which kernel did you upgrade from? Is your cd drive a regular cd drive or cdrw? You may already know, but if you go from 2.4 to 2.6 with a cdrw drive, it's a different device node in /dev. Goes from /dev/sr* to /dev/hd*.

pipesmoker 11-27-2006 11:29 PM

Hi

ide 2.4.32 to ide 6.17.13. It is a dvdrw drive which before the upgrade played CD's but now comes up with the error when KDE initialises.

Thanks for the reply, I will have a play, and post the outcome.

manwichmakesameal 11-28-2006 10:57 AM

Since you changed from 2.4 to 2.6, put
Code:

append = "ide-cd dev=/dev/hdc"
(or whatever your drive is) in your /etc/lilo.conf file and change your fstab, and you should be good.

pipesmoker 11-28-2006 11:25 PM

Thanks again but still not there and I get the same error when I run KDE as root if that is any indication.

I have edited:

/etc/lilo.conf as you suggest, the drive is "hdc".

/etc/fstab to

/dev/hdc /mnt/hdc auto noauto,owner,ro 0 0

/etc/group changed the cdrom line to

hdc::19:graham,ann

K3b shows the error "No CD/DVD writer found" it was ok before upgrading to the new kernel.

Thanks again.

Alien Bob 11-29-2006 01:17 AM

Quote:

Originally Posted by pipesmoker
/etc/group changed the cdrom line to

hdc::19:graham,ann

Well this is wrong and you should revert to the original line "cdrom::19:graham,ann". The group name "cdrom" has nothing to do with the device "cdrom" or "hdc" the way you think.
I was wondering, with that 2.6 kernel, did you enable udev? With udev you should have symbolic links automatically pointing to your CDROM device: run
Code:

chmod +x /etc/rc.d/rc.udev
to enable udev on the first reboot of your machine.

Eric

pipesmoker 11-29-2006 08:52 AM

Hiyer Eric

/etc/rc.d/rc.udev looks like this -rwxr-xr-x root root etc
/etc/rc.d/rc.udev.new has the same permissions

/dev there are no entries for cdrom, hdc or scd0

I have tried symbolic links like ln -sf scd0 cdrom

I don't know the answer but I think the clue is that I get the same error message when running KDE as root as I do when a user. If I edit a file relating to cdrom, a window pops up and asks what I want to do with the disk in the drive.

I am lost and struggling despite having read the things I considered relevant.

BTW it's a DVD rw don't know if that makes a difference.

masonm 11-29-2006 09:04 AM

Are you running both udev and hotplug? If so, try disabling hotplug and see if that helps.

Also, double check the kernel config to ensure that the support for the device has been compiled in. I know it's a long shot but it's possible that it was missed.

Also, just a personal preference, but in fstab I would change the "owner" to "user"

simcox1 11-29-2006 09:37 AM

Does the dvdrw show up in dmesg?

Alien Bob 11-29-2006 12:03 PM

Quote:

Originally Posted by pipesmoker
/etc/rc.d/rc.udev looks like this -rwxr-xr-x root root etc
/etc/rc.d/rc.udev.new has the same permissions

If you have a rc.udev.new that means you upgraded Slackware some time ago, and failed to replace the old rc.udev with the new rc.udev script.

This will seriously break udev functionality.

Try fixing this problem first, and then examine progress on the DVD device.
Also, please check any other .new files against their predecessors - you might miss more functionality than just udev:
Code:

find / -type f -name "*.new"
Eric

pipesmoker 11-29-2006 11:57 PM

Thanks all quite a lot to go through. In reply to post #9 thanks for the link

dmsg shows the following

Probing IDE interface ide1...
hdc: _NEC DVD+RW ND-2100AD, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15

My /dev directory has no devices +hdc or +scd0. Disable udev they are there disable hotplug they are but X won't start :-(

Good grey matter exercise!

simcox1 11-30-2006 04:11 AM

It's abviously udev that isn't working, as Alien said. You need to move rc.udev.new to rc.udev, and reboot. You need to make sure /etc/rc.d/rc.udev is executable. If it is, udev will run and hotplug won't. If it isn't, hotplug will run.

pipesmoker 11-30-2006 11:50 PM

Thanks for all the help, it's sorted.

I ran lilo.config again using pkgtool and omitted "hdc=ide-scsi" option and /dev/+hdc was created at reboot, the dvd drive is up and running again. Editing this from /etc/lilo.conf, one of the first suggestions didn't achieve the same result.

Thanks again, couldn't have got there without your help.


All times are GMT -5. The time now is 11:40 AM.