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

[SOLUTION] Re: Troubles with SCSI LUNS (IDE CD-RW with SCSI emulation



First of all, many thanks to Eduard Bloch.

The trouble is that SCSI support is loaded as a module, so I must pass the 
argument max_scsi_luns to that module instead of using lilo. Steps are:

1) edit /etc/modutils/aliases and add an entry as:

options scsi_mod "max_scsi_luns=1"

2) run update-modules

3.1) reboot the system or...

3.2) ...alternatively do: rmmod ide-scsi; rmmod scsi_mod; modprobe ide-scsi

Now it works fine. 

On Sunday 03 March 2002 16:40, you wrote:
> Hi there,
>
> My name's Francisco; I've been using LiNUX since years ago, but not a
> Debian distribution (I've tested a Debian 1.3.1 it years ago also but I
> drop it as soon as dselect appeared on stage...). Now I've decide to try it
> again and, in general, I like it a lot :-D
>
> Well, and now my first little big trouble...
>
> I've a Sony CD-RW CRX1611 that I've been using until yesterday below SuSE
> 7.3. In SuSE, I must dissable its DMA and use max_scsi_luns=1 on lilo.conf
> append because both, cd-writer (/dev/hdc) and cd-rom (/dev/hdd) are
> detected as if they have two luns each one. I've the same trouble under
> Debian, but max_scsi_luns that resolve this on SuSE did NOT work in
> Debian... This is the lilo append line:
>
> append="max_scsi_luns=1 hdc=ide-scsi hdd=ide-scsi"
>
> Of course, I've exec lilo after changes, reboot the system and these
> things... Take a look at boot messages:
>
> [...]
>
> Kernel command line: auto BOOT_IMAGE=Linux ro root=302 max_scsi_luns=1
> hdc=ide-scsi hdd=ide-scsi
>
> [...]
>
> SCSI subsystem driver Revision: 1.00
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
>   Vendor: SONY      Model: CD-RW CRX1611     Rev: TYS7
>   Type:   CD-ROM                             ANSI SCSI revision: 02
>   Vendor: SONY      Model: CD-RW CRX1611     Rev: TYS7
>   Type:   CD-ROM                             ANSI SCSI revision: 02
>   Vendor: TOSHIBA   Model: CD-ROM XM-6402B   Rev: 1008
>   Type:   CD-ROM                             ANSI SCSI revision: 02
>   Vendor: TOSHIBA   Model: CD-ROM XM-6402B   Rev: 1008
>   Type:   CD-ROM
>
> [...]
>
> It seems like max_scsi_luns has no effect... :-/
>
> I'm using woody, with 2.4.16-686 kernel.
>
> More related information:
>
> crom:~# cdrecord -scanbus
> Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
> Linux sg driver version: 3.1.20
> Using libscg version 'schily-0.5'
> scsibus0:
>         0,0,0     0) 'SONY    ' 'CD-RW CRX1611   ' 'TYS7' Removable CD-ROM
>         0,1,0     1) 'TOSHIBA ' 'CD-ROM XM-6402B ' '1008' Removable CD-ROM
>         0,2,0     2) *
>         0,3,0     3) *
>         0,4,0     4) *
>         0,5,0     5) *
>         0,6,0     6) *
>         0,7,0     7) *
> crom:~# lsmod | grep scsi
> ide-scsi                7392   0
> scsi_mod               84824   2  [sg ide-scsi]
> ide-mod               129452   3  (autoclean) [ide-scsi ide-disk
> ide-probe-mod]
> crom:~#
>
> Does anyone know what can I do with this?
>
> TIA



Reply to: