LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-21-2005, 12:49 PM   #1
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Rep: Reputation: 30
CD drives and udev


When I enable udev support by 'chmod +x /dev/rc.d/rc.udev' all my active devices are apparent, except for my 2 CD drives. My hard drives are /dev/sd* but the CD drives are /dev/hd* .. with udev enabled, the /dev/hd* devices are non-existant. The drives are empty.

Does anyone know why, and how to fix this? Is this a bug in udev?
 
Old 12-21-2005, 01:18 PM   #2
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
Here's my 10-udev.rules file section on IDE CDs.

Quote:
# permissions for IDE CD devices
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", GROUP="cdrom", MODE="0660"
and my directory listing in /dev after udev being enabled.

Quote:
$ls /dev
adsp@ fd0u1440 kmsg sda2 stderr@ tty20@ tty36@ tty51@ urandom vcsa2@
audio@ fd0u1600 loop0 sda5 stdin@ tty21@ tty37@ tty52@ usb/ vcsa3@
console fd0u1680 mem sda6 stdout@ tty22@ tty38@ tty53@ usbdev1.1 vcsa4@
core@ fd0u1722 misc/ sda7 tty tty23@ tty39@ tty54@ usbdev2.1 vcsa5@
cpu/ fd0u1743 mixer@ sda8 tty0@ tty24@ tty4@ tty55@ usbdev2.2 vcsa6@
dsp@ fd0u1760 null sdb tty1@ tty25@ tty40@ tty56@ usbdev2.3 vmmon
fd@ fd0u1840 nvidia0 sdb1 tty10@ tty26@ tty41@ tty57@ vc/ vmnet0
fd0@ fd0u1920 nvidia1 sdb2 tty11@ tty27@ tty42@ tty58@ vcc/ vmnet1
fd0d360 fd0u2880 nvidiactl sdb5 tty12@ tty28@ tty43@ tty59@ vcs@ vmnet2
fd0h1200 fd0u3200 port sdb6 tty13@ tty29@ tty44@ tty6@ vcs1@ vmnet3
fd0h1440 fd0u3520 ppp sdb7 tty14@ tty3@ tty45@ tty60@ vcs2@ vmnet4
fd0h1476 fd0u3840 ptmx sdb8 tty15@ tty30@ tty46@ tty61@ vcs3@ vmnet5
fd0h1494 floppy/ pts/ sequencer@ tty16@ tty31@ tty47@ tty62@ vcs4@ vmnet6
fd0h1600 full random sequencer2@ tty17@ tty32@ tty48@ tty63@ vcs5@ vmnet7
fd0h360 initctl| rtc@ shm/ tty18@ tty33@ tty49@ tty7@ vcs6@ vmnet8
fd0h720 input/ sda snd/ tty19@ tty34@ tty5@ tty8@ vcsa@ vmnet9
fd0h880 kmem sda1 sound/ tty2@ tty35@ tty50@ tty9@ vcsa1@ zero
 
Old 12-21-2005, 01:38 PM   #3
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Are you using a 2.6.x kernel and is ide-scsi enabled in lilo?

Just for clarification,
MMYoung
 
Old 12-21-2005, 01:55 PM   #4
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
I'm using kernel 2.6.14.4 and ide-scsi is disabled in the kernel, and not referenced in lilo.

edit: my /dev/hd* drives show when devfs is being used, but once udev is running, they disappear.

Last edited by sweetnsourbkr; 12-21-2005 at 02:02 PM.
 
Old 12-21-2005, 02:18 PM   #5
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Have you tried running udev without your 10-local.rules to see if your CD drives are detected? I had a similar problem with udev and removing my 10-local.rules file fixed it.

Later,
MMYoung
 
Old 12-21-2005, 02:29 PM   #6
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
Nope, that didn't do it....I don't see why enabling ide-scsi will help. The description in the menuconfig doesn't mention anything about udev needing it.
 
Old 12-21-2005, 03:33 PM   #7
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by sweetnsourbkr
Nope, that didn't do it....I don't see why enabling ide-scsi will help. The description in the menuconfig doesn't mention anything about udev needing it.
You don't need it ide-scsi, I was just wondering if you had it in your lilo.conf.

Later,
MMYoung
 
Old 12-21-2005, 06:56 PM   #8
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
I've been at work all day and haven't been on my Slackware PC. So let me see if I can offer some more "specific" suggestions.

I've been working under the assumption that you are using Slackware 10.2, if this is incorrect please inform otherwise. Most people don't like to hear this, but udev was "hacked to pieces" in Slackware 10.1 but things have improved a little with the latest release of udev in 10.2.

One of the things that I had to do, in Slackware 10.1, was to comment out the section that sets up your CD/DVD drive, and any symlinks, in /etc/udev/scripts/make_extra_nodes.sh as it never worked with my 10-local.rules file. After I did that, my CD/DVD drives were set up exactly like I wanted them to be. You might want to give that a try and see if that fixes your problem. Make a backup copy of /etc/udev/scripts/make_extra_nodes.sh and then comment out this section:
Code:
# If we can, add a default /dev/cdrom and /dev/dvd link:
cd_num=0
dvd_num=0
if /bin/ls -l /dev | grep -wq cdrom ; then
  ( cd $udev_root
    /bin/ls -l * | grep -w cdrom | cut -f 2 -d : | cut -f 2 -d ' ' | while read optical_device ; do
      # It has to be a cdrom.  Assign consecutive numbers to drives.
      if [ "$cd_num" = "0" ]; then
        ln -sf $optical_device cdrom
        ln -sf $optical_device cdrom0
      else
        ln -sf $optical_device cdrom${cd_num}
      fi
      cd_num=$(($cd_num + 1))
      # If it's a DVD, set that link as well:
      if grep -iq dvd /proc/ide/$optical_device/model ; then
        if [ "$dvd_num" = "0" ]; then
          ln -sf $optical_device dvd
          ln -sf $optical_device dvd0
        else
          ln -sf $optical_device dvd${dvd_num}
        fi
	dvd_num=$(($dvd_num + 1))
      fi
    done
    unset optical_device
  )
fi
unset cd_num
unset dvd_num
If you are using Slackware 10.1, or a version of udev prior to 070, it may look a little different but you'll probably be able to figure out which section. Then reboot and see if your CD/DVD drive(s) are set up according to your 10-local.rules file.

HTH,
MMYoung

Last edited by MMYoung; 12-21-2005 at 06:57 PM.
 
Old 12-22-2005, 01:21 PM   #9
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
Nope, taht still didn't do it. I'm wondering if it's a hardware problem, udev interacting w/ my computer. I'm using 10.2 btw.
 
  


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
Adding additional drives/resizing drives in RAID arrays kheldar Linux - Hardware 1 10-19-2005 01:21 PM
Slackware 10.1 + Udev Permissions and USB Drives rignes Slackware 3 03-07-2005 09:12 PM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 12:15 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM


All times are GMT -5. The time now is 12:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration