Strange modules loading problem

From: Tong (mlist4suntong_at_yahoo.com)
Date: 08/01/05

  • Next message: Paul Johnson: "Re: information about mailing list"
    To: debian-user@lists.debian.org
    Date:  Sun, 31 Jul 2005 21:31:11 -0400
    
    

    Hi,

    I have the following devices in my system:

    hda: SONY CD-RW CRX195E1, ATAPI CD/DVD-ROM drive
    hdc: HL-DT-ST GCE-8526B, ATAPI CD/DVD-ROM drive
    hdd: Toshiba DVD-ROM DSM-1712, ATAPI CD/DVD-ROM drive

    I want my hda and hdc to be ide-scsi device, while hdd being ide-cd.

    This is my /etc/modules

    - - - - >8 - - - -
    $ cat /etc/modules
    # /etc/modules: kernel modules to load at boot time.
    #
    # This file should contain the names of kernel modules that are
    # to be loaded at boot time, one per line. Comments begin with
    # a "#", and everything on the line after them are ignored.

    ide-cd ignore='hda hdc'
    ide-detect
    sd_mod
    ide-scsi
    - - - - >8 - - - -

    Which I think should work. However, after reboot, the result is not what I
    expected:

    - - - - >8 - - - -
    $ cdrdao scanbus
    Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
      SCSI interface library - (C) Joerg Schilling
      Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    Using libscg version 'schily-0.8'

    2,0,0 : SONY , CD-RW CRX195E1 , ZYS5
    qd=": ERROR: unknow subsystem (scd0) in (/dev/sr0)
    ATAPI:0,0,0 HL-DT-ST, CD-RW GCE-8526B , 1.03
    ATAPI:0,1,0 Toshiba , DVD-ROM SD-M1712, 1808
    - - - - >8 - - - -

    I.e., my hdc is not ide-scsi but ide-cd.
    However, if I load modules manually from command line, I get what I want:

    - - - - >8 - - - -
    % rmmod ide-cd ide-scsi; modprobe ide-cd ignore='hda hdc'; modprobe
    ide-scsi

    $ cdrdao scanbus
    Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
      SCSI interface library - (C) Joerg Schilling
      Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    Using libscg version 'schily-0.8'

    2,0,0 : SONY , CD-RW CRX195E1 , ZYS5
    2,1,0 : HL-DT-ST, CD-RW GCE-8526B , 1.03
    qd=": ERROR: unknow subsystem (scd0) in (/dev/sr0)
    qd=": ERROR: unknow subsystem (scd1) in (/dev/sr1)
    ATAPI:0,1,0 Toshiba , DVD-ROM SD-M1712, 1808
    - - - - >8 - - - -

    This is very strange!

    BTW, looking at the dmesg output, I can see that hda & hdc have been
    successfully ignored by ide-cd:

    - - - - >8 - - - -
    % dmesg | grep hd
    SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
    hda: SONY CD-RW CRX195E1, ATAPI CD/DVD-ROM drive
    hdc: HL-DT-ST GCE-8526B, ATAPI CD/DVD-ROM drive
    hdd: Toshiba DVD-ROM DSM-1712, ATAPI CD/DVD-ROM drive
    ide-cd: ignoring drive hda
    hdc: attached ide-cdrom driver.
    hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache
    hdd: attached ide-cdrom driver.
    hdd: ATAPI 48X DVD-ROM drive, 192kB Cache
    hda: attached ide-scsi driver.
        ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio
        ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:DMA
    ide-cd: ignoring drive hda
    ide-cd: ignoring drive hdc
    hdd: attached ide-cdrom driver.
    hdd: ATAPI 48X DVD-ROM drive, 192kB Cache
    hda: attached ide-scsi driver.
    hdc: attached ide-scsi driver.
    - - - - >8 - - - -

    How is it happening? What is the fix? Thanks

    Sorry the post is a bit long. But hope I've covered all that should be
    covered.

    tong

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Paul Johnson: "Re: information about mailing list"

    Relevant Pages

    • Strange modules loading problem
      ... I want my hda and hdc to be ide-scsi device, while hdd being ide-cd. ...
      (comp.os.linux.misc)
    • [OT] DVD-ROM hardware question
      ... hda -> WDC 120 GB HDD ... hdb -> empty ... hdc -> CD-RW ... cable on hda, since it was solo an that IDE controller. ...
      (Debian-User)
    • Re: on RAID1: is HDA+HDD okay?
      ... and HDC and HDD are primary and secondary on ... sometimes it never see hdb (so its bad to use hda and hdb) ...
      (Debian-User)
    • Re: Bizarre Hard Disk behaviour
      ... >> I did the dmesg thing since I boot this machine without video and hdc ... hda: attached ide-disk driver. ... hdd: attached ide-cdrom driver. ...
      (comp.os.linux.hardware)
    • Re: k3b copy problems
      ... if you are copying from cd to cdrw you need both hdc and hdd as ... > ide-scsi. ...
      (Fedora)