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

Strange modules loading problem



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





Reply to: