Re: udev and CD or DVD drives
Kirk Strauser [EMAIL PROTECTED] writes: I am not (any more) using the ide-scsi emulation. I have an IDE CDROM and an IDE CD-RW drive. That's so strange. I realized that the ide-cd didn't get loaded at boot, and modprobe'ing it gave me /dev/hd{b,d}, which correspond to my CD-RW and DVD drives' locations on the IDE bus. Still no /dev/ide or /dev/scsi, though. By default, udev will not create the devfs scheme, but rather the fhs scheme. If the debian package of udev uses devfs scheme, then it is because it is set up so in the /etc/udev/udev.rules file. Check if you have a rule like this there: BUS=ide, KERNEL=hd*, PROGRAM=/etc/udev/ide-devfs.sh %k %b %n, NAME=%k, SYMLINK=%c{1} %c{2} -- John L. Fjellstad web: http://www.fjellstad.org/ Quis custodiet ipsos custodes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: udev and CD or DVD drives
On Tue, Apr 06, 2004 at 04:22:08PM -0700, John L Fjellstad wrote: Looking at your system, are you sure it's not in /dev/cdroms? Are the modules loaded? Remember that scd? has been deprecated in v2.6.x Oh, it has? In favor of what, then? How do you suggest that people talk to SCSI CD-ROM drives? I think you meant to say that ide-scsi emulation is deprecated in 2.6.x, which isn't necessarily the same thing at all. -- Marc Wilson | Life begins at the centerfold and expands outward. [EMAIL PROTECTED] | -- Miss November, 1966 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: udev and CD or DVD drives
On Tue, Apr 06, 2004 at 04:34:14PM -0500, Kirk Strauser wrote: | At 2004-04-06T19:58:26Z, s. keeling [EMAIL PROTECTED] writes: | | less /sbin/MAKEDEV | | Isn't that deprecated in udev? I imagine it is. After all, if you have a system for creating nodes on-the-fly for devices that exist, then there is no need for a static script to create all possible nodes. If your device doesn't show up automatically (with any name, not necessarily the name you wanted) then that means the driver for that device isn't announcing the existance of the device via sysfs (/sys). If this is the case, then the real (best) solution is to update the device driver so that it does report the device via sysfs. Barring that, a simple workaround is to list the node, using the legacy major and minor numbers, in /etc/udev/links.conf. There are some examples there already. One example is the vesafb video driver (which I use). To find out the major/minor numbers : $ ls -l /etc/udev/.dev/fb0 crw--w--w-1 root tty 29, 0 2000-11-30 10:23 fb0 For this device, 29 is the major and 0 is the minor number. (the 'c' in the first column there indicates a character, not a block, device) Therefore the entry in /etc/udev/links.conf is M fb0 c 29 0 By puting this line there, udev will always create that node with those parameters regardless of whether or not the device actually exists (and a driver in the kernel is handling it). However, I expect that a SCSI disk to not have this problem. Do you, by any chance, have the file /dev/scsi/host0/bus0/target0/lun0/cd (or something very similar)? If so, then that is your (scsi) cd drive. In this case, put the line L cdrom scsi/host0/bus0/target0/lun0/cd in /etc/udev/links.conf and udev will create a symlink named 'cdrom' to that (already-present) device node. HTH, -D -- ...In the UNIX world, people tend to interpret `non-technical user' as meaning someone who's only ever written one device driver. --Daniel Pead www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: udev and CD or DVD drives
At 2004-04-07T15:01:54Z, Derrick 'dman' Hudson [EMAIL PROTECTED] writes: Do you, by any chance, have the file /dev/scsi/host0/bus0/target0/lun0/cd (or something very similar)? Hmmm, you may be onto something. I don't have /dev/scsi at all, although my CDROM *is* visible under /sys: [EMAIL PROTECTED]:/dev% cat /sys/bus/scsi/devices/0:0:4:0/model CD-ROM DR-766 Should my IDE CDROM and DVD be visible under /dev/ide or similar? If so, then there's something definitely wrong with my system. I have very few subdirectories under /dev, and none that resemble bus names: [EMAIL PROTECTED]:/dev% find . -type d . ./snd ./input ./cdroms# - empty ./shm ./pts I'm completely lost. udev at least partially works, since most of the major devices are in there. However, I just ran the 'udevtest-all' script to see what devices udev is analyzing and noted a conspicuous lack of any SCSI or IDE devices that weren't hard drives. Guess I'll file a bug report or two and see what turns up. -- Kirk Strauser In Googlis non est, ergo non est. pgp0.pgp Description: PGP signature
Re: udev and CD or DVD drives
Marc Wilson [EMAIL PROTECTED] writes: Oh, it has? In favor of what, then? How do you suggest that people talk to SCSI CD-ROM drives? I think you meant to say that ide-scsi emulation is deprecated in 2.6.x, which isn't necessarily the same thing at all. Oops, sorry. I mispoke, and you're right... I'll blame the allergy medications:-) -- John L. Fjellstad web: http://www.fjellstad.org/ Quis custodiet ipsos custodes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: udev and CD or DVD drives
On Wed, Apr 07, 2004 at 11:03:09AM -0500, Kirk Strauser wrote: | At 2004-04-07T15:01:54Z, Derrick 'dman' Hudson [EMAIL PROTECTED] writes: | | Do you, by any chance, have the file /dev/scsi/host0/bus0/target0/lun0/cd | (or something very similar)? | | Hmmm, you may be onto something. I don't have /dev/scsi at all, although my | CDROM *is* visible under /sys: | | [EMAIL PROTECTED]:/dev% cat /sys/bus/scsi/devices/0:0:4:0/model | CD-ROM DR-766 Odd. | Should my IDE CDROM and DVD be visible under /dev/ide or similar? Yes. Well, if the IDE driver is the one handling it. If a scsi driver is handling it, then it should appear under /dev/scsi. Say, are you using the ide-scsi module? Maybe there is something odd with that module. I am not (any more) using the ide-scsi emulation. I have an IDE CDROM and an IDE CD-RW drive. My /dev looks like : ide/host0/bus0/target1/lun0/cd (actual device node) ide/host0/bus1/target1/lun0/cd (actual device node) cdroms/cdrom0 - ide/host0/bus0/target1/lun0/cd cdroms/cdrom1 - ide/host0/bus1/target1/lun0/cd cdroms/0- cdrom0 cdroms/1- cdrom1 cdrom - cdroms/0 cdrw- cdroms/1 The first four files are created automatically by udev. The last four are created by entries in /etc/udev/links.conf. One characteristic you'll notice of udev (and the way debian packages it) is that it uses a devfs-like naming scheme by default. I suspect that is simply because the devfs scheme already exists, some systems are already using it, and its the quickest/easiest migration path. HTH, -D -- [Perl] combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: udev and CD or DVD drives
At 2004-04-08T01:24:42Z, Derrick 'dman' Hudson [EMAIL PROTECTED] writes: On Wed, Apr 07, 2004 at 11:03:09AM -0500, Kirk Strauser wrote: Hmmm, you may be onto something. I don't have /dev/scsi at all, although my CDROM *is* visible under /sys: Odd. Yeah, I thought so. Should my IDE CDROM and DVD be visible under /dev/ide or similar? Yes. Well, if the IDE driver is the one handling it. If a scsi driver is handling it, then it should appear under /dev/scsi. It is. I dropped ide-scsi like a hot potato once cdrecord supported ATAPI drives. I am not (any more) using the ide-scsi emulation. I have an IDE CDROM and an IDE CD-RW drive. That's so strange. I realized that the ide-cd didn't get loaded at boot, and modprobe'ing it gave me /dev/hd{b,d}, which correspond to my CD-RW and DVD drives' locations on the IDE bus. Still no /dev/ide or /dev/scsi, though. One characteristic you'll notice of udev (and the way debian packages it) is that it uses a devfs-like naming scheme by default. I suspect that is simply because the devfs scheme already exists, some systems are already using it, and its the quickest/easiest migration path. I'd settle for anything that worked right now. I even purged the udev package, removed /etc/udev, and reinstalled it to make sure that I'm running a completely clean installation - no joy. :-/ -- Kirk Strauser In Googlis non est, ergo non est. pgp0.pgp Description: PGP signature
Re: udev and CD or DVD drives
On Tue, Apr 06, 2004 at 01:22:36PM -0500, Kirk Strauser wrote: I'm using Debian's 2.6.4 kernel on an Pentium-3 machine. I'm having problems with udev in that it doesn't seem to identify any of my CDROM or DVD drives. Hotplug installs the appropriate modules, and I can mount /etc/udev/.dev/scd0 without taking any additional steps, but there is no entry in /dev that resembles a CD or DVD: [EMAIL PROTECTED]:/dev% find . | grep -E (cd|sr) ./cdroms I don't even know where to begin to look. Do other people use CDROMs and DVD-ROMs with udev? Does it work without modification? Being that you're using udev, the 'correct' solution would be to create a udev rule to create an appropriate entry for your cd/dvdrom drives. I, however, got lazy and instead just made symlinks from /dev/scd0 to /dev/dvdrom. :) But if you're going to be 'fixing' it anyway, you might as well do it the 'right' way and add appropriate rules to your udev.conf. -- Alex Malinovich Support Free Software, delete your Windows partition TODAY! Encrypted mail preferred. You can get my public key from any of the pgp.net keyservers. Key ID: A6D24837 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: udev and CD or DVD drives
At 2004-04-06T19:37:45Z, Alex Malinovich [EMAIL PROTECTED] writes: I, however, got lazy and instead just made symlinks from /dev/scd0 to /dev/dvdrom. :) If you can tell me how to *get* /dev/scd0, then I can go on from there. :) -- Kirk Strauser In Googlis non est, ergo non est. pgp0.pgp Description: PGP signature
Re: udev and CD or DVD drives
Incoming from Kirk Strauser: At 2004-04-06T19:37:45Z, Alex Malinovich [EMAIL PROTECTED] writes: I, however, got lazy and instead just made symlinks from /dev/scd0 to /dev/dvdrom. :) If you can tell me how to *get* /dev/scd0, then I can go on from there. :) less /sbin/MAKEDEV -- Any technology distinguishable from magic is insufficiently advanced. (*) http://www.spots.ab.ca/~keeling - - -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: udev and CD or DVD drives
On Tue, 2004-04-06 at 20:37, Alex Malinovich wrote: Being that you're using udev, the 'correct' solution would be to create a udev rule to create an appropriate entry for your cd/dvdrom drives. I, however, got lazy and instead just made symlinks from /dev/scd0 to /dev/dvdrom. :) But if you're going to be 'fixing' it anyway, you might as well do it the 'right' way and add appropriate rules to your udev.conf. An entry to create a link in udev is quite simple. Open the /etc/udev/links.conf and add the line: L dvdrom/dev/scd0 -- Paulo Jorge Jesus Silva perl -we 'print pjs.reverse \ntp.letagarb@' Everything in this book may be wrong. -- Messiah's Handbook : Reminders for the Advanced Soul signature.asc Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente
Re: udev and CD or DVD drives
At 2004-04-06T19:58:26Z, s. keeling [EMAIL PROTECTED] writes: less /sbin/MAKEDEV Isn't that deprecated in udev? -- Kirk Strauser In Googlis non est, ergo non est. pgp0.pgp Description: PGP signature
Re: udev and CD or DVD drives
Kirk Strauser [EMAIL PROTECTED] writes: Hotplug installs the appropriate modules, and I can mount /etc/udev/.dev/scd0 without taking any additional steps, but there is no entry in /dev that resembles a CD or DVD: [EMAIL PROTECTED]:/dev% find . | grep -E (cd|sr) ./cdroms I don't even know where to begin to look. Do other people use CDROMs and DVD-ROMs with udev? Does it work without modification? This is my rule for creating cdrom node in /etc/udev/udev.rules: BUS=ide, ID=1.0, NAME=cdrom, SYMLINK=dvd This means that the system is a IDE drive and on the second bus (0.0 would be first master on the IDE bus). Looking at your system, are you sure it's not in /dev/cdroms? Are the modules loaded? Remember that scd? has been deprecated in v2.6.x -- John L. Fjellstad web: http://www.fjellstad.org/ Quis custodiet ipsos custodes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]