LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-15-2005, 09:47 AM   #1
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Question cdrom problem with 2.6.12 kernel


Hello everyone,

I'm having a problem with my two cdrom drives. Here's the breakdown. I just installed the 2.6.12 kernel from source. Everything seemed to be working. My dvd rom drive is /dev/hdc and my CD-RW is /dev/hdd. Looking at dmesg, the kernel sees both at boot time. By default, /dev/cdrom points to /dev/hdd which is the cd-rw. I want to change the default /dev/cdrom to /dev/hdc. So, I removed the link /dev/cdrom and then link ln -s /dev/hdc /dev/cdrom. Now, that all works nice and everything, but when I reboot, the /dev/cdrom link goes back to pointing to /dev/hdd. I am not sure if I missed something when I compiled the kernel. I haven't had these problems when using other distros 2.6.* kernel. Also, when I tried adding the hdd drive to the fstab and add the proper link, again, on reboot, the link disappears. I have looked everywhere for an answer, and I can't seem to find one. So, if anybody happens to know the answer, please do pass them along. Thanks everyone for your time!
 
Old 08-15-2005, 09:54 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Create /etc/udev/rules.d/10_myrule file and fill it with :
Code:
KERNEL="hdc", SYMLINK="cdrom dvd"
KERNEL="hdd", SYMLINK="cdrw cdrecorder"
It will create 2 symlinks : /dev/cdrom and /dev/dvd pointing to /dev/hdc
and 2 symlinks : /dev/cdrw and /dev/cdrecorder pointing to /dev/hdd
 
Old 08-15-2005, 10:28 AM   #3
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally posted by keefaz
Create /etc/udev/rules.d/10_myrule file and fill it with :
Code:
KERNEL="hdc", SYMLINK="cdrom dvd"
KERNEL="hdd", SYMLINK="cdrw cdrecorder"
It will create 2 symlinks : /dev/cdrom and /dev/dvd pointing to /dev/hdc
and 2 symlinks : /dev/cdrw and /dev/cdrecorder pointing to /dev/hdd
Thanks keefaz. I will try that when I get home from work.
 
  


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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
Can't mount cdrom with kernel 2.6.9 Lenard Spencer Slackware 12 11-04-2004 11:59 PM
Kernel compile cdrom problem delusionner Linux - Hardware 2 07-26-2004 11:39 AM
CDROM problem with new kernel 2.4.20 grub Linux - Hardware 3 04-09-2003 01:14 AM
kernel <X> cdrom anoop_chandran Linux - Software 5 12-31-2001 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:08 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