How to set up ide-scsi for 2.6.x.x Kernels in Ubuntu?

ZIYAD A. M. AL-BATLY zamb at spymac.com
Sat Apr 30 18:03:55 UTC 2005


On Sat, 2005-04-30 at 20:45 +0300, ZIYAD A. M. AL-BATLY wrote:
> On Sat, 2005-04-30 at 17:06 +0200, Gerhard Gaußling wrote:
> > If I use cdrecord -scanbus I got this error:
> > cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open 
> > SCSI driver.
> > cdrecord: For possible targets try 'cdrecord -scanbus'.
> > 
> > But I got the modules loaded:
> > $ lsmod |grep scsi
> > ide_scsi               17284  0
> > ide_core              147396  5 
> > amd74xx,ide_generic,ide_disk,ide_cd,ide_scsi
> > scsi_mod              153488  5 sbp2,ide_scsi,sr_mod,sd_mod,libata
> > 
> > But udev didn't created the devices.
> > 
> No.  For "/dev/pg*" to work you need to load the module "sg".
> 
>         zamb ~ $
>         modinfo /lib/modules/2.6.10-5-k7/kernel/drivers/scsi/sg.ko
>         filename:    /lib/modules/2.6.10-5-k7/kernel/drivers/scsi/sg.ko
>         author:      Douglas Gilbert
>         description: SCSI generic (sg) driver
>         license:     GPL
>         version:     3.5.31
>         parm:        def_reserved_size:size of buffer reserved for each
>         fd
>         parm:        allow_dio:allow direct I/O (default: 0 (disallow))
>         alias:       char-major-21-*
>         vermagic:    2.6.10-5-k7 preempt K7 gcc-3.3
>         depends:     scsi_mod
>         srcversion:  C3DAD4F1D03A39D9244DD33
> 
> As for your original problem: try placing "ide-scsi" and "sd" before
> "ide-cd" in /etc/modules and see what happens.
> 
> Ziyad.
> 
> 

Another progress: I managed to use SCSI emulation for my DVD and I
managed to mount and read from it without a problem.  Here's what I did:
      * Put "ide-scsi" as the first line in /etc/modules
      * Pass the "hdc=ide-scsi" to the Kernel
and that's it!  Here's the output of "dmesg | grep -i 'hdc\|scsi'":
        Kernel command line: root=/dev/hda1 ro single panic=30
        hdc=ide-scsi
        ide_setup: hdc=ide-scsi
            ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA,
        hdd:pio
        hdc: SONY DVD RW DRU-710A, ATAPI CD/DVD-ROM drive
        ide-scsi is deprecated for cd burning! Use ide-cd and give
        dev=/dev/hdX as device
        scsi0 : SCSI host adapter emulation for IDE ATAPI devices
        sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
        Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
        Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,
        type 5

By the way, the device is called "/dev/scd0".

Again, I hope this helps.
Ziyad.





More information about the ubuntu-users mailing list