Re: configure scsi device on running system
From: DoN. Nichols (dnichols_at_d-and-d.com)
Date: 10/20/04
- Previous message: Fernando Gont: "Re: Disabling the password "quality" checking feature"
- In reply to: Stefan Berglund: "configure scsi device on running system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Oct 2004 19:31:55 -0400
In article <slrncn9snf.3g6.{j6F*4gb}.See@hudson.mo.sw.ericsson.se>,
Stefan Berglund <Stefan.B.Berglund@ericsson.com> wrote:
>I have a scsi scanner connected to a SS10 running OpenBSD 2.8, if I
>remember to have the scanner turned on when I reboot the uk-device get
>properly setup and the scanner is recognized.
>But if I forget the scanner the device is never configured and I can't
>find any way to rescan the bus and connect all the new devices.
>Is there a way to configure the device properly without rebooting?
>I have search everywhere I can think of without coming up with a
>solution.
Hmm ... what SCSI ID have you assigned to the scanner? That
makes a difference.
Second -- is there a /dev/sk? (where ? corresponds to the SCSI
ID)? if not, cd to /dev and run the following script (assuming SCSI ID
5):
./MAKEDEV sk5
And a ls in /dev will subsequently show that there is a /dev/sk5, with
major and minor nodes somewhat like this:
======================================================================
popocat-2:csu 19:16 # l uk*
crw-r----- 1 root operator 120, 0 Nov 22 2003 uk0
popocat-2:csu 19:16 # ./MAKEDEV uk5
popocat-2:csu 19:17 # l uk*
crw-r----- 1 root operator 120, 0 Nov 22 2003 uk0
crw-r----- 1 root operator 120, 5 Oct 19 19:17 uk5
======================================================================
This was on a SS5 running OpenBSD 3.4, so the major device number may
differ on yours (120 on this system), but the minor device number should
match the SCSI ID of the device you need.
>If I understand this correctly the scsi -c command uses the ioctl
>SCIOCCOMMAND to send commands to the scsi device and I need SCIOCREPROBE.
>
>So I tried:
>
># scsi -f /dev/uk0 -p
>scsi: unable to open device /dev/uk0: Device not configured
>
>that didn't work and I'm out of ideas...
That *looks* as though it should do what you want, once you have
the right /dev/uk? created with /dev/MAKEDEV.
Good luck,
DoN.
-- Email: <dnichols@d-and-d.com> | Voice (all times): (703) 938-4564 (too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html --- Black Holes are where God is dividing by zero ---
- Previous message: Fernando Gont: "Re: Disabling the password "quality" checking feature"
- In reply to: Stefan Berglund: "configure scsi device on running system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|