[sane-devel] Scanner recognized and scans completed <'Ray!>

abel deuring a.deuring at satzbau-gmbh.de
Sun Sep 28 15:57:11 BST 2003

[sorry for the llong delay with this answer -- I was away for two days]

Barton Bosch wrote:
> I worked on the scanner snafu for a good while today and following your suggestions I managed to solve the problem and get the scanner up and running.  <'Ray!>
> As it turns out Linux is not initializing my scsi setup correctly in that it does not load the sg module or the fdomain module for my host adapter.  I tried lsmod and modprobe sg, per Abel's tip and found that sg wasn't loaded.  I tried xsane and sane-find-scanner after loading sg as su root but it still didn't find my scanner.
> For some odd reason it occured to me to try "modprobe sg" while logged in to the real root account, and after this checked out lsmod and found that this time the fdomain module was loaded.  Sure enough, this was the sticking point.
> Manually loading the sg and fdomain modules allows xsane and sane-find-scanner to see my scanner, and I managed to make a couple of basic scans of some documents that I have needed to fax for the last few days.  Even managed to use linux to fax them as well.
> I think that when I did my previous install of a different flavor of Red Hat I had my SCSI host adapter in the computer from the start, whereas this time I installed the host adapter a couple of months after this Linux install.
> So now my question is, what do I need to do to get the sg and fdomain modules to load at boot?  Just a modification to /etc/modules.conf?  If so, does anyone know what the exact syntax would be?  Or can you point me toward the relevant documentation?

I am not very familiar with the details of modules.conf, but that file
should have these two lines for your "SCSI setup":

alias char-major-21 sg
alias scsi_hostadapterfdomain

The first line tells the kernel that the SG module is required to access
the /dev/sg* device files; the second line tells the SCSI mid-level to
load the fdomain driver, when an upper level driver (sg, sd, st, sr) is
initalized and if the Linux SCSI system does not "see" yet any SCSI

This does not work, if you have two or more SCSI adapters (real and
"fake" adapters, like ide-scsi). In such a case, you may already have a
line like "alias scsi_hostadapter ide-scsi". In this case, you could add
a line like

pre-install sg modprobe "fdomain"

to modules.conf. 

Another option is to load all necessary low level driver with an init
script, while the machine is booting.

> Oh, and FWIW, I did try disabling the ide-scsi module before and after I tried modprobe sg while logged in as root, and it is not necessary with RH 8.0 and the 2.4.18-14 kernel.

I think that this problem with ide-scsi does not occur often with recent

> Vielen dank and shalom aleichem.


More information about the sane-devel mailing list