Newsgroup: it.comp.os.linux.iniziare
Titolo: Emulazione SCSI

Vorrei utilizzare il mio cdrom (hda) ide per
leggere le
immagini dei cdrom da masterizzare. Dalla
pagina man di cdrdao ho capitoche questo utilizza solo disp. scsi, quindi ho seguito le
istruzioni del cd-writing howto per emulare lo scsi nel mio sistema, caricando come modulo il
driver per i cdrom ide e includendo le seguenti righe nel file 
/etc/modules.conf: 
options ide-cd ignore=hdd 
options ide-cd ignore=hda   (masterizzatore)
alias scd1 sr_mod           
alias scd0 sr_mod  
pre-install sg          modprobe ide-scsi
pre-install sr_mod      modprobe ide-scsi
pre-install ide-scsi    modprobe ide-cd
linux:~ # cdrecord -scanbus  
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Using libscg version 'schily-0.1'
scsibus0: O
cdrecord: Warning: controller returns wrong size for CD capabilities page. 
        0,0,0     0) 'CREATIVE' ' CD4834E FC101  ' '1.01' Removable CD-ROM 
        0,1,0     1) *    
        0,2,0     2) *  
        0,3,0     3) * 
        0,4,0     4) *  
        0,5,0     5) *
        0,6,0     6) *   
        0,7,0     7) * 
ed ho il seguente log:
Oct 9 21:31:12 linux kernel: ide-cd: ignoring drive hda 
Oct 9 21:31:12 linux kernel: hdd: ATAPI 16X CD-ROM CD-R/RW drive,2048kB Cache 
Oct 9 21:31:12 linux kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices 
Oct 9 21:31:12 linux kernel: scsi : 1 host. 
Oct 9 21:31:12 linux kernel:  Vendor: CREATIVE Model:  CD4834E FC101 Rev: 1.01 
Oct 9 21:31:12 linux kernel:  Type:  CD-ROM ANSI SCSI revision: 02 
Oct 9 21:31:12 linux kernel: paride: version 1.04 installed 
Oct 9 21:31:12 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:31:12 linux kernel: pg0: Autoprobe failed Oct 9 21:31:12 linux kernel: pg: No ATAPI device detected 
Oct 9 21:31:12 linux insmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy 
Oct 9 21:31:12 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed 
Oct 9 21:31:12 linux kernel: paride: version 1.04 installed 
Oct 9 21:31:12 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:31:12 linux kernel: pg0: Autoprobe failed
Oct 9 21:31:12 linux kernel: pg: No ATAPI device detected 
Oct 9 21:31:12 linux insmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy 
Oct 9 21:31:12 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed
Oct 9 21:31:12 linux kernel: paride: version 1.04 installed 
Oct 9 21:31:12 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:31:12 linux kernel: pg0: Autoprobe failed 
Oct 9 21:31:12 linux kernel: pg: No ATAPI device detected 
Oct 9 21:31:12 linux insmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy 
Oct 9 21:31:12 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed 
Oct 9 21:31:12 linux kernel: paride: version1.04 installed 
Oct 9 21:31:12 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:31:12 linux kernel: pg0: Autoprobe failed 
Oct 9 21:31:12 linux kernel: pg: No ATAPI device detected 
Oct 9 21:31:12 linuxinsmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy
Oct 9 21:31:12 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed
scrivendo invece nel modules.conf
options ide-cd ignore=hda 
options ide-cd ignore=hdd 
cioè invertendo le due righe di cui sopra rispetto a prima, l'out di 
cdrecord -scanbus è
linux:~ # cdrecord -scanbus Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C)
1995-2000 Jörg Schilling Using libscg version 'schily-0.1' scsibus0:
        0,0,0 0) 'YAMAHA ' 'CRW4416E ' '1.0g' Removable CD-ROM
        0,1,0 1) *
        0,2,0 2) *
        0,3,0 3) *
        0,4,0 4) *
        0,5,0 5) *
        0,6,0 6) *
        0,7,0 7) *
linux:~ #                    
, e sulla console log appaiono i seguenti messaggi...
Oct 9 21:45:58 linux kernel: paride: version 1.04 installed 
Oct 9 21:45:58 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:45:58 linux kernel: pg0: Autoprobe failed 
Oct 9 21:45:58 linux kernel: pg: No ATAPI device detected 
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy 
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed 
Oct 9 21:45:59 linux kernel: paride: version 1.04 installed 
Oct 9 21:45:59 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:45:59 linux kernel: pg0: Autoprobe failed 
Oct 9 21:45:59 linux kernel: pg: No ATAPI device detected 
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy 
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed 
Oct 9 21:45:59 linux kernel: paride: version 1.04 installed 
Oct 9 21:45:59 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:45:59 linux kernel: pg0: Autoprobe failed 
Oct 9 21:45:59 linux kernel: pg: No ATAPI device detected 
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy 
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed 
Oct 9 21:45:59 linux kernel: paride: version 1.04 installed 
Oct 9 21:45:59 linux kernel: pg: pg version 1.02, major 97 
Oct 9 21:45:59 linux kernel: pg0: Autoprobe failed 
Oct 9 21:45:59 linux kernel: pg: No ATAPI device detected 
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: init_module: Device or resource busy
Oct 9 21:45:59 linux insmod: /lib/modules/2.2.14/misc/pg.o: insmod char-major-97 failed
Praticamente riesco ad emulare solo uno dei 2 dispositivi, come posso fare per emularli
tutti e 2, e poterli quindi utlizzare con cdrdao?
 Grazie per l'aiuto , e scusate per il lungo messaggio...

  Grazie per l'aiuto , e scusate per il lungo messaggio...
Ma ti serve proprio cdrdao?
Se ti basta cdrecord e per l'audio cdda2wav, basta che emuli il
masterizzatore...
per leggere usi /dev/cdrom ...
--
CIAO!!!
Paolo 83 RE
XXXg...@freemail.it
 (remove XXX)
gher...@iname.com
 (text only)

tutti e 2, e poterli quindi utlizzare con cdrdao?
Credo tu debba scrivere tutto in una sola riga. Non ricordo la sintassi,
prova con
options ide-cd ignore='hda hdd'
(l'ho letto su /usr/src/linux/drivers/block/ide-cd.c )
Saluti,
    Mardy