LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-15-2005, 01:10 PM   #1
kejava
LQ Newbie
 
Registered: Mar 2004
Location: Philadelphia, PA
Distribution: Slackware, Ubuntu
Posts: 6

Rep: Reputation: 0
udev doesn't create scd* device nodes for scsi cdrom


I'm still fairly new to udev type issues. Feel free to direct me to key documentation. My Slack is current and my kernel is 2.6.12.5. My main question is this, how do I mount these scsi CD readers?

I have four old scsi CD readers attached to a Tekram DC315 controller. When I reboot with them attached to the bus, /dev/sg[0-3] are the only device nodes created by udev. Isn't sg* reserved for use with scsi-based CD burners? When I try to mount sg0 (with a CD in it) I get "mount: /dev/sg0 is not a block device". Sure enough an 'ls -l /dev/sg*' produces:

crw-rw---- 1 root cdrom 21, 0 2005-09-15 09:27 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 2005-09-15 09:27 /dev/sg1
crw-rw---- 1 root cdrom 21, 2 2005-09-15 09:27 /dev/sg2
crw-rw---- 1 root cdrom 21, 3 2005-09-15 09:27 /dev/sg3

I think the problem is in either udev.rules or scsi-devfs.sh (not needed for 2.6.x?). Here is a trimmed dmesg output:
dc395x: Tekram DC395(U/UW/F), DC315(U) - ASIC TRM-S1040 v2.05, 2004/03/08
dc395x: Used settings: AdapterID=07, Speed=0(20.0MHz), dev_mode=0x57
dc395x: AdaptMode=0x0f, Tags=4(16), DelayReset=1s
dc395x: Connectors: ext50 Termination: Auto Low High
dc395x: Performing initial SCSI bus reset
scsi0 : Tekram DC395(U/UW/F), DC315(U) - ASIC TRM-S1040 v2.05, 2004/03/08
dc395x: msgin_set_sync: Increase sync nego period to 248ns
dc395x: Target 01: Sync: 248ns Offset 15 (04.0 MB/s)
Vendor: TOSHIBA Model: CD-ROM XM-3501TA Rev: 0315
Type: CD-ROM ANSI SCSI revision: 02
dc395x: msgin_set_sync: Increase sync nego period to 248ns
dc395x: Target 02: Sync: 248ns Offset 15 (04.0 MB/s)
Vendor: TOSHIBA Model: CD-ROM XM-3501TA Rev: 0315
Type: CD-ROM ANSI SCSI revision: 02
dc395x: msgin_set_sync: Increase sync nego period to 248ns
dc395x: Target 03: Sync: 248ns Offset 15 (04.0 MB/s)
Vendor: TOSHIBA Model: CD-ROM XM-3501TA Rev: 0315
Type: CD-ROM ANSI SCSI revision: 02
dc395x: msgin_set_sync: Increase sync nego period to 248ns
dc395x: Target 04: Sync: 248ns Offset 15 (04.0 MB/s)
Vendor: TOSHIBA Model: CD-ROM XM-3501TA Rev: 0315
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi generic sg0 at scsi0, channel 0, id 1, lun 0, type 5
Attached scsi generic sg1 at scsi0, channel 0, id 2, lun 0, type 5
Attached scsi generic sg2 at scsi0, channel 0, id 3, lun 0, type 5
Attached scsi generic sg3 at scsi0, channel 0, id 4, lun 0, type 5

Thanks for any help!
 
Old 09-15-2005, 01:43 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
You did enable scsi cd-rom support in your kernel, correct? sg* is generally an underlying interface to scsi-type devices, including USB mass storage devices. Usually, they would be detected properly by udev on most systems.
 
Old 09-15-2005, 01:59 PM   #3
kejava
LQ Newbie
 
Registered: Mar 2004
Location: Philadelphia, PA
Distribution: Slackware, Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Wow, that was cool! I've never used a scsi cdrom before so I didn't think to look there. Good catch Matir!

Just compiled sr_mod and tried it. Worked perfectly.

Thank you.
 
Old 09-15-2005, 02:04 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
No problem. I'm glad it was that simple.
 
  


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
udev not creating nodes. for sound, etc. gooball Slackware 1 10-21-2005 01:30 AM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 05:08 AM
Device nodes zoomzoom Linux - General 0 08-18-2003 08:00 AM
cdrom/cdrw how to set up as hd/scd Zarnce Slackware 3 06-11-2003 05:36 PM
How do i create an a/c at all nodes in the cluster dogma Linux - Networking 4 05-19-2003 10:21 AM


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