[SLE] Scanner - assigning /dev/scanner
I have a swag of SCSI devices on the bus which only get switched on occasionally; amongst them is a scanner. Is there a clever way of altering /dev/scanner to point to the correct SCSI device (/dev/sg?) ... it seems to change depending on what devices were powered up at boot time. Or do I have to invent my own method by parsing /proc/scsi? -- Bernd Felsche - Innovative Reckoning Perth, Western Australia -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Bernd Felsche started typing into the keyboard and wrote:
I have a swag of SCSI devices on the bus which only get switched on occasionally; amongst them is a scanner.
Is there a clever way of altering /dev/scanner to point to the correct SCSI device (/dev/sg?) ... it seems to change depending on what devices were powered up at boot time.
Or do I have to invent my own method by parsing /proc/scsi?
http://sdb.suse.de/sdb/en/html/scanner.html might give you a suggestion hope it helps -- Togan Muftuoglu toganm@turk.net It said "Needs Windows 98 or better." So I installed Linux... 100% MS FREE Absolutely no component of Microsoft was used in the generation or posting of this e-mail. So it is virus free -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Togan Muftuoglu tapped away at the keyboard with:
Bernd Felsche started typing into the keyboard and wrote:
I have a swag of SCSI devices on the bus which only get switched on occasionally; amongst them is a scanner.
Is there a clever way of altering /dev/scanner to point to the correct SCSI device (/dev/sg?) ... it seems to change depending on what devices were powered up at boot time.
Or do I have to invent my own method by parsing /proc/scsi?
http://sdb.suse.de/sdb/en/html/scanner.html might give you a suggestion hope it helps
Not a great deal. But thanks anyway. /proc/scsi/scsi currently holds Attached devices: Host: scsi0 Channel: 00 Id: 04 Lun: 00 Vendor: CANON Model: IX-27025E Rev: 1.12 Type: Scanner ANSI SCSI revision: 02 That's easy, because there's only one entry, but the order in which the devices are recognized determines to which generic SCSI device the physical device is allocated. If I leave /dev/scanner -> /dev/sg0 and then connect a hard drive, /dev/sg0 *might* refer to the hard drive after booting; with possibly-catastrophic results. Not that the web page you indicated actually warns of this. The only *safe* thing for me to do at boot time is to remove /dev/scanner at boot time - or to write a program to set /dev/scanner to the corresponding /dev/sg (and perhaps even set permissions to allow any user to access the scanner, without having to add them to the 'disk' group or doing a setgid on scanimage, etc - which I judge to be security risks). Does such a program already exist? -- Bernd Felsche - Innovative Reckoning Perth, Western Australia -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (2)
-
bernie@innovative.iinet.net.au
-
toganm@turk.net