Re: Help - SCSI passthrough ioctl calls vs. sd/sg devices

From: John-Paul Stewart (jpstewart_at_binaryfoundry.ca)
Date: 04/22/04


Date: Thu, 22 Apr 2004 10:47:51 -0400

L wrote:
>
> What should we do if we need to 'mount' a file system on a disk and also
> need to issue SCSI passthrough ioctl calls to the same disk? Maybe we
> should use both sd and sg (i.e. mount the file system to /dev/sda1, and
> issue SCSI passthrough ioctl calls to /dev/sg0 that maps to the same
> disk/lun)?

Can you clarify what you're trying to accomplish here? Under normal
operation, one accesses a SCSI disk as /dev/sdX. *All* normal
operations are handled that way.

The *only* time I've ever accessed a SCSI disk through the /dev/sgX
interface was to run a diagnostic program from the manufacturer on a
faulty drive.

I don't mean to be rude, but I get the impression that you fall into one
of two categories: 1) you're a newbie trying to do something you don't
need to do with the /dev/sgX devices, or 2) you're trying to do
something rather advanced (like disk diagnostics) without understanding
the basics of the SCSI drivers first.

> I was told 'mount' doesn't work on sg devices, right?

Right.



Relevant Pages

  • Re: separate hard drive for scratch disks for two different programs?
    ... measures out at a higher speed than the 750GB SATA ... much faster using the middle cylinders than the SCSI ... This is a function of the way the OS deals with the disk, ... of sharing the load between multiple drives, ...
    (rec.photo.digital.slr-systems)
  • Re: 3B2 Disks
    ... being able to read the disk in its present format. ... 2 MFM drives on a custom controller. ... SCSI came much later as an add on card. ...
    (comp.sys.3b1)
  • idle RAID1 cpu usage
    ... There's one little modification I made to it: instead of 2 SCSI disks, ... it has one SCSI and one SATA disk (and a PCI SII 3512 card to connect ... # Loadable module support ... # CD-ROM/DVD Filesystems ...
    (Linux-Kernel)
  • Re: moving an installed Debian system onto RAID-1
    ... I just succesfully completed a 3-day crusade against my scsi chain. ... from various fs-drivers when trying to install / fs ... -mount one of the two disks mentioned in the raidtab, ... -now you should have an ide disk that's a full install of everything ...
    (Debian-User)
  • RE: Installation instructions for Firefox somewhere?
    ... They both have the same type of SCSI ... Same thing as above just with the second disk. ... the other initiators and targets on the bus, as soon as that happens all ... to the adapter card your disks are tied to and has decided to just ...
    (freebsd-questions)