Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
detecting scsi scanner after login
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
oldefortran
l33t
l33t


Joined: 28 Feb 2004
Posts: 652

PostPosted: Wed Mar 23, 2005 9:05 pm    Post subject: detecting scsi scanner after login Reply with quote

Hello.
I have a scsi scanner, and if I boot my machine with the scanner turned off, I can't "find" the scanner with
scanimage -L
if I later on turns on the power to the scanner.

Is there a way to detect the scanner later on?
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Wed Mar 23, 2005 11:07 pm    Post subject: Reply with quote

I think that scsiadd would be helpful.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
oldefortran
l33t
l33t


Joined: 28 Feb 2004
Posts: 652

PostPosted: Thu Mar 24, 2005 8:43 am    Post subject: Reply with quote

What ebuild can I find scsiadd in?
Back to top
View user's profile Send private message
oldefortran
l33t
l33t


Joined: 28 Feb 2004
Posts: 652

PostPosted: Thu Mar 24, 2005 8:58 am    Post subject: Reply with quote

I downloaded scsiadd and compiled and run, and this is the result:

Code:
 /usr/local/sbin/scsiadd -s
Attached devices:

So I tried
rescan-scsi-bus.sh from sg3_utils
and I got

Code:
 rescan-scsi-bus.sh
Host adapter 0 (atp870u) found.
Scanning hosts  0 channels 0 for
 SCSI target IDs  0 1 2 3 4 5 6 7 , LUNs  0
0 new device(s) found.               
0 device(s) removed. 


What is atp870u? I have this card:
Code:
ACPI: PCI interrupt 0000:01:09.0[A] -> GSI 11 (level, low) -> IRQ 11
   ACARD AEC-671X PCI Ultra/W SCSI-3 Host Adapter: 0 IO:d400, IRQ:11.
         ID:  7  Host Adapter
scsi0 : ACARD AEC-6710/6712/67160 PCI Ultra/W/LVD SCSI-3 Adapter Driver V2.6+ac


and the scanner is
Code:
 snapscan:/dev/scsi/host0/bus0/target2/lun0/generic


Any ideas?
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Thu Mar 24, 2005 3:07 pm    Post subject: Reply with quote

Try 'scsiadd -p'. The output is the same as 'cat /proc/scsi/scsi', this is what I see:
Code:

0938 i686 pts/0 ~
root@jaxun # scsiadd -p
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ZJCS     Model: ZJCS2-18GB       Rev: S5BS
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: ZJCS     Model: ZJCS2-18GB       Rev: S5BS
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 05 Lun: 00
  Vendor: UMAX     Model: UMAX S-12        Rev: V2.1
  Type:   Scanner                          ANSI SCSI revision: 02

Then, 'scsiadd -a host channel ID lun'. For me it would be:
Code:

scsiadd -a 1 0 5 0

For you:
Code:

scsiadd -a 0 0 2 0

_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
oldefortran
l33t
l33t


Joined: 28 Feb 2004
Posts: 652

PostPosted: Thu Mar 24, 2005 3:18 pm    Post subject: Reply with quote

Thanks for your reply, but I got this:

Code:
 /usr/local/sbin/scsiadd -p
Attached devices:
root # /usr/local/sbin/scsiadd -a 0 0 2 0
Attached devices:
root #


Dang!
Back to top
View user's profile Send private message
puntarenas
n00b
n00b


Joined: 06 Feb 2005
Posts: 12

PostPosted: Thu Mar 24, 2005 4:42 pm    Post subject: Reply with quote

Use your scsi-driver as a module, then reloading the module should give you access to your scanner.
Dirty, but works for me ...
Back to top
View user's profile Send private message
oldefortran
l33t
l33t


Joined: 28 Feb 2004
Posts: 652

PostPosted: Thu Mar 24, 2005 8:16 pm    Post subject: Problem solved! Reply with quote

I compiled all the scsi stuff as modules, it worked then!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum