[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]

It is not:
The ide-scsi CDROM or DVD device which is /dev/scd[n]
or /dev/sr[n]

In Mike Panetta's words:
The sg devices are not block devices, they are character 
devices meant to be used when you want to send raw scsi 
commands to a device (EG like cdrecord does to write to a
CD) not to access them in the traditional manner.  I believe 
both /dev/sr[n] and /dev/scd[n] are the same devices.  Check 
the major and minor numbers on them to make sure.  I think 
its all just a naming convention.
End quote.

He is correct and I've been very happy using /dev/scd0 
correctly now for accessing my DVD burner.  The 
/dev/sd[a-d][n] devices are for accessing block based SCSI 
devices off of a SCSI controller, like a real SCSI hard 
drive.  They can also be a USB based block device like a CF 
or SD card.  The sbp2 module is a firewire interface treated 
like a SCSI device that will mount the firewire device as a 
block device.  So, the firewire DVD burner is accessed thru 
/dev/scd1 and the ATAPI-IDE DVD-ROM, that is emulated SCSI, 
is accessed via /dev/scd0.  The power of searching the list 
arises once more!!

So in the list of modules dependencies loaded on my machine 
via /sbin/lsmod shows:

Firewire DVD= ieee1394, ohci1394, sbp2
IDE-SCSI CD = scsi_mod, ide-scsi, sr_mod
General SCSI= scsi_mod, sr_mod, sg, sd_mod, st
USB-SCSI    = scsi_mod, usb-storage

 From the SCSI How-To:
The high level drivers are in modules named "sd_mod", 
"sr_mod", "st", and "sg", for disk, cdrom, tape, and scsi 
generics support respectively.
End quote.

So scsi_mod has to load, then the other stuff works with it 
for real SCSI and emulated SCSI devices based on a SCSI, 
USB, or ATAPI-IDE.  The USB subsystem has it own set of 
modules that make the USB hardware run and the emulated SCSI 
is laid on top of that.  The firewire 1394 bus is similar in 
that it has its own core and the sbp2 driver works with that 
and the SCSI core.

General USB = usbcore, usb-storage, hid, usb-uhci, ehci-hcd
General 1394= ieee1394, ohci1394

Just run /sbin/lsmod and examine which modules depend on others.

That is the power of Google!  Hope this helps,

Sean Kilpatrick wrote:
> Hash: SHA1
> I'm curious again.
> First, the facts.
> Needing workable scanning software, I took advice
> heard at the Ale meeting last week and downloaded
&gt; a (free) copy of Vuescan &lt;<a  rel="nofollow" href="http://www.hamrick.com";>http://www.hamrick.com</a>&gt;.
&gt; Unpacked the tarball and tried to run the program.
&gt; Got an error message about needing the &quot;sg driver.&quot;
&gt; Having no idea what that might be, I asked my son
&gt; for some advice and he offered a number of suggestions.
&gt; The easiest to impliment was change ownership and
&gt; group for the &quot;sg0&quot; device.
&gt; Which I did.
&gt; The scanner software now works. Well.
&gt; Great program. It costs $50/$80 for the Windows
&gt; and Mac versions (personal/professional) but is free
&gt; for Linux. It is good enough to pay for. Works with
&gt; a huge range of scanners (including high-end film
&gt; scanners) on usb, firewire, and SCSI.
&gt; My question is simple: what's an &quot;sg&quot; device?
&gt; Sean
&gt; -----BEGIN PGP SIGNATURE-----
&gt; Version: GnuPG v1.2.1 (GNU/Linux)
&gt; iD8DBQFABVLW73hVp4UeGJERArc8AJ97miiodW3cYO6T2q1hRpehfG+/kwCgpUYa
&gt; HHH7zBHnhVKsfJW4y09hG3U=
&gt; =rQQS
&gt; -----END PGP SIGNATURE-----
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>

Dow Hurst                  Office: 770-499-3428            *
Systems Support Specialist    Fax: 770-423-6744            *
1000 Chastain Rd. Bldg. 12                                 *
Chemistry Department SC428  Email:   dhurst at kennesaw.edu   *
Kennesaw State University         Dow.Hurst at mindspring.com *
Kennesaw, GA 30144                                         *
This message (including any attachments) contains          *
confidential information intended for a specific individual*
and purpose, and is protected by law.  If you are not the  *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it,  *
is strictly prohibited.                                    *

<li><strong><a name="00536" href="msg00536.html">[ale] instruction needed</a></strong>
<ul><li><em>From:</em> kilpatms at mindspring.com (Sean Kilpatrick)</li></ul></li>
<li><strong><a name="00530" href="msg00530.html">[ale] instruction needed</a></strong>
<ul><li><em>From:</em> kilpatms at mindspring.com (Sean Kilpatrick)</li></ul></li>
<li>Prev by Date:
<strong><a href="msg00532.html">[ale] cheapest DSL service... ?</a></strong>
<li>Next by Date:
<strong><a href="msg00534.html">[ale] cheapest DSL service... ?</a></strong>
<li>Previous by thread:
<strong><a href="msg00531.html">[ale] instruction needed</a></strong>
<li>Next by thread:
<strong><a href="msg00536.html">[ale] instruction needed</a></strong>
<li><a href="maillist.html#00533"><strong>Date</strong></a></li>
<li><a href="threads.html#00533"><strong>Thread</strong></a></li>