Re: configure scsi device on running system

From: DoN. Nichols (dnichols_at_d-and-d.com)
Date: 10/20/04

  • Next message: Christopher A. Kantarjiev: "process SIZE vs RSS?"
    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 ---
    

  • Next message: Christopher A. Kantarjiev: "process SIZE vs RSS?"

    Relevant Pages

    • configure scsi device on running system
      ... I have a scsi scanner connected to a SS10 running OpenBSD 2.8, ... remember to have the scanner turned on when I reboot the uk-device get ... If I understand this correctly the scsi -c command uses the ioctl ...
      (comp.unix.bsd.openbsd.misc)
    • Re: Acerscan 620ST scanner termination problem?
      ... No do not plug a terminator into the scanner, ... Disconnect the internal bus to verify that the scanner works properly and I ... suggest a separate inexpensive card preferably 10mbit max PCI card and you ... > Some time ago I bought a used Acerscan 620ST SCSI scanner. ...
      (comp.periphs.scsi)
    • Re: Random Reboots
      ... -120 GB WD HDD SATA ... for the PC to run for a month or more without needing a reboot. ... have scanned with trend micro's on-line scanner as well. ... > able to replicate the problem under a heavy load. ...
      (microsoft.public.windowsxp.hardware)
    • Client-PC zusammenbasteln
      ... auf der ein Windows 98 ... Dann sind da noch ein CD-ROM und ein CD-Brenner drin (beides SCSI) ... Grafikkarte, Tastatur- und Mausanschluss (ich habe sogar einen ... Da ich den Brenner und Scanner nur gaaaanz selten benutze, ...
      (de.comp.os.unix.linux.hardware)
    • Re: backdoor.trojan
      ... some of the files were in use/protected that the scanner simply ... And when I ran it in safe mode, since the windows that I have which is ... FireWall to allow it to download the needed AV vendor related files. ... Sophos, Trend, McAfee, Kaspersky, Exit this menu and Reboot the PC. ...
      (microsoft.public.security.virus)