[[IDE]] over [[SCSI]]

# uname -a
Linux nrv 2.6.2 #3 SMP Sat Feb 7 14:45:51 CET 2004 i686 GNU/Linux
lrwxr-xr-x    1 root     root           11 2004-02-07 18:18 /dev/cdrom -> /dev/cdrom0
lrwxr-xr-x    1 root     root            9 2004-02-07 18:18 /dev/cdrom0 -> /dev/scd0
brw-rw----    1 root     burning   11,   0 2001-05-31 04:22 /dev/scd0
# cdrecord -scanbus
Cdrecord-Clone 2.01a25 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
    and thus may have bugs that are not present in the original version.
    Please send bug reports and support requests to <cdrtools@packages.debian.org>.
    The original author should not be bothered with problems of this version.
Linux sg driver version: 3.5.30
Using libscg version 'schily-0.8'.
scsibus0:
      0,0,0     0) '[[QSI]]     ' 'DVD/CDRW SBW-161' 'SX09' Removable CD-ROM
# dmesg
Kernel command line: BOOT_IMAGE=test ro root=305 hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce resume=/dev/hda7 lang=fr alsa mem=nopentium i8042.nomux
...
ide-scsi is deprecated for cd burning=== Use ide-cd and give dev=/dev/hdX as device===
...
ide1: BM-DMA at 0xa008-0xa00f, BIOS settings: hdc:DMA, hdd:pio
...
hdc: [[QSI]] CD-RW/DVD-ROM SBW-161, ATAPI CD/DVD-ROM drive
# mount /dev/cdrom  /mnt/tmp -t iso9660
mount: /dev/cdrom is not a valid block device
# mount /dev/hdc  /mnt/tmp -t iso9660
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
     or too many mounted file systems
     (could this be the IDE device where you in fact use
     ide-scsi so that sr0 or sda or so is needed?)
# dmesg
ide-scsi: unsup command: dev hdc: flags = REQ_CMD REQ_STARTED sector 64, nr/cnr 2/2
bio c0c43980, biotail c0c43980, buffer c6a54000, data 00000000, len 0
end_request: I/O error, dev hdc, sector 64
isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=32
# mount /cdrom
# dmesg
request_module: failed /sbin/modprobe -- char-major-10-134. Error = 256
# modprobe sg ide_scsi # should help
ide_scsi               12740  1
scsi_mod               67236  4 sr_mod,sd_mod,sg,ide_scsi

CDROM Hewlett-Packard CD-Writer Plus 9100b

It works fine on 2.4 kernel (under scsi emulation)

root@teuz:~# uname -a
Linux teuz 2.4.22-amiloa #21 mer déc 10 17:51:40 CET 2003 i686 GNU/Linux
root@teuz:~# hdparm -i /dev/hdc
Model=Hewlett-Packard CD-Writer Plus 9100b, FwRev?=1.07, SerialNo?=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize?=0, SectSize?=0, ECCbytes=
BuffType?=unknown, BuffSize?=0kB, MaxMultSect?=
(maybe): CurCHS=0/0/0, CurSects?=0, LBA=yes, LBAsects=
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
AdvancedPM=no
root@teuz:~# dmesg
SCSI subsystem driver Revision: 1.00
ide-cd: passing drive hdc to ide-scsi emulation.
hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: HP        Model: CD-Writer+ 9100b  Rev: 1.07
Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
root@teuz:~# /usr/sbin/cdrecord -scanbus
Cdrecord-Clone 2.01a19 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
0,0,0     0) 'HP      ' 'CD-Writer+ 9100b' '1.07' Removable CD-ROM
root@teuz:~# lsmod
scsi_mod               56328   3  (autoclean) sr_mod ide-scsi sg?
root@teuz:~# cat /etc/lilo/conf
append="hdc=ide-scsi"

Please help to make it usable under 2.6 (under scsi emu to keep lilo compatibibilty w/ 2.4 )

root@teuz:~# uname -a
Linux teuz 2.6.0-test11 #5 SMP Wed Dec 10 20:28:45 CET 2003 i686 GNU/Linux
root@teuz:~# hdparm -i /dev/hdc
root@teuz:~# modprobe ide-scsi
root@teuz:~# dmesg
SCSI subsystem initialized
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
Vendor: HP        Model: CD-Writer+ 9100b  Rev: 1.07
Type:   CD-ROM                             ANSI SCSI revision: 02
root@teuz:~# dmesg | grep -i cd
hdc: Hewlett-Packard CD-Writer Plus 9100b, ATAPI CD/DVD-ROM drive
ide-cd: passing drive hdc to ide-scsi emulation.
ide-scsi is deprecated for cd burning=== Use ide-cd and give dev=/dev/hdX as device===
Vendor: HP        Model: CD-Writer+ 9100b  Rev: 1.07
Type:   CD-ROM                             ANSI SCSI revision: 02
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
To erase a CD R/W :
# cdrecord blank=fast -immed dev=0,0,0 # how avoid dev= ?
# mount /dev/sr0 /dev/cdrom

MORE

iso.txt · Last modified: 2020/09/29 01:32 by rzr
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki